I'm confused with configuring that the local network traffic is not routed via VPN. I want to use the VPN (connecting via Windows SSTP client, not using SoftEther client) at home (local ip: 10.0.0.2, gateway: 10.0.0.254, subnet: 255.0.0.0) and in other public networks.
To access my services in my local network at home, the VPN should not route traffic which is going to 10.0.0.0/18 to my VPN server which is hosted on a VPS (let's say my VPN server has following public ip: 165.25.82.1, subnet 255.255.255.0 and gateway 165.25.82.254)
When I am not at home (when at my friend's house or at work), traffic going to local networks with ip 192.168.0.0/18 should generally not be routed to VPN. All other traffic (to external websites/networks) should go via VPN, to browse securely.
Examples, what should happen when ...
- accessing: 10.0.0.3 (webserver at home) -> using local ip 10.0.0.2 (does not go to VPN)
- accessing: 192.168.0.3 (server at work) -> using local ip at work (does not go to VPN)
- accessing: external servers like 8.8.8.8 (google) -> using public ip of my VPS 165.25.82.1 (all traffic does go to VPN)
Currently, all traffic is routed via VPN and I have to disable my VPN if I want to access services in my local network.
How can I establish this without changing routes on my clients (all should be pushed from the server)? I found several other posts, but they all cover cases that at the VPN server side there is a network. Thanks for your help.