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!

TheBrig/Alcatraz jail default route OpenVPN

Jails with XigmaNAS
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
jonezy
NewUser
NewUser
Posts: 3
Joined: 01 Jan 2015 12:41
Status: Offline

TheBrig/Alcatraz jail default route OpenVPN

Post by jonezy »

Hi,
I'm trying to get OpenVPN work inside jail, but it seems that default route doesn't get passed to jail.
How to fix this?

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

Re: TheBrig/Alcatraz jail default route OpenVPN

Post by alexey123 »

Try use vnet enabled jail
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

jonezy
NewUser
NewUser
Posts: 3
Joined: 01 Jan 2015 12:41
Status: Offline

Re: TheBrig/Alcatraz jail default route OpenVPN

Post by jonezy »

alexey123 wrote:Try use vnet enabled jail
I'll look into this, thank you.

jonezy
NewUser
NewUser
Posts: 3
Joined: 01 Jan 2015 12:41
Status: Offline

Re: TheBrig/Alcatraz jail default route OpenVPN

Post by jonezy »

jonezy wrote:
alexey123 wrote:Try use vnet enabled jail
I'll look into this, thank you.
Enabling vnet made tun0 interface to disappear from jail.

Code: Select all

nas4free: ~# ifconfig
em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=40098<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,VLAN_HWTSO>
        ether 00:1b:21:84:55:1d
        inet 192.168.1.19 netmask 0xffffff00 broadcast 192.168.1.255
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet 1000baseT <full-duplex>
        status: active
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 0x2
        inet 127.0.0.1 netmask 0xff000000
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
tun0: flags=8010<POINTOPOINT,MULTICAST> metric 0 mtu 1500
        options=80000<LINKSTATE>
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
bridge20: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 02:52:2a:19:f5:14
        inet 192.168.1.19 netmask 0xffffff00 broadcast 192.168.1.255
        nd6 options=1<PERFORMNUD>
        id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
        maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
        root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
        member: epair1a flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 4 priority 128 path cost 2000
        member: em0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 1 priority 128 path cost 20000
epair1a: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8<VLAN_MTU>
        ether 02:ff:60:00:04:0a
        inet6 fe80::ff:60ff:fe00:40a%epair1a prefixlen 64 scopeid 0x4
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
        status: active

Code: Select all

[root@jail/]# 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>
epair1b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8<VLAN_MTU>
        ether 02:ff:b0:00:05:0b
        inet6 fe80::ff:b0ff:fe00:50b%epair1b prefixlen 64 scopeid 0x2
        inet 192.168.1.7 netmask 0xffffff00 broadcast 192.168.1.255
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
        status: active

Code: Select all

[root@jail /]# ls /dev
crypto  fd      null    pts     random  stderr  stdin   stdout  tun0    urandom zero

StanEsmith
Starter
Starter
Posts: 26
Joined: 13 Mar 2015 16:13
Status: Offline

Re: TheBrig/Alcatraz jail default route OpenVPN

Post by StanEsmith »

It's something to due with being an embedded install vs the full install. Installing OpenVPN In a jail never worked for me on my embedded installation.

Post Reply

Return to “Jails”