Sub-IP for Jail?

Status
Not open for further replies.

munificent

Explorer
Joined
Jul 3, 2012
Messages
54
Hi guys,

Just slapped RC1 onto my home server and getting to grips with it. Seems terrific. One problem, though. The plugins jail needs a separate (virtual?) IP address. I picked one within my router's range and the system doesn't like it. Is there any particular method for selecting this sub-IP?
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Is it the same range as the IP address for FreeNAS? It can be one off from what your FreeNAS IP is.
 

munificent

Explorer
Joined
Jul 3, 2012
Messages
54
It's in the same range, yes. Upper limit of that range to avoid my router giving the same IP to something else, but well within it. I'll try it one off from the FReeNAS itself and see how that goes
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Can you be more specific when you say the jail doesn't like it? Is there an error? What doesn't seem to work?
 

munificent

Explorer
Joined
Jul 3, 2012
Messages
54
Nope. Changing the IP to one off from the IP of the FreeNAS itself didn't work. Could it be that I have not yet configured my mount points, and the system is getting muddled? I'm working on that now, but mount points are not straightforward for a Windows man like myself to understand.

Specific: I get an amber alert in the top right hand corner and this message:

WARNING: The plugins jail IP is not reachable, the plugins will malfunction.
 

munificent

Explorer
Joined
Jul 3, 2012
Messages
54
I have now setup a mount point as follows:

/mnt/HeadNet/tank/unfiltered /mnt/HeadNet/Lockup/Prisoners/usr/pbi

That's going to be my 'requires attention' subfolder and the main path to my jail.

My router goes from *.*.*.63 - *.*.*.253. My first go at an IP was .150, then went to .70 (my FreeNAS is on .69).

Jail IP Netmask on /24 (255.255.255.0) both times.

That is pretty much every piece of configuration information I've done thus far.

Could Netmask be wrong? Mountpoint? Could it be my router that's to blame? I'm stumped!
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Its not your router or mountpoint, the netmask looks fine also.

Can you open a shell using the shell icon in the tree menu on the left, then type the following commands:

jexec 1 csh

ifconfig -a


Copy and paste the output of the ifconfig command and post it here. Add some code tags around the output

Since the bloody editing toolbar doesn't work here in the forums.

EDIT: I cant' type an example of the code tags but without the spaces: [ code ] [ /code]
 

gentoo9ball

Dabbler
Joined
Jul 16, 2012
Messages
14
I think I have a similar problem here. I've got my mount points correct. Now the networking is giving me fits. I cannot ping the jail ip from the rest of the network. I can ping the jail ip from the freenas shell and I can ping the reverse.

Config:
FreeNAS ip 10.0.0.3/24 dhcp reserved by mac at router
jail ip 10.0.0.7/24 static


This is from inside the jail:
Code:
[root@freenas] ~# jexec 1 /bin/tcsh
software# ifconfig -a
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=3<RXCSUM,TXCSUM>
        inet 127.0.0.1 netmask 0xff000000
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
        nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
epair0b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 02:60:79:00:05:0b
        inet 10.0.0.7 netmask 0xffffff00 broadcast 10.0.0.255
        inet6 fe80::60:79ff:fe00:50b%epair0b prefixlen 64 scopeid 0x2
        nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
        media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
        status: active


This is from outside the jail:
Code:
[root@freenas] ~# ifconfig -a
em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=98<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
        ether 00:0c:29:06:18:ec
        inet 10.0.0.3 netmask 0xffffff00 broadcast 10.0.0.255
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=3<RXCSUM,TXCSUM>
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
        nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 82:89:d7:4b:3c:70
        inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
        id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
        maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
        root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
        member: em0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 1 priority 128 path cost 20000
        member: epair0a flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 4 priority 128 path cost 2000
epair0a: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 02:60:79:00:04:0a
        inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
        media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
        status: active
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
munificent this will go smoother if you show us the actual IPs. In addition to what protosd asked for, run the following, outside the jail, as root from an SSH session:
Code:
ifconfig -a

netstat -rn





  • Since the bloody editing toolbar doesn't work here in the forums.
    I've never had a problem. Though that's probably because I've never used it. :eek:
  • EDIT: I cant' type an example of the code tags but without the spaces: [ code ] [ /code]
    Works here ;) [code][/code]

    You likely remembered by now, but you were looking for [noparse][/noparse].
 

munificent

Explorer
Joined
Jul 3, 2012
Messages
54
Right, I am closer to the problem, no closer to fixing it. I watched a YouTube video about mount points in 8.2 and I can see that my jail is not setup correctly at all. That is to say, when I type the
Code:
jls
command, there is no jail listed for me to go into and get the information from inside it that protosd requested. Since it looks like I made a mistake earlier in the process, let me list what I did:

