Not sure I understand what you mean. By default,
rsyncd apparently binds to all available addresses (and therefore all available NICs) - that can only be controlled by setting the "address =" directive in
rsync.conf and then it will bind only to that specified address (on that particular NIC). With the "address=" directive, that address can be either an Ipv4 or an IPv6 but not both.
"in control of both sides of the connection..."? My box (like all server/routers?) has two NICs. One faces the internet (cable modem box) and the other faces my LAN. The pf firewall allows me to control connections to and through both NICs. Say I run 10 jails which have their IPs (4s & 6s) attached to the LAN NIC. Running
rsyncd without the "address=" directive attaches
rsyncd to every address (both IPv4 & IPv6) on every NIC, including all the jail IPs.
Does that matter? I can control who connects to
rsyncd with the "hosts allow=" directive
and the pf firewall.
Isn't that good enough?
The issue is the jails and their IPs. I don't see why the tutorial said to never allow anything to attach to jail IPs just willy nilly. One of the processes I run is Samba outside a jail, since it needs access to my zfs storage array to serve up media on the LAN. There is zero way to control the
smbd(8) and
nmbd(8) Samba daemons - they connect to all available IPv4 addresses on the box, including all the jails and I've never had trouble with Samba. Another jail tutorial said not to run the base
ntpd(8) daemon for the same reason (
net/openntpd is better behaved and actually easier to setup and use). The base
ntpd(8) attaches to all addresses on the box.
Thoughts?