Grand_Moff_Twerkin
Dabbler
- Joined
- Feb 22, 2022
- Messages
- 30
I set my jails up using NAT which is fine and good for the most part but if I ever add or remove jails and reboot the host then the jail IP's always change. This is very bad because then I have to go through all my jails and update the new IP's and is a major PITA.
1.) How can I either lock the IP's IOcage is using for it's NAT jails, so they don't change when I add or delete jails and reboot the host?
2.) Is there any good scripts that will keep track of running jails and update the host files in them all?
3.) Does IOcage run some sort or internal DNS so that I can just point it toward host names?
4.) Can I use port forwarding from my router? If so how?
5.) Why will pointing the jails toward the host on their running port not work? I have done this with Docker containers on Linux.
Which brings me to DHCP, I have never been able to get a jail running through DHCP. I'm sure that it isn't my pfSense (v2.60) box because I have been testing with Virtualbox using a bridged adapter it has zero problem assigning a dynamic IP in the same range as the host or what I would call my LAN.
As for static IP's those work somewhat but are not reliable at all, I can start the jail and try to ping Google and it will tell me `the host is down` or `no route to host` so I guess it can't find the default gateway or resolve DNS. As soon as I restart DHCP on the router though the jail will work but if I have to restart the jail I have to restart DHCP again. I have tried to figure out why this is but I've got to the point where I've burned through the hours and have had enough.
I just want something that works so I've come to ask "What is going on with jail networking?". Is this FreeBSD? Is it TrueNAS's middleware? Why are there threads going all the way back to FreeNAS 9 about this problem? Why hasn't it been solved?
1.) How can I either lock the IP's IOcage is using for it's NAT jails, so they don't change when I add or delete jails and reboot the host?
2.) Is there any good scripts that will keep track of running jails and update the host files in them all?
3.) Does IOcage run some sort or internal DNS so that I can just point it toward host names?
4.) Can I use port forwarding from my router? If so how?
5.) Why will pointing the jails toward the host on their running port not work? I have done this with Docker containers on Linux.
Which brings me to DHCP, I have never been able to get a jail running through DHCP. I'm sure that it isn't my pfSense (v2.60) box because I have been testing with Virtualbox using a bridged adapter it has zero problem assigning a dynamic IP in the same range as the host or what I would call my LAN.
As for static IP's those work somewhat but are not reliable at all, I can start the jail and try to ping Google and it will tell me `the host is down` or `no route to host` so I guess it can't find the default gateway or resolve DNS. As soon as I restart DHCP on the router though the jail will work but if I have to restart the jail I have to restart DHCP again. I have tried to figure out why this is but I've got to the point where I've burned through the hours and have had enough.
I just want something that works so I've come to ask "What is going on with jail networking?". Is this FreeBSD? Is it TrueNAS's middleware? Why are there threads going all the way back to FreeNAS 9 about this problem? Why hasn't it been solved?