Hello,
I've tried following the guide linked here:
www.ixsystems.com
and various other attempts at setting up jails for my situation without much luck yet.
Specifically, my TrueNAS Core 12.0 install is hosted in a colo-facility. I had everything (a nextcloud and plex jail, for instance) working decently at home, when I could assign local IPs to the jails, with my mediocre understanding of local networking. After research and trials I ordered a 2nd static IP with the intent of having an nginx-reverse-proxy at that IP make my other jails available externally.
What I'm struggling with is what settings to apply to the jail(s) and maybe base system's network to get them to have network connectivity. Specifically, in the above guide it mentions vnet which I tried at first (with my public IP and route in place of the private ones listed in the guide). Then I tried enabling DHCP, and finally no vnet (just connected to eth3, which is my normal port).
One slight oddity, when I start the jail, for ~60 seconds pinging google.com works (so I thought I fixed my problem), but after a bit it stops working. I can no longer ping domains or IPs until I stop and restart it.
I also tried to make another jail with private addresses, but wasn't really sure what to do in terms of routing, so I couldn't even ping a dns server.
I can access the server's dashboard and ssh via the original IP address just fine, and when I'm in the default shell have access to internet/dns/etc.
Jails are on 12.1-release-p10 (in general is it best to keep these aligned with the underlying system version, or doesn't matter?)
I can't tell a difference between `ifconfig` or `netstat -nr` during the period where connectivity works, vs when it doesn't. So I'm fairly stumped on what to look into to debug it further. I don't have any static routes defined, and haven't made much if any modifications to etc/conf files in either the base system or the jails.
I've tried following the guide linked here:

How to set up an nginx reverse proxy with SSL termination in a jail
This resource was originally created by user: samuel-emrys on the TrueNAS Community Forums Archive. Please DM this account or comment in this thread to claim it. Instructions are available here: How to set up an nginx reverse proxy with SSL termination in FreeNAS Recently I went through the...

Specifically, my TrueNAS Core 12.0 install is hosted in a colo-facility. I had everything (a nextcloud and plex jail, for instance) working decently at home, when I could assign local IPs to the jails, with my mediocre understanding of local networking. After research and trials I ordered a 2nd static IP with the intent of having an nginx-reverse-proxy at that IP make my other jails available externally.
What I'm struggling with is what settings to apply to the jail(s) and maybe base system's network to get them to have network connectivity. Specifically, in the above guide it mentions vnet which I tried at first (with my public IP and route in place of the private ones listed in the guide). Then I tried enabling DHCP, and finally no vnet (just connected to eth3, which is my normal port).
One slight oddity, when I start the jail, for ~60 seconds pinging google.com works (so I thought I fixed my problem), but after a bit it stops working. I can no longer ping domains or IPs until I stop and restart it.
I also tried to make another jail with private addresses, but wasn't really sure what to do in terms of routing, so I couldn't even ping a dns server.
I can access the server's dashboard and ssh via the original IP address just fine, and when I'm in the default shell have access to internet/dns/etc.
Jails are on 12.1-release-p10 (in general is it best to keep these aligned with the underlying system version, or doesn't matter?)
I can't tell a difference between `ifconfig` or `netstat -nr` during the period where connectivity works, vs when it doesn't. So I'm fairly stumped on what to look into to debug it further. I don't have any static routes defined, and haven't made much if any modifications to etc/conf files in either the base system or the jails.
Code:
igb0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=e527bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,WOL_MAGIC,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6> ether 0c:c4:7a:33:c2:60 media: Ethernet autoselect status: no carrier nd6 options=1<PERFORMNUD> igb1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=e507bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6> ether 0c:c4:7a:33:c2:61 media: Ethernet autoselect status: no carrier nd6 options=1<PERFORMNUD> igb2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=e507bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6> ether 0c:c4:7a:33:c2:62 media: Ethernet autoselect status: no carrier nd6 options=1<PERFORMNUD> igb3: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=8100b8<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWFILTER> ether 0c:c4:7a:33:c2:63 inet 107.xxx.yyy.199 netmask 0xfffffff0 broadcast 107.xxx.yyy.207 inet 107.xxx.yyy.198 netmask 0xfffffff0 broadcast 107.xxx.yyy.207 media: Ethernet autoselect (1000baseT <full-duplex>) status: active nd6 options=9<PERFORMNUD,IFDISABLED> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6> inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet 127.0.0.1 netmask 0xff000000 groups: lo nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> pflog0: flags=0<> metric 0 mtu 33160 groups: pflog bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 ether 02:e3:88:26:25:00 id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto stp-rstp maxaddr 2000 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: vnet0.5 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> ifmaxaddr 0 port 8 priority 128 path cost 2000 member: igb3 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> ifmaxaddr 0 port 4 priority 128 path cost 20000 groups: bridge nd6 options=1<PERFORMNUD> vnet0.5: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500 description: associated with jail: folsom as nic: epair0b options=8<VLAN_MTU> ether 0e:c4:7a:e3:2c:0f hwaddr 02:2c:cc:35:24:0a groups: epair media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>) status: active nd6 options=1<PERFORMNUD>
Code:
root@reverse-proxy:/ # ifconfig igb0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=e527bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,WOL_MAGIC,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6> ether 0c:c4:7a:33:c2:60 media: Ethernet autoselect status: no carrier igb1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=e507bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6> ether 0c:c4:7a:33:c2:61 media: Ethernet autoselect status: no carrier igb2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=e507bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6> ether 0c:c4:7a:33:c2:62 media: Ethernet autoselect status: no carrier igb3: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=8100b8<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWFILTER> ether 0c:c4:7a:33:c2:63 inet 107.xxx.yyy.198 netmask 0xfffffff0 broadcast 107.xxx.yyy.207 media: Ethernet autoselect (1000baseT <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6> groups: lo pflog0: flags=0<> metric 0 mtu 33160 groups: pflog bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 ether 02:e3:88:26:25:00 id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: vnet0.5 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> ifmaxaddr 0 port 8 priority 128 path cost 2000 member: igb3 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> ifmaxaddr 0 port 4 priority 128 path cost 20000 groups: bridge vnet0.5: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500 description: associated with jail: folsom as nic: epair0b options=8<VLAN_MTU> ether 0e:c4:7a:e3:2c:0f hwaddr 02:2c:cc:35:24:0a groups: epair media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>) status: active
Code:
Routing tables Internet: Destination Gateway Flags Netif Expire default 107.148.224.206 UGS igb3 107.148.224.192/28 link#4 U igb3 107.148.224.198 link#4 UHS lo0 107.148.224.199 link#4 UHS lo0 127.0.0.1 link#5 UH lo0 Internet6: Destination Gateway Flags Netif Expire ::/96 ::1 UGRS lo0 ::1 link#5 UH lo0 ::ffff:0.0.0.0/96 ::1 UGRS lo0 fe80::/10 ::1 UGRS lo0 fe80::%lo0/64 link#5 U lo0 fe80::1%lo0 link#5 UHS lo0 ff02::/16 ::1 UGRS lo0
Code:
Routing tables Internet: Destination Gateway Flags Netif Expire 107.148.224.198 link#4 UHS lo0