Freebsd jail setup: networking

From wikinotes
Revision as of 15:26, 3 July 2020 by Will (talk | contribs) (→‎vnet setup)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Test Network

By default, ping is not permitted within jail. Test using netcat

nc -z www.google.ca 80

Alternatively, configure jail to allow raw sockets

# /etc/jail.conf

yourjail {
  # ...
  allow.raw_sockets
}


Network Configurations

FreeBSD jails: networking: iface aliases jail.conf
FreeBSD jails: networking: vnet
FreeBSD jails: networking: iface aliases rc.conf