Page 1 of 1

How to configure split tunneling on Windows 10?

Posted: Mon Jun 14, 2021 2:35 pm
by PeterWatz
Hello

I've installed SoftEther VPN client and everything works great, however I need to use VPN only for a specific app.
Can you please tell me, what should I do to make that possible?

I've read that split tunneling can be configured by disabling (no idea how it would help though) the "Use default gateway on remote network” option in adapter settings, however on Windows 10 none of the adapters have this setting. They have the "Interface metric" setting, however all my attempts to use it were futile. Please help!

Also calling Get-VPNConnection -AllUserConnection in powershell doesn't show any VPN connections

Re: How to configure split tunneling on Windows 10?

Posted: Mon Jun 14, 2021 10:16 pm
by PeterWatz
I tried setting VPN adapter interface metric to 200 and launching an app with ForceBindIp, even tried to add route for the used ips range, however nothing works - it's either VPN only, or VPN is not being used, no matter what routes exist

Re: How to configure split tunneling on Windows 10?

Posted: Tue Jun 15, 2021 1:11 am
by eddiewu
Double check your routes. They should cover every destination the app connects to.

Re: How to configure split tunneling on Windows 10?

Posted: Tue Jun 15, 2021 4:53 pm
by PeterWatz
I've added routes for whole subnets:
route add 15.165.0.0 MASK 255.255.0.0 10.241.79.112 metric 1
route add 16.165.0.0 MASK 255.255.0.0 10.241.79.112 metric 1
route add 202.234.0.0 MASK 255.255.0.0 10.241.79.112 metric 1
route add 74.201.0.0 MASK 255.255.0.0 10.241.79.112 metric 1

but it just won't wok :( Some connections to theses hosts use VPN local address, some don't

Re: How to configure split tunneling on Windows 10?

Posted: Wed Jun 16, 2021 1:30 am
by eddiewu
I haven’t used ForceBindIp. But I think it might conflict with static routes. Did you use them at same time? If so please try only using routes.
And what is the IP 10.241.79.112? You need to put vpn gateway here. This doesn’t look like a gateway address.

Re: How to configure split tunneling on Windows 10?

Posted: Wed Jun 16, 2021 4:09 pm
by PeterWatz
eddiewu wrote:
Wed Jun 16, 2021 1:30 am
I haven’t used ForceBindIp. But I think it might conflict with static routes. Did you use them at same time? If so please try only using routes.
And what is the IP 10.241.79.112? You need to put vpn gateway here. This doesn’t look like a gateway address.
Eddie, thank you so much! You're absolutely right - there's no need to use ForceBindIp and the problem was indeed related to gateway address - I used local ip address instead (because I'm stupid)