SOLVED Jail gateway not working

Status
Not open for further replies.

spencerisadog

Dabbler
Joined
Jan 30, 2016
Messages
11
Hello all, I ran in to a problem when suddenly I had to change my router IP. Now none of my jails will connect to the internet. I did some Googling and found what perfectly describes my problem. When a jail gets created it copies the root resolv.conf to the jail, but never updates it if the host resolv.conf changes. I followed that guide to copy the root resolv.conf to each jail. I also ran the "route del default" and "route add default 192.168.1.10" on each jail, which fixed the problem. However, after a reboot, it doesn't work again, the jail can not see the Internet. I have to run the "route del / add" commands to get it to work again. Running "netstat -r" on my root shell shows the correct default gateway.

When I run netstat -rn from shell:
Code:
[root@freenas ~]# netstat -rn												 
Routing tables																
																				
Internet:																	 
Destination		Gateway			Flags	  Netif Expire				 
default			192.168.1.10	   UGS		bce0						 
127.0.0.1		  link#7			 UH		  lo0						 
192.168.1.0/24	 link#1			 U		  bce0						 
192.168.1.201	  link#1			 UHS		 lo0						 
																				
Internet6:																	
Destination					   Gateway					   Flags	  Netif
Expire																		
::/96							 ::1						   UGRS		lo0
::1							   link#7						UH		  lo0
::ffff:0.0.0.0/96				 ::1						   UGRS		lo0
fe80::/10						 ::1						   UGRS		lo0
fe80::%lo0/64					 link#7						U		   lo0
fe80::1%lo0					   link#7						UHS		 lo0
ff01::%lo0/32					 ::1						   U		   lo0
ff02::/16						 ::1						   UGRS		lo0
ff02::%lo0/32					 ::1						   U		   lo0
[root@freenas ~]#


netstat -rn from jail shows "no namelist"

Any ideas would be appreciated!
 
Last edited:

spencerisadog

Dabbler
Joined
Jan 30, 2016
Messages
11
Nevermind, I'm an idiot. I went in to the GUI and the jails config works now if you change the network settings under "ADVANCED" on the edit button. I swear that didn't work before.
 
Status
Not open for further replies.
Top