My setup is as follows:
- Windows 10, Corona forced home office, I'm an external contractor at a huge company
- I'm connecting to the VPN of my company, called
MyVPN, some internal IPs of our client are accessible for us via this VPN
- I set up split tunneling with
Set-VpnConnection "MyVPN" -SplitTunneling 1
- All the internal IPs I need to call with the VPN start are in the same IP range
922.214.171.124/8(example IP range, thousands of different IPs beong to this company)
- So I added all these IPs via
netsh interface ipv4 add route 9126.96.36.199/8 "MyVPN"
- This works, I can call internal IPs via the VPN while all other calls don't go through my VPN
- My issue is now:
- I can't access all internal IPs via VPN, because of missing Firewall routes (I have to request them which takes some time and a lot of discussions... So I want to avoid this)
- But some of these internal IPs can be accessed globally without the VPN
- So I now have the issue, that I can't access these IPs through my VPN, but I could access them if I turn my VPN off. But my netsh route routes them all to the VPN, which leads to a timeout
- I was thinking to somehow exclude these IPs from the netsh route, but I don't know how. Is there a way?
netsh interface ipv4 exclude route 9188.8.131.52 "MyVPN"
- The IPs I have an issue with are scattered throughout their whole range, no pattern or similarities
I found it! Based on user1686's answer I tried some stuff and that's the solution
netsh interface ipv4 add route 9184.108.40.206/32 "WLAN" 192.168.178.1
WLAN beeing the name of my WiFi interface and
192.168.178.1 beeing my default gateway.