Force Softether to run only on localhost / listen on 1 IP

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
smalldragoon
Posts: 2
Joined: Thu May 21, 2020 7:01 am

Force Softether to run only on localhost / listen on 1 IP

Post by smalldragoon » Thu May 21, 2020 7:17 am

Hi,
I have only port 443 available for vpn connection.
I found the following which allow me to use it with HAProxy but it requires to have Softether only run on localhost ( and not start listening on all interfaces & IP's )

https://314es.pl/https-openvpn-and-ssh- ... to-haproxy

Now , I found that post which says that we can configure the IP listening address in Softether config file , but I'm not really sure the patch was integrated in the official release ? ( I'm using v4.31-9727-beta )

https://github.com/SoftEtherVPN/SoftEtherVPN/pull/202

Thanks for your insights !

drkrool
Posts: 97
Joined: Mon May 25, 2020 4:38 am
Location: Quebec, Canada

Re: Force Softether to run only on localhost / listen on 1 IP

Post by drkrool » Mon May 25, 2020 4:58 am

I have a similar setup.

Basically I have a HAProxy on a Pfsense box with a frontend (ssl/https) listening on port 443, and a backend listening to my softether's server ip on port 443.

If everything is on the same server, setup the HAProxy frontend to use 443 and make the backend listen to another port (let's say 5555) and make softether listen on 5555.

This way, the client will hit the HAProxy frontend on port 443 but will be forwarded inside your server to softether on port 5555.

smalldragoon
Posts: 2
Joined: Thu May 21, 2020 7:01 am

Re: Force Softether to run only on localhost / listen on 1 IP

Post by smalldragoon » Thu May 28, 2020 9:55 am

Thanks a lot,
the solution is pretty easy .
I did though to siable the port listening on 443...
All set then, Thanks a lot !

drkrool
Posts: 97
Joined: Mon May 25, 2020 4:38 am
Location: Quebec, Canada

Re: Force Softether to run only on localhost / listen on 1 IP

Post by drkrool » Thu May 28, 2020 10:20 am

Very glad I could help!

Post Reply