How to configure split tunneling on Windows 10?

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
PeterWatz
Posts: 5
Joined: Mon Jun 14, 2021 2:28 pm

How to configure split tunneling on Windows 10?

Post by PeterWatz » Mon Jun 14, 2021 2:35 pm

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

PeterWatz
Posts: 5
Joined: Mon Jun 14, 2021 2:28 pm

Re: How to configure split tunneling on Windows 10?

Post by PeterWatz » Mon Jun 14, 2021 10:16 pm

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

eddiewu
Posts: 81
Joined: Wed Nov 25, 2020 9:10 am

Re: How to configure split tunneling on Windows 10?

Post by eddiewu » Tue Jun 15, 2021 1:11 am

Double check your routes. They should cover every destination the app connects to.

PeterWatz
Posts: 5
Joined: Mon Jun 14, 2021 2:28 pm

Re: How to configure split tunneling on Windows 10?

Post by PeterWatz » Tue Jun 15, 2021 4:53 pm

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

eddiewu
Posts: 81
Joined: Wed Nov 25, 2020 9:10 am

Re: How to configure split tunneling on Windows 10?

Post by eddiewu » 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.

PeterWatz
Posts: 5
Joined: Mon Jun 14, 2021 2:28 pm

Re: How to configure split tunneling on Windows 10?

Post by PeterWatz » Wed Jun 16, 2021 4:09 pm

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)

Post Reply