SoftEther connection problems through proxy in Linux

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
s-zoli
Posts: 15
Joined: Mon Aug 08, 2016 10:13 am

SoftEther connection problems through proxy in Linux

Post by s-zoli » 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. :)

raafat
Posts: 223
Joined: Fri Jul 03, 2015 2:21 pm

Re: SoftEther connection problems through proxy in Linux

Post by raafat » Wed Sep 21, 2016 1:19 am

Are you still playing with this ?

s-zoli
Posts: 15
Joined: Mon Aug 08, 2016 10:13 am

Re: SoftEther connection problems through proxy in Linux

Post by s-zoli » Wed Sep 21, 2016 7:34 am

Yes, I'll until I find any solution and make it work.

raafat
Posts: 223
Joined: Fri Jul 03, 2015 2:21 pm

Re: SoftEther connection problems through proxy in Linux

Post by raafat » Wed Sep 21, 2016 8:13 am

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 ?
Last edited by raafat on Fri Sep 23, 2016 11:27 am, edited 1 time in total.

s-zoli
Posts: 15
Joined: Mon Aug 08, 2016 10:13 am

Re: SoftEther connection problems through proxy in Linux

Post by s-zoli » Fri Sep 23, 2016 9:40 am

I'll make a detailed post about routing tables, issues, as soon as I can. (I'm not there, where the problem occures)

raafat
Posts: 223
Joined: Fri Jul 03, 2015 2:21 pm

Re: SoftEther connection problems through proxy in Linux

Post by raafat » Fri Sep 23, 2016 12:39 pm

Looking forward to your detailed post.


Good luck (:

s-zoli
Posts: 15
Joined: Mon Aug 08, 2016 10:13 am

Re: SoftEther connection problems through proxy in Linux

Post by s-zoli » Mon Sep 26, 2016 2:34 pm

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.

raafat
Posts: 223
Joined: Fri Jul 03, 2015 2:21 pm

Re: SoftEther connection problems through proxy in Linux

Post by raafat » Fri Sep 30, 2016 10:46 am

Good news (:

Post Reply