I'm having some trouble figuring out how to set up the interface for the jail on the second NIC under FreeNAS.
I'm running FreeNAS-8.2.0-BETA3-x64 (r11188) on a server with a second nic (dual port) and the second nic is connected to a separate network on a dmz. I've ended up with this:
Interface Name DHCP IPv4 Address
bge0 HomeNetwork True 10.0.2.2/24
em0 Jails True 10.0.4.2/24
my Global Config settings for FreeNAS have Gateway: 10.0.2.1 and OpenDNS servers listed.
I can shell into the plugin jail, but don't seem to have internet access from there.
[root@freenas /root]# jls
JID IP Address Hostname Path
4 10.0.4.2 software /mnt/SERVER/Jail/software
[root@freenas /root]# jexec 4 /bin/tcsh
software# pkg_add -r apache22
Error: Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.2-
release/Latest/apache22.tbz: No address record
pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages
-8.2-release/Latest/apache22.tbz' by URL
software#
I'm wondering if I have to do some manual network configuration settings in FreeNAS or in the plugin jail for it to use the second network. I even tried to set up the gateway as 10.0.4.1, as I don't think I need the gateway or DNS servers at all for FreeNAS, just for the jail. That did not work.
Regards,
David
I'm running FreeNAS-8.2.0-BETA3-x64 (r11188) on a server with a second nic (dual port) and the second nic is connected to a separate network on a dmz. I've ended up with this:
Interface Name DHCP IPv4 Address
bge0 HomeNetwork True 10.0.2.2/24
em0 Jails True 10.0.4.2/24
my Global Config settings for FreeNAS have Gateway: 10.0.2.1 and OpenDNS servers listed.
I can shell into the plugin jail, but don't seem to have internet access from there.
[root@freenas /root]# jls
JID IP Address Hostname Path
4 10.0.4.2 software /mnt/SERVER/Jail/software
[root@freenas /root]# jexec 4 /bin/tcsh
software# pkg_add -r apache22
Error: Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.2-
release/Latest/apache22.tbz: No address record
pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages
-8.2-release/Latest/apache22.tbz' by URL
software#
I'm wondering if I have to do some manual network configuration settings in FreeNAS or in the plugin jail for it to use the second network. I even tried to set up the gateway as 10.0.4.1, as I don't think I need the gateway or DNS servers at all for FreeNAS, just for the jail. That did not work.
Regards,
David