This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

No connectivity within Jail

Jails with XigmaNAS
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
chrisf4lc0n
Advanced User
Advanced User
Posts: 262
Joined: 07 May 2013 13:15
Location: West Drayton (London)
Status: Offline

No connectivity within Jail

Post by chrisf4lc0n »

OK peeps, before you get angry with me I want to clarify something. I have followed the guide on how to create the Jail using this viewtopic.php?f=79&t=3894, which I think is a great guide, I followed the:
note: the IP address cannot be the same as your Nas4Free!!! It also cannot be in the DHCP scope for your network, either.
Googled more info, edited rc.conf, but I am still stuck.

I DO NOT HAVE ANY INTERNET CONNECTIVITY ONCE INSIDE JAIL :(
Watercooling is just the beginning ;)

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: No connectivity within Jail

Post by raulfg3 »

Mark route Only TCP/IP whithin a jail

And post your NAS IP, and your jail IP /24
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

chrisf4lc0n
Advanced User
Advanced User
Posts: 262
Joined: 07 May 2013 13:15
Location: West Drayton (London)
Status: Offline

Re: No connectivity within Jail

Post by chrisf4lc0n »

Code: Select all

JID  IP Address      Hostname                      Path
    15  192.168.1.61    Apache.local                  /jails/Apache
Image

As you wished sir :)

How did I know you would the 1st one to answer this post? ;)
Watercooling is just the beginning ;)

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: No connectivity within Jail

Post by raulfg3 »

ok, I check that your jail Ip is 192.168.1.61 and your NIC is em0 (INTEL NIC) but what is your NAS IP, and your NAS NIC?.


Open a shell in your NAS and type "ifconfig" this print your NAS IP config, and do the same inside your jail ( to log inside your jail you need to know your jail ID) and type "jexec ID csh" or "jexec Apache csh" if you configure properly option to use name of jail.

Thebrig clone your actual NAS config so if you have internet outside the jail, you have Internet inside, but revise that your NIC (em0) is real your NIC (LAN in Nas4Free WebGUI)
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

chrisf4lc0n
Advanced User
Advanced User
Posts: 262
Joined: 07 May 2013 13:15
Location: West Drayton (London)
Status: Offline

Re: No connectivity within Jail

Post by chrisf4lc0n »

My NAS IP is 192.168.0.16/24
I also tried the IPs within the DHCP range like 192.168.0.61 and still did not work...
As you can see tried it a for a long time and ended up JID 15 ;)

And yes it is em0...

Within Jail with the IP 192.168.0.61:

Code: Select all

em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=4219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC,VLAN_HWTSO>
        ether 68:05:ca:12:b1:1c
        inet 192.168.0.61 netmask 0xffffff00 broadcast 192.168.0.255
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
Within Jail with the IP 192.168.1.1:

Code: Select all

em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=4219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC,VLAN_HWTSO>
        ether 68:05:ca:12:b1:1c
        inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
Outside the Jail with Jail's IP 192.168.0.61:

Code: Select all

em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=4219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC,VLAN_HWTSO>
        ether 68:05:ca:12:b1:1c
        inet 192.168.0.16 netmask 0xffffff00 broadcast 192.168.0.255
        inet 192.168.1.61 netmask 0xffffff00 broadcast 192.168.1.255
        inet 192.168.0.61 netmask 0xffffff00 broadcast 192.168.0.255
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active 
Watercooling is just the beginning ;)

chrisf4lc0n
Advanced User
Advanced User
Posts: 262
Joined: 07 May 2013 13:15
Location: West Drayton (London)
Status: Offline

Re: No connectivity within Jail

Post by chrisf4lc0n »

Found the reason why it was not working...
Trivial... Cannot be connected to VPN network...
Now I need to work out how to get the jail to get connected to tap0 instead of em0...

EDIT: Or just get the openVPN to work in the jail... I do however have a problem with that. If I run VPN within the jail, only that jail will be behind VPN network, right? It means that the Transmission running outside the jail will still have my home IP, correct me if I am wrong.
Watercooling is just the beginning ;)

mekonghigh
Starter
Starter
Posts: 39
Joined: 13 Oct 2013 18:03
Status: Offline

Re: No connectivity within Jail

Post by mekonghigh »

chrisf4lc0n wrote:If I run VPN within the jail, only that jail will be behind VPN network, right? It means that the Transmission running outside the jail will still have my home IP, correct me if I am wrong.
I think you are right but if you only want to run torrents over VPN, maybe you can try;

http://www.forums.nas4free.org/viewtopi ... =79&t=5418
and
http://torguard.net/blog/how-to-setup-t ... on-deluge/

User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: No connectivity within Jail

Post by alexey123 »

For create tun device you can use preinit script

Code: Select all

ifconfig tun create
I think, may be need add to TheBrig Jail prestart command :?: Need for openvpn server
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

chrisf4lc0n
Advanced User
Advanced User
Posts: 262
Joined: 07 May 2013 13:15
Location: West Drayton (London)
Status: Offline

Re: No connectivity within Jail

Post by chrisf4lc0n »

I could run Deluge instead, I actually did for a while. Did not like it tho, to heavy, did not offer nice Windows/Linux GUI, was rather slow... May have to reconsider that however ;)

There were 2 main reasons I wanted to run jails:
1. Apache server to configure reverse proxy for btsync.
2. Print Server.

Now I will have to reconsider everything.

@alexey123
Should I just add:
/bin/sh ifconfig tap create
into the Jail Start Command?
Watercooling is just the beginning ;)

User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: No connectivity within Jail

Post by alexey123 »

chrisf4lc0n wrote: @alexey123
Should I just add:
/bin/sh ifconfig tap create
into the Jail Start Command?
Not, this way not work.
Jail Start command execute script under jail, not under NAS4Free main. Full path for /etc/rc in this case is

Code: Select all

/mnt/<mount>/<path>/<to>/thebrig/<jailname>/etc/rc
1. Apache server to configure reverse proxy for btsync.
Lighttpd must work! I'll check issue today
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

Post Reply

Return to “Jails”