Jails invisible

Status
Not open for further replies.

SilverJS

Patron
Joined
Jun 28, 2011
Messages
255
Hey guys,

I have a feeling this will be a rather simple fix once someone points out the error that I'm sure is pretty simple, but that I just can't seem to find...

So I've moved to a new part of the country, and now need to change the whole network configuration of my FreeNAS back to the 192.168.x.x construct (was 172.16.x.x before). So far, changed my network interface, no problems, sent myself a test e-mail, which I received. I've got the internal IP address of the FreeNAS server fixed at 192.168.0.106, which is the first one it picked for itself on the new network.

Current default gateway is 192.168.0.1. My current jail config :

IPv4 network : 192.168.0.1/24
IPv4 network start address : 192.168.0.110
IPV4 network end address : 192.168.0.130

I only have two jails : one for XBMC (MySQL, for movies) and the other for Transmission. Right now, neither is accessible. Everything was working fine before move.

Thanks in advance!!
 
Last edited:

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Did you actually set the jails themselves to that IP range?
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
You need to edit the actual jail not just the configuration tab under jails.
 

SilverJS

Patron
Joined
Jun 28, 2011
Messages
255
LOL - sorry to not have mentioned that...but yes, I had indeed done that. =) First jail (XBMC) is 192.168.0.110, second jail (Transmission) = 192.168.0.112.
 

SilverJS

Patron
Joined
Jun 28, 2011
Messages
255
I've even tried recreating a brand-new jail to test things out - and the "pkg install mysql55-server" command didn't even work...no repositories or some such.
 

SilverJS

Patron
Joined
Jun 28, 2011
Messages
255
UPDATE : So I can now ping my router from inside the jails. (Activated promiscuous mode and rebooted - not sure if that's what did it, but there ya go.) But, my jails still don't have access to the internet, and I'm not sure why. Transmission doesn't find trackers, and I still can't access my XBMC database on MySQL. Ideas?
 
Last edited:

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
Ping 8.8.8.8
If it works, you have internet, it's just your DNS is not setup right. Post output of cat/etc/resolv.conf from the jails. And maybe netstat -rn and ifconfig|grep inet also while you're at it lol.
 

SilverJS

Patron
Joined
Jun 28, 2011
Messages
255
OK, you're right - jails DO indeed have access to internet. Searched, but couldn't find a very "clean" way to post outputs and such (with blue shading...I know it has to do with CODE, but couldn't find anything specific...apologies!), but here's the output from the two commands :

XBMC Jail :

cat /etc/resolv.conf
search local
nameserver 142.165.21.5
nameserver 142.165.200.5

netstat -rn :
no namelist

ifconfig | grep inet
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff000000
inet 192.168.0.110 netmask 0xffffff00 broadcast 192.168.0.255
inet6 fe80::2:69ff:fe00:e0b%epair0b prefixlen 64 scopeid 0x2

Transmission Jail :

cat /etc/resolv.conf
search local
nameserver 142.165.21.5
nameserver 142.165.200.5

netstat -rn
no namelist

ifconfig | grep inet
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff000000
inet 192.168.0.112 netmask 0xffffff00 broadcast 192.168.0.255
inet6 fe80::a2:4cff:fe00:e0b%epair1b prefixlen 64 tentative scopeid 0x2

I have since added, to both jails, a Default Gateway of 192.168.0.1, which is my router, but no change to the overall situation.
 
Last edited:

SilverJS

Patron
Joined
Jun 28, 2011
Messages
255
UPDATE : New jails have no problems at all. Since I didn't have anything critical in my XBMC library (that a re-import couldn't re-create), I just deleted my two old jails, created a new one and setup mariadb on it for XBMC (still couldn't figure out the proper command to install mysql...?) and re-installed Transmission plugin. All works fine now.

However, for future reference (because this isn't my last move!), if anybody can help me figure out what went awry with the previous jails, I'd be very grateful. I had backed everything on the server up already to nip potential problems in the bud, but the one thing I forgot was to export the XBMC library - which, like I said, isn't critical, but would have made the process even more seamless.

Cheers!
 

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
Not sure why your netstat commands are failing outright.
The outputs of those commands besides netstat look OK IF 142.165.21.5 and 142.165.200.5 are really your nameservers.
Typically, it should be your default gateway (most likely, 192.168.0.1) or you could also use Google's (8.8.8.8 and 8.8.4.4).
Do those same commands on your new working jails and see what's different (netstat probably will be different).
 

SilverJS

Patron
Joined
Jun 28, 2011
Messages
255
Hmm...still "no namelist" on netstat -rn on the new jails....
 

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
I think it's because for netstat to work, you may need VIMAGE checked. Anyway, what's the output of cat /etc/resolv.conf on the new jails? I think that should be the reason why your internet doesn't work.
 

SilverJS

Patron
Joined
Jun 28, 2011
Messages
255
To be clear, internet on the newly-created jails DOES work. That's what's the weirdest. So far, they function perfectly normally (except for the XBMC MySQL one not syncing properly - but that's not a jail issue, probably a user thing or XBMC version or something....) But for the resolv.conf :

Jail 2 (Transmission) :

search local
nameserver 142.165.21.5
nameserver 142.165.200.5
nameserver 192.168.0.1

Jail 3 (XBMC MySQL) :

search local
nameserver 142.165.21.5
nameserver 142.165.200.5
nameserver 192.168.0.1

So, the same nameservers I have on my general config.

As for netstat - no idea. I can't remember if VIMAGE was checked - is that one that is unchecked by default when creating? The only change I made to the defaults is to uncheck Vanilla for the MySQL one.
 

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
I think that's it. You're missing the third nameserver in your post above (192.168.0.1). I did mention 4 posts above that's the one that should typically go in there.
Basically, it just keeps searching using the names if it fails until it gets the one that works.
 

SilverJS

Patron
Joined
Jun 28, 2011
Messages
255
Funny though - I did have the 192.168.0.1 in the nameserver in the general config for a while. Not sure why old jails didn't pick it up...?
 

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
Were those jails created with the same version of FreeNAS?
 

SilverJS

Patron
Joined
Jun 28, 2011
Messages
255
Yes, 9.2.0. Athlon X2 255, 8 GB ECC RAM, 6 X 3TB drives in RAIDZ2 + 1 hot spare.
 
Status
Not open for further replies.
Top