New ISP = New Router = Jail Not Found?

Status
Not open for further replies.

ucrbuffalo

Dabbler
Joined
Jun 30, 2016
Messages
36
I switched ISPs today and I'm working on getting my entire network moved over. I'm pretty close, except for one problem:
My old router was on 192.168.1.XXX, but the new router is 192.168.2.XXX. This is fine, and I haven't had an issue changing the IP in FreeNAS or on the Jail. However, the only jail I'm currently running is Plex, and after changing the IP, the Plex webGUI cannot find my PMS. I have tried restarting the jail, even restarting the box, to no avail. The router sees the jail and there's no issue there, as far as I can tell. The front end just doesn't want to connect for some reason.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Change the default route in your resolv.conf file in the jail to reflect the new default gateway.
 

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
Looking mine, only shows the nameserver. Where the change needs to be made? Add to it? Not on rc.conf?

Code:
root@plexmediaserver_1:/etc # cat /etc/resolv.conf
# Generated by resolvconf
search xxxxxxxx.com
nameserver 10.10.10.1
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Sorry, nameserver not default route. That's what I get for trying to work from memory.
 

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
After above changes ...

Assume the nameserver will play part on name resolution. When clicking the here on Click here to access your Plex Media Server!, I get the Plex IP address pointing to port 32400.

What do you see in as the link you will be directed to? Is it the IP the same you see in your router?

Drop to your shell (ssh or via gui), type:
jls

You will see:

JID IP Address Hostname Path
1 - plexmediaserver_1 /mnt/raid/jails/plexmediaserver_1


Get into your Plex by typing jexec <JID #> (jexec 1 in above case)

Check your IP:

root@plexmediaserver_1:/ # ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
epair0b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 02:ff:70:00:05:0b
inet 10.10.10.132 netmask 0xffffff00 broadcast 10.10.10.255
nd6 options=9<PERFORMNUD,IFDISABLED>
media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
status: active
root@plexmediaserver_1:/ #


Check if you can ping outside:

root@plexmediaserver_1:/ # ping yahoo.com
PING yahoo.com (98.138.253.109): 56 data bytes
64 bytes from 98.138.253.109: icmp_seq=0 ttl=46 time=59.133 ms
64 bytes from 98.138.253.109: icmp_seq=1 ttl=46 time=59.471 ms
^C
--- yahoo.com ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 59.133/59.302/59.471/0.169 ms


Check who your route is setup:

root@plexmediaserver_1:/ # netstat -rn
Routing tables

Internet:
Destination Gateway Flags Netif Expire
default 10.10.10.1 UGS epair0b
10.10.10.0/24 link#2 U epair0b
10.10.10.132 link#2 UHS lo0
127.0.0.1 link#1 UH lo0

Internet6:
Destination Gateway Flags Netif Expire
::/96 ::1 UGRS lo0
::1 link#1 UH lo0
::ffff:0.0.0.0/96 ::1 UGRS lo0
fe80::/10 ::1 UGRS lo0
fe80::%lo0/64 link#1 U lo0
fe80::1%lo0 link#1 UHS lo0
ff01::%lo0/32 ::1 U lo0
ff02::/16 ::1 UGRS lo0
ff02::%lo0/32 ::1 U lo0
root@plexmediaserver_1:/ #


Make sure all is correct for your network. Please note mine is 10.10.10.0/24, so above values will show that.

If using DHCP on FreeNAS and Jails/Plugins, changing routers should be transparent. If not I'd talk with the Devs :D
 

ucrbuffalo

Dabbler
Joined
Jun 30, 2016
Messages
36
Wow. This is a great thread! One tiny can of worms for me though. Plex is identified as number 4. So I typed in "jexec 4" and it says "No such file or directory". Why is that?
Additionally, if I open the shell directly from the jail and try to ping, it cannot connect.
 

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
Wow. This is a great thread! One tiny can of worms for me though. Plex is identified as number 4. So I typed in "jexec 4" and it says "No such file or directory". Why is that?
Additionally, if I open the shell directly from the jail and try to ping, it cannot connect.

Is the plugin running?
 

ucrbuffalo

Dabbler
Joined
Jun 30, 2016
Messages
36
Code:
root@Plex:/ # ifconfig														 
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384			   
		options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>				   
		inet6 ::1 prefixlen 128												 
		inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1							 
		inet 127.0.0.1 netmask 0xff000000									   
		nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>							   
epair0b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500   
		options=8<VLAN_MTU>													 
		ether 1a:e9:7f:05:18:42												 
		inet 192.168.2.11 netmask 0xffffff00 broadcast 192.168.2.255			
		nd6 options=9<PERFORMNUD,IFDISABLED>									
		media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)					 
		status: active

Code:
root@Plex:/ # ping yahoo.com													
ping: cannot resolve yahoo.com: Host name lookup failure
 

ucrbuffalo

Dabbler
Joined
Jun 30, 2016
Messages
36

nojohnny101

Wizard
Joined
Dec 3, 2015
Messages
1,478
If indeed the jail is number 4, did you try
Code:
jexec 4 tcsh
 

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
Did the above post is from the Plex plugin? I see an IP from the subnet you've indicated ... Did you change the nameserver as @Jailer suggested? What about results from
netstat -rn
Does it show your router's IP as default gateway?
 

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
Also ... on the associated jail for your plugin, does it show DHCP? Is the assigned IP correct? And the default gateway your router?
upload_2017-7-19_21-16-31.png
 

ucrbuffalo

Dabbler
Joined
Jun 30, 2016
Messages
36
This is what I see. However, I'm still trying to find the nameserver.
 

Attachments

  • Untitled.png
    Untitled.png
    141.1 KB · Views: 277

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
I see you are not using DHCP and your gateway is empty. Update IPV4 default gateway with your router's IP and try.
 

ucrbuffalo

Dabbler
Joined
Jun 30, 2016
Messages
36
No luck. The DHCP shouldn't be on since its a static IP, right?
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
No luck. The DHCP shouldn't be on since its a static IP, right?
Correct.

To change the nameserver you need to open a shell for the jail and edit the resolv.conf file. It's located at /etc/resolv.conf.
 

ucrbuffalo

Dabbler
Joined
Jun 30, 2016
Messages
36
Well s***... I never mess with the shell except for really basic stuff so I'm not entirely sure how to do that. Off to the far reaches of the internet I go!!
(Or searching the forums, lol)
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Putty is your friend.
 

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
Know the feeling.

You will probably have vi. Do a search on how to navigate and save the file with it. I use nano, but it is not installed by default.

The question still: If you changed the default gateway @ the jail configuration, why the resolv.conf has not be updated ...
 

ucrbuffalo

Dabbler
Joined
Jun 30, 2016
Messages
36
Status
Not open for further replies.
Top