Debian TAP local bridge need help
Posted: Wed Jul 01, 2015 8:27 am
I have a small network behind router.
- Router IP: 192.168.2.1
- VPN Server IP: 192.168.2.30
- VPN Server OS: Debian 8.1 x64
Downloaded and installed the vpncmd, vpnserver, vpnbridge packages from
- https://launchpad.net/~paskal-07/+archi ... ftethervpn
softether-vpn (4.04.9412-0~47~ubuntu14.04.1)
I searched the web for a guide to configuare softether and know that using local bridge prevent access to the server itself and need to use TAP local bridge.
Here the situation
Install vpncmd, vpnserver, vpnbridge packages --- OK
Run vpncmd check, the last item "Network System" --- Connect Failed. (0), Failed
Running local bridge on 1 physical NIC, client able to connect to create L2TP VPN connection.
Client able to ping and access the computers, except the VPN server.
After searching the web, I know that I need to use TAP bridge in order to gaint access to the server.
So I install bridge-utils and follow some guides on the web. But cannot find any guide exactly the same situation as mine, here are what I have done.
- Forwarded 500, 4500 ports to VPN server.
- Remove physical NIC bridge
- Disable SecureNAT (It was disabled anyway)
- Create a TAP bridge tap_softether
- Start vpnserver
- run a script after the vpnserver is up
==================================
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 tap_softether
ifconfig tap_softether 0.0.0.0 promisc up
ifconfig eth0 0.0.0.0 promisc up
ifconfig br0 192.168.2.30 netmask 255.255.255.0 broadcast 192.168.2.255
route add default gw 192.168.2.1
==================================
After running the script
- VPN server
. Cannot ping the router, but able to ping other computer
. Cannot ping the VPN client computer.
. No access to the Internet.
- Client
. Able to create L2TP connection
. Able to ping any comupter, including the VPN server and router
So here the main problems:
1. VPN server cannot access Internet.
2. VPN server cannot access the router.
3. VPN server cannot access VPN client.
Any help is appreciate.
Thanks in advance.
- Router IP: 192.168.2.1
- VPN Server IP: 192.168.2.30
- VPN Server OS: Debian 8.1 x64
Downloaded and installed the vpncmd, vpnserver, vpnbridge packages from
- https://launchpad.net/~paskal-07/+archi ... ftethervpn
softether-vpn (4.04.9412-0~47~ubuntu14.04.1)
I searched the web for a guide to configuare softether and know that using local bridge prevent access to the server itself and need to use TAP local bridge.
Here the situation
Install vpncmd, vpnserver, vpnbridge packages --- OK
Run vpncmd check, the last item "Network System" --- Connect Failed. (0), Failed
Running local bridge on 1 physical NIC, client able to connect to create L2TP VPN connection.
Client able to ping and access the computers, except the VPN server.
After searching the web, I know that I need to use TAP bridge in order to gaint access to the server.
So I install bridge-utils and follow some guides on the web. But cannot find any guide exactly the same situation as mine, here are what I have done.
- Forwarded 500, 4500 ports to VPN server.
- Remove physical NIC bridge
- Disable SecureNAT (It was disabled anyway)
- Create a TAP bridge tap_softether
- Start vpnserver
- run a script after the vpnserver is up
==================================
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 tap_softether
ifconfig tap_softether 0.0.0.0 promisc up
ifconfig eth0 0.0.0.0 promisc up
ifconfig br0 192.168.2.30 netmask 255.255.255.0 broadcast 192.168.2.255
route add default gw 192.168.2.1
==================================
After running the script
- VPN server
. Cannot ping the router, but able to ping other computer
. Cannot ping the VPN client computer.
. No access to the Internet.
- Client
. Able to create L2TP connection
. Able to ping any comupter, including the VPN server and router
So here the main problems:
1. VPN server cannot access Internet.
2. VPN server cannot access the router.
3. VPN server cannot access VPN client.
Any help is appreciate.
Thanks in advance.