I know this topic has been covered dozens of times at least, but I've been through every thread forum search and google search has given me. I've been bashing my head for hours on this.
I've a fresh install of FreeBSD on my box. I set up a jail and I can access my local network fine. I can ssh into and out of the jail without any problems. However, I cannot access the internet.
My network setup is pretty typical, nothing tricky.
I can access the internet fine on the host machine and other devices on the network. It's only the jail which doesn't work.
HOST /etc/rc.conf (relevant portion)
JAIL /etc/rc.conf (entire file)
I am using ezjail, here is the jail config
Jail /etc/resolv.conf
The Jail resolves dns correctly, since my router can handle those requests and the Jail can connect to the router fine.
However trying to build any ports fails on fetch.
I've a fresh install of FreeBSD on my box. I set up a jail and I can access my local network fine. I can ssh into and out of the jail without any problems. However, I cannot access the internet.
My network setup is pretty typical, nothing tricky.
Code:
Internet ------> router ---------->Host -------------> Jail
192.168.1.1/24 192.168.1.254/24 192.168.1.253/24
I can access the internet fine on the host machine and other devices on the network. It's only the jail which doesn't work.
HOST /etc/rc.conf (relevant portion)
Code:
hostname="server.domain.local"
ifconfig_re0="192.168.1.254 netmask 255.255.255.0"
ifconfig_re0_alias0="inet 192.168.1.253/32"
defaultrouter="192.168.1.1"
inetd_flags="-wW -a 192.168.1.254"
sendmail_enable="NO"
JAIL /etc/rc.conf (entire file)
Code:
hostname="test.domain.local"
sshd_enable="YES"
defaultrouter="192.168.1.1"
I am using ezjail, here is the jail config
Code:
export jail_test_hostname="test"
export jail_test_ip="192.168.1.253"
export jail_test_rootdir="/usr/jails/test"
export jail_test_exec_start="/bin/sh /etc/rc"
export jail_test_exec_stop=""
export jail_test_mount_enable="YES"
export jail_test_devfs_enable="YES"
export jail_test_devfs_ruleset="devfsrules_jail"
export jail_test_procfs_enable="YES"
export jail_test_fdescfs_enable="YES"
export jail_test_image=""
export jail_test_imagetype=""
export jail_test_attachparams=""
export jail_test_attachblocking=""
export jail_test_forceblocking=""
export jail_test_zfs_datasets=""
export jail_test_cpuset=""
export jail_test_fib=""
Jail /etc/resolv.conf
Code:
nameserver 192.168.1.1
Code:
JAIL> host freebsd.org
freebsd.org has address 69.147.83.40
freebsd.org has IPv6 address 2001:4f8:fff6::28
freebsd.org mail is handled by 10 mx1.freebsd.org.
However trying to build any ports fails on fetch.