Page 1 of 1

VPN client as a proxy.

Posted: Tue Mar 10, 2020 8:25 am
by przemo-c
Is there a way of using vpn client as a proxy?

I want only apps configured for that proxy to use VPN and the rest of the system thru regular internet connection.

There are IP conflicts and there are multiple machines to be accessed but only by two apps. Rest of the system should work as it.

Is there any way to accomplish that?

Be it creating a proxy and only configuring those 2 apps to use it. Or virtualizing those two apps and softether client. But that would have a performance penalty. Not to mention it's not a lightweight solution.

Re: VPN client as a proxy.

Posted: Sat Mar 14, 2020 12:38 am
by ddunston
I don't believe this is going to be a function of the Softether VPN client.

If the applications support binding to a specific IP address, you could create a virtual network adapter with an IP, and the VPN gateway IP as its default gateway, and use the route command for your OS to force traffic destined for the remote network or hosts to the virtual nic which will use the VPN's default gateway as its next hop.

It may require a third-party tool like forceip. https://r1ch.net/projects/forcebindip if your app can't be forced to an IP.

Re: VPN client as a proxy.

Posted: Sun Mar 15, 2020 12:51 pm
by artioni81
przemo-c wrote:
Tue Mar 10, 2020 8:25 am
Is there a way of using vpn client as a proxy?

I want only apps configured for that proxy to use VPN and the rest of the system thru regular internet connection.

There are IP conflicts and there are multiple machines to be accessed but only by two apps. Rest of the system should work as it.

Is there any way to accomplish that?

Be it creating a proxy and only configuring those 2 apps to use it. Or virtualizing those two apps and softether client. But that would have a performance penalty. Not to mention it's not a lightweight solution.
What proxy software you'll be using? On what OS? Are all the apps on the same machine? Do you want two different gateways, one as default and the other as secondary (that uses the VPN) so that the two apps are instructed to use it as their gateway?