Page 1 of 1

TAP Interface Ubuntu 20.04

Posted: Wed Apr 28, 2021 11:04 am
by BarbaxX
Hello,

I want to be able to access my server that has a local bridge to en0 set up.
I followed various tutorials for setting up a bridge and connecting en0 with tap0 (created by Softether) but when created I cannot reach the server anymore. The tutorials don't seem to be up-to-date as they sometimes reference network manager, sometimes another linux network service.

Has anyone got experience setting up this linux bridge in 20.04?

Also I cannot access my main routers web interface. I can ping it though.

My network is 192.168.100.0/24.
Connection is L2TP/IPSec.

Any help would be appreciated.

Re: TAP Interface Ubuntu 20.04

Posted: Sat May 01, 2021 1:34 pm
by r0otkit
hello sry dude i don't have exp with Linux setup but did you see this one it's on centos
https://tweenpath.net/softether-vps-local-bridge/

Re: TAP Interface Ubuntu 20.04

Posted: Sun May 02, 2021 8:24 pm
by BarbaxX
In that guide a DHCP server and routing tables are being defined. I don't need that, since the bridge interface should still be passing the DHCP requests to my router. I'm not sure why dnsmasq is being used in the example...

Re: TAP Interface Ubuntu 20.04

Posted: Mon May 03, 2021 6:05 am
by flimbar
Have you tried "dhclient br0" once the bridge is up?

Re: TAP Interface Ubuntu 20.04

Posted: Thu May 20, 2021 2:00 am
by flygun
I had done this on Ubuntu 18.04.

did your create multi virtual hub on server? and did you make one of your virtual hub bridge to a TAP? if so, you can try virtual L3 switch on the SE server.

or
would you please describe your needs and your steps and ENVs?

Re: TAP Interface Ubuntu 20.04

Posted: Sat May 22, 2021 11:26 am
by BarbaxX
The issue is solved!

I reinstalled ubuntu 20.04 and installed bridge-utils and net-tools packages alongside Softether.

Then set up Softether with the Tap interface (called it "0" so it creates "tap_0").

Then made a bash script with the following commands:

while [ -z "`ifconfig | grep tap_0`" ]
do
sleep 5
done

sleep 2

brctl addbr br0
brctl addif br0 eno1
brctl addif br0 tap_0
ip link set dev br0 up
sleep 2
dhclient -v br0

Then I added that script to be run in rc.local upon startup

No manual IP setting needed. The router has a DHCP reservation for eno1's MAC address which the bridge clones.


The local bridge with TAP should be emphasized in the setup guide on Linux, because of said limitations and much better performance.
I can now access my router again via vpn (which I could only ping before) and my download speed via VPN is now as fast as it is supposed to be (was 3 Mbits before, is 40 Mbits now. Also protocols like Nvidia Gamestream work properly and don't take ages to connect anymore. I guess this was all related to the interface being in promiscuous mode before.

Perhaps this should be added as information to the manual, since forum entries on this topic are mostly inaccurate or outdated.


Thank you