Is rsync preinstalled in pfSense?
-
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 andhtop
installed on them and those two I'm sure are not standard. I'm not sure if I should check forrsync
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.
-
[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. -
@gertjan Thanks.
Yeah, I could've
which
ed/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! -
@senseivita
I found out recently that rsync isn't part of pfSense, but, have a look at the package pfBlockerNG-devel or pfBlockerNG : -
@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:
-
@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 ... :-)
-
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.