1) In the Storage tab I created a ZFS dataset under HeadNet that I called Lockup, and gave it a 4g quota and reserve
2) I downloaded the PBI from this link: http://sourceforge.net/projects/fre...NAS-8.2.0-BETA4-x64.Plugins_Jail.pbi/download
NB - I didn't grab the sha256 file
3) I followed the jail setup in the GUI, allowing it to temporarily store the PBI on mnt/HeadNet as it wanted to. That got me as far as the IP settings screen (Step 2 of 3) where these problem began.

paleoN asked for the vanilla ifconfig output and it's as follows:

Code:
bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500      
        options=c019b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLA
N_HWTSO,LINKSTATE>                                                              
        ether e8:39:35:ee:24:70                                                 
        inet 192.168.1.69 netmask 0xffffff00 broadcast 192.168.1.255            
        media: Ethernet autoselect (1000baseT <full-duplex,flowcontrol,rxpause,t
xpause>)                                                                        
        status: active                                                          
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384               
        options=3<RXCSUM,TXCSUM>                                                
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2                              
        inet6 ::1 prefixlen 128                                                 
        inet 127.0.0.1 netmask 0xff000000                                       
        nd6 options=3<PERFORMNUD,ACCEPT_RTADV>    


Netstat:

Code:
Routing tables                                                                  
                                                                                
Internet:                                                                       
Destination        Gateway            Flags    Refs      Use  Netif Expire      
127.0.0.1          link#2             UH          0    53475    lo0             
192.168.1.0/24     link#1             U           0   168904   bge0             
192.168.1.69       link#1             UHS         0      226    lo0             
                                                                                
Internet6:                                                                      
Destination                       Gateway                       Flags      Netif
 Expire                                                                         
::1                               ::1                           UH          lo0 
fe80::%lo0/64                     link#2                        U           lo0 
fe80::1%lo0                       link#2                        UHS         lo0 
ff01:2::/32                       fe80::1%lo0                   U           lo0 
ff02::%lo0/32                     fe80::1%lo0                   U           lo0 


My actual IP address is listed there, third one down.
 

munificent

Explorer
Joined
Jul 3, 2012
Messages
54
I replied with all the relevant code etc. It's awaiting mod approval. I think the mistake may have been further up the chain.
 

munificent

Explorer
Joined
Jul 3, 2012
Messages
54
Right, I think I know what the problem was, and I am working my way towards fixing it. I had created 2 datasets, 1 for the jail, another for the plugins. BUT I had placed the plugin one *within* the jail dataset, which I believe was my error.

I deleted the attempted jail and the datasets and rebuilt them, this time with two separate datasets, not nested. I went through the process for creating the jail and first impressions are positive. The command

jls

Now reveals a jail there, whereas before I saw no number under the JID field.

As per ProtoSD's request, I see this:

Code:
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384               
        options=3<RXCSUM,TXCSUM>                                                
        inet 127.0.0.1 netmask 0xff000000                                       
        inet6 ::1 prefixlen 128                                                 
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1                              
        nd6 options=3<PERFORMNUD,ACCEPT_RTADV>                                  
epair0b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500   
        ether 02:65:a9:00:05:0b                                                 
        inet 192.168.1.150 netmask 0xffffff00 broadcast 192.168.1.255           
        inet6 fe80::65:a9ff:fe00:50b%epair0b prefixlen 64 scopeid 0x2           
        nd6 options=3<PERFORMNUD,ACCEPT_RTADV>                                  
        media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)                     
        status: active  


As for Paleon's request, this is all I can copy from the root ifconfig:

Code:
        inet 192.168.1.69 netmask 0xffffff00 broadcast 192.168.1.255            
        media: Ethernet autoselect (1000baseT <full-duplex,flowcontrol,rxpause,t
xpause>)                                                                        
        status: active                                                          
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384               
        options=3<RXCSUM,TXCSUM>                                                
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2                              
        inet6 ::1 prefixlen 128                                                 
        inet 127.0.0.1 netmask 0xff000000                                       
        nd6 options=3<PERFORMNUD,ACCEPT_RTADV>                                  
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500   
        ether 1e:dc:7e:79:4f:a1                                                 
        id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15             
        maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200                 
        root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0                
        member: epair0a flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>           
                ifmaxaddr 0 port 4 priority 128 path cost 2000                  
epair0a: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu
 1500                                                                           
        ether 02:65:a9:00:04:0a                                                 
        inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255               
        media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)                     
        status: active   


