Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Is rsync preinstalled in pfSense?

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 4 Posters 1.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • senseivitaS
      senseivita
      last edited by

      I'm writing a simple bash helper script to find, export, rename and distribute files. It's basically done; I'm readapting the one I've been using on Linux and macOS for a long time.

      When it runs interactively/setuptesting, during prechecks, it offers to create a new set of (missing) SSH keys, or to pull them (rsync-them) from another host.

      About a month ago I installed pfSense baremetal so I couldn't rely on the vSphere templates I always use to skip some basics. I remember installing rsync in pfSense but I could've sworn it had always been there. It's all blurry now.

      My VM templates already have rsync but so they have the FreeBSD repos enabled and htop installed on them and those two I'm sure are not standard. I'm not sure if I should check for rsync too and how to go about it, i.e; whether to check the files in /usr/local/etc/pkg/repos as well, sed, awk, all that.

      Is rsync preinstalled in pfSense?

      Follow up: if it's not, does pkg support a silent-type option e.g; --yes, -y, --assume-yes, -q, etc. (and will I need the FreeBSD repos)?

      Thanks.

      Missing something? Word endings, maybe? I included a free puzzle in this msg if you solv--okay, I'm lying. It's dyslexia, makes me do that, sorry! Just finish the word; they're rarely misspelled, just incomplete. Yeah-yeah-I know. Same thing.

      fireodoF 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        @senseivita

        [23.01-RELEASE][admin@pfSense.dust.tld]/root: which rsync
        /usr/local/bin/rsync
        

        rsync is pretty 'core'.

        @senseivita said in Is rsync preinstalled in pfSense?:

        My VM templates already have rsync but so they have the FreeBSD repos enabled

        Classic Freebsd is not pfSense.

        @senseivita said in Is rsync preinstalled in pfSense?:

        whether to check the files in /usr/local/etc/pkg/repos as well, sed, awk, all that.

        What about looking in the places where they live ?
        All the /bin and /sbin folders, and their /usr/local/ equivalent.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        senseivitaS 1 Reply Last reply Reply Quote 1
        • senseivitaS
          senseivita @Gertjan
          last edited by

          @gertjan Thanks.

          Yeah, I could've whiched/checked those places but it would've solved nothing because what I was looking to learn (without deploying a new system from scratch) is how did they get there i.e. my action or no action. It doesn't matter now bc you gave me the answer. Thank you again!

          Missing something? Word endings, maybe? I included a free puzzle in this msg if you solv--okay, I'm lying. It's dyslexia, makes me do that, sorry! Just finish the word; they're rarely misspelled, just incomplete. Yeah-yeah-I know. Same thing.

          GertjanG johnpozJ 2 Replies Last reply Reply Quote 0
          • GertjanG
            Gertjan @senseivita
            last edited by

            @senseivita
            I found out recently that rsync isn't part of pfSense, but, have a look at the package pfBlockerNG-devel or pfBlockerNG :

            d9c02607-5c6b-4a10-9be2-6edc1a23bc31-image.png

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator @senseivita
              last edited by

              @senseivita yeah as @Gertjan states guess rysnc is part of package, maybe more than 1? I just checked on my bare bones 2.6 install was using for other testing, and doesn't have rsync

              [2.6.0-RELEASE][admin@pfSense.home.arpa]/root: rsync
              rsync: Command not found.
              [2.6.0-RELEASE][admin@pfSense.home.arpa]/root: 
              

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.7.2, 24.11

              1 Reply Last reply Reply Quote 0
              • fireodoF
                fireodo @senseivita
                last edited by

                @senseivita said in Is rsync preinstalled in pfSense?:

                Is rsync preinstalled in pfSense?

                You ca install it from repo:

                pkg search rsync
                
                rsync-3.2.3_1                  Network file distribution/synchronization utility
                
                pkg install rsync-3.2.3_1
                

                if you dont want to install pfblockerNG ... :-)

                Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                pfsense 2.7.2 CE
                Packages: Apcupsd Cron Iftop Iperf LCDproc Nmap pfBlockerNG RRD_Summary Shellcmd Snort Speedtest System_Patches.

                1 Reply Last reply Reply Quote 0
                • senseivitaS
                  senseivita
                  last edited by

                  Oh, man. That's not good.

                  I thought for a second to initiate rsync job from the remote host but I remembered about this one time rsync on a target macOS was too old (no surprise there) and it failed one of the options—so… it's required on both ends.

                  Thanks again everyone. I'll go with scp, it has to be there. The good thing is that it's only a handful of files that have to be overwritten anyway triggered by a successful task, e.g; successful cert renewal. There is no need to compare files or anything like that.

                  I'd like to share it when I'm done (almost there, as soon as I simplify error checking) so I don't want to script an install because I think that would be too invasive.

                  Missing something? Word endings, maybe? I included a free puzzle in this msg if you solv--okay, I'm lying. It's dyslexia, makes me do that, sorry! Just finish the word; they're rarely misspelled, just incomplete. Yeah-yeah-I know. Same thing.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.