Hi! I'm sure someone must have asked this question milion times, but I can't find an answer and I spent already couple of hours on this. I have FreeBSD 13.0 instance on Vultr, where I would like to create jail. The problem is that I cannot reach the network from jail and I cannot even ping bridge from jail. It can be wrong network configuration, or firewall settings. I can't imagine anything else.
Network:
/etc/jail.conf:
/etc/rc.conf (inside jail):
I also use pf, to close all unwanted ports. It should not block any network communication from jail out and will be later on used to NAT traffic to the jail. Right now it doesn't have this functionality and /etc/pf.conf looks like this:
Network:
Code:
vtnet0 (192.248.xxx.xxx) <--> vtnet0bridge (10.0.0.1) <--> e0a_jail0 (10.0.0.5)
/etc/jail.conf:
Code:
jamulus {
host.hostname="jamulus.local";
path="/jail/jamulus";
exec.clean;
vnet;
vnet.interface = "e0b_jail0";
exec.prestart += "/usr/local/scripts/jib addm jail0 vtnet0";
exec.poststop += "/usr/local/scripts/jib destroy jail0";
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown jail";
exec.consolelog = "/var/log/jail_jamulus_console.log";
mount.devfs;
allow.raw_sockets; # for testing, to be removed
}
/etc/rc.conf (inside jail):
Code:
defaultrouter="10.0.0.1"
ifconfig_e0b_jail0="inet 10.0.0.5 netmask 255.192.0.0"
sendmail_enable="NONE"
I also use pf, to close all unwanted ports. It should not block any network communication from jail out and will be later on used to NAT traffic to the jail. Right now it doesn't have this functionality and /etc/pf.conf looks like this:
Code:
ext_if="vtnet0"
set block-policy return
set skip on lo
scrub in all
block in on $ext_if
pass out keep state
pass in on $ext_if proto tcp to ($ext_if) port ssh
pass in on $ext_if inet proto icmp from any to ($ext_if) icmp-type { unreach, redir, timex }