SoftEther connection problems through proxy in Linux
Posted: Mon Sep 12, 2016 6:26 am
I have a self hosted SoftEther server. I can conenct to it, from linux without proxy and from Windows (direct / through proxy) without problem.
The script I'm using is from a tutorial page.
1.: ./vpnclient start
2.: ./vpncmd localhost /CLIENT /CMD accountconnect vpn
3.: wait for successful connection
4.: dhclient vpn_vpn (vpn interface name)
5.: ip route add <vpn_external_ip> via <local gateway> dev eth0 proto static
6.: ip route del default
7.: ip route add default via <vpn_local_gateway> dev vpn_vpn
Without (http) proxy, this script is working well.
The vpn external ip, and the vpn gateway is the same at every setting (with or without proxy).
I only changed the local gateway to 10.0.0.1 (On Windows, I'm using this IP as proxy server successfully).
Until step 6, everything is seems working, vpn reporting it's connected, can ping the <vpn_local_gateway>, even when it's not listed on "ip neigh"
When I change the default gateway, the vpn conenction is lost, stuck in "Retrying" state.
As you can assume, I'm not pro in networking, I appreciate any tips, what should I do. :)
The script I'm using is from a tutorial page.
1.: ./vpnclient start
2.: ./vpncmd localhost /CLIENT /CMD accountconnect vpn
3.: wait for successful connection
4.: dhclient vpn_vpn (vpn interface name)
5.: ip route add <vpn_external_ip> via <local gateway> dev eth0 proto static
6.: ip route del default
7.: ip route add default via <vpn_local_gateway> dev vpn_vpn
Without (http) proxy, this script is working well.
The vpn external ip, and the vpn gateway is the same at every setting (with or without proxy).
I only changed the local gateway to 10.0.0.1 (On Windows, I'm using this IP as proxy server successfully).
Until step 6, everything is seems working, vpn reporting it's connected, can ping the <vpn_local_gateway>, even when it's not listed on "ip neigh"
When I change the default gateway, the vpn conenction is lost, stuck in "Retrying" state.
As you can assume, I'm not pro in networking, I appreciate any tips, what should I do. :)