This jail allows me to lock things down to minimal access to other services I need remotely, such as an SSH tunnel to Home Assistant.
I run my FreeBSD server mainly for ZFS. Adding a jail for remote access adds to the usefulness that hardware.
This jail allows me to lock things down to minimal access to other services I need remotely, such as an SSH tunnel to Home Assistant.
I run my FreeBSD server mainly for ZFS. Adding a jail for remote access adds to the usefulness that hardware.
Potentially a non-vnet jail with the ipv4/ipv6 options set may also be an option. I used to use jails with those settings to squeeze multiple environments into a single host at Yahoo.
Greetings! Miss the ole days at the ‘Hoo when we were all FBSD based!
ssh { exec.start = "/bin/sh /etc/rc"; exec.stop = "/bin/sh /etc/rc.shutdown"; exec.clean; mount.devfs; path = "/var/jail/ssh"; host.hostname = "ssh"; vnet; vnet.interface += "em0"; }
It's IPv6 only, so this is key in rc.conf: rtsold_enable="YES"
OpenBSD PF based router does the rest. IPv6 simplifies things here.
PF on FreeBSD isn't the most ideal, sure, but I can limit local access on inet6.
For SSH tunnel, it's straight forward.