Page 1 of 1

SoftEther connection problems through proxy in Linux

Posted: Mon Sep 12, 2016 6:26 am
by s-zoli
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. :)

Re: SoftEther connection problems through proxy in Linux

Posted: Wed Sep 21, 2016 1:19 am
by raafat
Are you still playing with this ?

Re: SoftEther connection problems through proxy in Linux

Posted: Wed Sep 21, 2016 7:34 am
by s-zoli
Yes, I'll until I find any solution and make it work.

Re: SoftEther connection problems through proxy in Linux

Posted: Wed Sep 21, 2016 8:13 am
by raafat
May you post here the result of the "Routing Table" after the seventh step takes effect ?. You said after the seventh step takes effect you loose your connection, right ?

Re: SoftEther connection problems through proxy in Linux

Posted: Fri Sep 23, 2016 9:40 am
by s-zoli
I'll make a detailed post about routing tables, issues, as soon as I can. (I'm not there, where the problem occures)

Re: SoftEther connection problems through proxy in Linux

Posted: Fri Sep 23, 2016 12:39 pm
by raafat
Looking forward to your detailed post.


Good luck (:

Re: SoftEther connection problems through proxy in Linux

Posted: Mon Sep 26, 2016 2:34 pm
by s-zoli
I am happy to see, that you are willing to help.
I had time to think over, what is happening, and got the problem.
Routing was fine, SoftEther was working fine.
The problem was, that I used the full domain name of the proxy.
Changing it to it's local ip, now everything is working fine.

Re: SoftEther connection problems through proxy in Linux

Posted: Fri Sep 30, 2016 10:46 am
by raafat
Good news (: