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!

Softether in jail

Jails with XigmaNAS
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
captainkent
NewUser
NewUser
Posts: 8
Joined: 04 Nov 2016 19:44
Status: Offline

Softether in jail

Post by captainkent »

I installed Softether in a jail using the following guide (https://forums.freenas.org/index.php?th ... vpn.47395/).

I get it installed perfectly fine, but I have an issue creating a "local bridge". This local bridge connects my VPN Hub to my physical network interface.

After doing some research, I discovered that Softether has some problems with FreeBSD and it's physical network interface (see https://www.softether.org/4-docs/1-manu ... al_Bridges point 3.6.9 and 3.6.11).

Therefore, I decided to create a tap interface, which will connect to my VPN Hub. I also created a bridge interface, to connect the tap interface to my physical network adapter.

My network looks like this.

Code: Select all

em0 (Physical Network) <-> bridge0 <-> tap0 <-> Softether Hub
The output of ifconfig is.

Code: Select all

em0: flags=28943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,PPROMISC> metric 0 mtu 1500
        options=40098<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,VLAN_HWTSO>
        ether 68:05:ca:46:76:c0
        inet 10.1.1.51 netmask 0xffffff00 broadcast 10.1.1.255
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
re0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
        ether 70:85:c2:09:d7:e6
        media: Ethernet autoselect (none)
        status: no carrier
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
tap0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=80000<LINKSTATE>
        ether 00:bd:ed:f4:1f:00
        media: Ethernet autoselect
        status: no carrier
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 02:fe:4a:c8:9c:00
        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: tap0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 4 priority 128 path cost 2000000
        member: em0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 1 priority 128 path cost 20000
When looking at my local bridge in the Softether commandline utility, it is either offline or gives me an error status.
Image

From the ifconfig output, I notice that my tap0 interface has no carrier, which I assume is the problem. After doing some more research, apparently it becomes active when an application is tied to the tap0 interface. I can't figure out how to do this though.

Does anybody have any suggestions?

Post Reply

Return to “Jails”