solved: vpnclient not working under Linux
Posted: Wed May 22, 2019 7:56 am
I have problem with vpnclient. Here is the description:
SERVER:
--------------------------------------------------------------------------
Ubuntu computer running SoftEther server
eth0 - connection to internet with port forwarding
gets IP automatically from ISP router
eth1 - connection to company network router with DHCP server
there is also access to internet
this is SE local bridge with static ip adress
company router has GW 10.81.100.1 and gives clients IP= 10.81.100.xx
as there are two accesses to internet I delete all routes for
eth1 from routing table "ip route show" to avoid confusion
only eth0 is active connection to internet
CLIENT Windows: (OK)
-------------------------------------------------------------------------------
works perfect, when connected to server above I can use internet
connection over SE VPN (avoiding geopolitical restrictions)
new PC IP address from company router DHCP is 10.81.100.143
this is routing table in windows computer:
this is test from whatismyip.com
CLIENT linux: (not OK)
-------------------------------------------------------------------------------
this client is running on another Ubuntu computer, wlan0 is internet connection
I start it manually "sudo vpnclient start"
then using vpncmd I start "accountconnect banovce" (vpn name)
then "dhclient vpn_banovce" (this is virtual interface)
so now vpn_banovce has got IP 10.81.100.105 (from DHCP company router)
then I manually add lines 1 and 6 into routing table, see below
(all traffic forced to vpn_banovce - copied from OpenVPN, reverse engineering :-)
the lines 2 and 5 are created automatically by SE client
the rest of lines (3,4,7,8) are naturally there from Ubuntu
***** ip route *****
1- 0.0.0.0/1 dev vpn_banovce scope link
2- default via 10.81.100.1 dev vpn_banovce
3- default via 192.168.92.1 dev wlan0
4- default via 192.168.92.1 dev wlan0 metric 310
5- 10.81.0.0/16 dev vpn_banovce proto kernel scope link src 10.81.100.105
6- 128.0.0.0/1 dev vpn_banovce scope link
7- 192.168.92.0/24 dev wlan0 proto kernel scope link src 192.168.92.131 metric 310
8- 192.168.92.1 dev wlan0 scope link
Now I can ping GW 10.81.100.1 and also computers like 10.81.100.142, 10.81.10.2 (ten,two), 10.81.220.3 ...
all of them on company's network
but I can not ping 8.8.8.8 , also internet is not working like for CLIENT Windows
What else do I have to set up in linux client? I believe server is OK as windows client works perfect.
SERVER:
--------------------------------------------------------------------------
Ubuntu computer running SoftEther server
eth0 - connection to internet with port forwarding
gets IP automatically from ISP router
eth1 - connection to company network router with DHCP server
there is also access to internet
this is SE local bridge with static ip adress
company router has GW 10.81.100.1 and gives clients IP= 10.81.100.xx
as there are two accesses to internet I delete all routes for
eth1 from routing table "ip route show" to avoid confusion
only eth0 is active connection to internet
CLIENT Windows: (OK)
-------------------------------------------------------------------------------
works perfect, when connected to server above I can use internet
connection over SE VPN (avoiding geopolitical restrictions)
new PC IP address from company router DHCP is 10.81.100.143
this is routing table in windows computer:
this is test from whatismyip.com
CLIENT linux: (not OK)
-------------------------------------------------------------------------------
this client is running on another Ubuntu computer, wlan0 is internet connection
I start it manually "sudo vpnclient start"
then using vpncmd I start "accountconnect banovce" (vpn name)
then "dhclient vpn_banovce" (this is virtual interface)
so now vpn_banovce has got IP 10.81.100.105 (from DHCP company router)
then I manually add lines 1 and 6 into routing table, see below
(all traffic forced to vpn_banovce - copied from OpenVPN, reverse engineering :-)
the lines 2 and 5 are created automatically by SE client
the rest of lines (3,4,7,8) are naturally there from Ubuntu
***** ip route *****
1- 0.0.0.0/1 dev vpn_banovce scope link
2- default via 10.81.100.1 dev vpn_banovce
3- default via 192.168.92.1 dev wlan0
4- default via 192.168.92.1 dev wlan0 metric 310
5- 10.81.0.0/16 dev vpn_banovce proto kernel scope link src 10.81.100.105
6- 128.0.0.0/1 dev vpn_banovce scope link
7- 192.168.92.0/24 dev wlan0 proto kernel scope link src 192.168.92.131 metric 310
8- 192.168.92.1 dev wlan0 scope link
Now I can ping GW 10.81.100.1 and also computers like 10.81.100.142, 10.81.10.2 (ten,two), 10.81.220.3 ...
all of them on company's network
but I can not ping 8.8.8.8 , also internet is not working like for CLIENT Windows
What else do I have to set up in linux client? I believe server is OK as windows client works perfect.