The rest scrolled off the top of the screen. The netstat -rn returned:

Code:
Routing tables                                                                  
                                                                                
Internet:                                                                       
Destination        Gateway            Flags    Refs      Use  Netif Expire      
0.0.0.0/8          link#4             U           0        0 epair0             
127.0.0.1          link#2             UH          0    69414    lo0             
192.168.1.0/24     link#1             U           0   219608   bge0             
192.168.1.69       link#1             UHS         0      298    lo0             
                                                                                
Internet6:                                                                      
Destination                       Gateway                       Flags      Netif
 Expire                                                                         
::1                               ::1                           UH          lo0 
fe80::%lo0/64                     link#2                        U           lo0 
fe80::1%lo0                       link#2                        UHS         lo0 
ff01:2::/32                       fe80::1%lo0                   U           lo0 
ff02::%lo0/32                     fe80::1%lo0                   U           lo0 


I am now going to setup a mount point and see if I can get Transmission up and running. Getting closer!
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403

munificent

Explorer
Joined
Jul 3, 2012
Messages
54
That's my mistake for linking to the wrong file. The file I downloaded was the RC1 jail pbi. The filename is FreeNAS-8.2.0-RC1-x64.Plugins_Jail.pbi. I do have a spare usb stick and could do a fresh install but I can assure you I'm running RC1 all the way. If I do a fresh install, surely I'll get the same errors, just on a different stick? I mean, I'm game to try it, but I was hoping there would be a user error visible somewhere that I could tweak and learn from.
 

white_flag

Dabbler
Joined
Jul 18, 2012
Messages
16
I have the same error on my box - fresh install of RC1:
WARNING: The plugins jail IP is not reachable, the plugins will malfunction.
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
Are you using static IP?
Have you configured the default gateway under Network -> Global Conf?

If you didn't, stop the jail, configure it and then start it again...
 

white_flag

Dabbler
Joined
Jul 18, 2012
Messages
16
my box is like this:

box with one networkcard re0 (static ip: 192.168.1.100/24; gateway 192.168.1.99)
this will go in a 5Ghz wireless router, that is like this static ip: 192.168.1.240/24 gateway 192.168.1.99 with LanNetwork from: 192.168.1.100 -199/24
on jail I put via GUI interface - 192.168.1.88/24. I still see that ip on config screen..
but on warning mess: not Ip for jail ..etc. The box will be used to play films via minidlna (this one doesn't start because of jail issue. I quess)
 

white_flag

Dabbler
Joined
Jul 18, 2012
Messages
16
ipconfig -a

Code:

        ether 40:61:86:2e:16:bc                                                 
        inet 192.168.1.100 netmask 0xffffff00 broadcast 192.168.1.255           
        media: Ethernet autoselect (100baseTX <full-duplex>)                    
        status: active                                                          
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384               
        options=3<RXCSUM,TXCSUM>                                                
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2                              
        inet6 ::1 prefixlen 128                                                 
        inet 127.0.0.1 netmask 0xff000000                                       
        nd6 options=3<PERFORMNUD,ACCEPT_RTADV>                                  
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500   
        ether 82:56:ca:31:70:a6                                                 
        id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15             
        maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200                 
        root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0                
        member: epair0a flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>           
                ifmaxaddr 0 port 4 priority 128 path cost 2000                  
epair0a: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu
 1500                                                                           
        ether 02:11:70:00:04:0a                                                 
        media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)                     
        status: active 




netstate -rn
Code:

[root@freenas ~]# netstat -rn                                                   
Routing tables                                                                  
                                                                                
Internet:                                                                       
Destination        Gateway            Flags    Refs      Use  Netif Expire      
127.0.0.1          link#2             UH          0    59988    lo0             
192.168.1.0/24     link#1             U           0  3036729    re0             
192.168.1.100      link#1             UHS         0      189    lo0             
                                                                                
Internet6:                                                                      
Destination                       Gateway                       Flags      Netif
 Expire                                                                         
::1                               ::1                           UH          lo0 
fe80::%lo0/64                     link#2                        U           lo0 
fe80::1%lo0                       link#2                        UHS         lo0 
ff01:2::/32                       fe80::1%lo0                   U           lo0 
ff02::%lo0/32                     fe80::1%lo0                   U           lo0 




on jexec ..seems that is not the same like was 2 hours ago.

Code:

[root@freenas ~]# jexec 1 ifconfig -a                                           
jexec: jail_attach(1): Invalid argument 


from service>plugins> is start (on)

shoud I restart the box?
 
Status
Not open for further replies.
Top