How to connect to OpenVPN, but disable internet access going to there?



  • I have connected my pfSesne box to my brother's LAN via OpenVPN.

    In order machines from his LAN respond to my pings, I was to configure NAT. By default, Windows machines do not respond for packets, came from networks, other than LAN.

    After that I found, that my internet traffig goes through VPN and through my brother's ISP.

    We both has ISP connections and I want my internet traffic go through my ISP, not his.

    How to do this?



  • @dims:

    In order machines from his LAN respond to my pings, I was to configure NAT. By default, Windows machines do not respond for packets, came from networks, other than LAN.

    Allowing such access can be set in the Windows firewall.

    If all your traffic goes through the vpn there will be set the "Redirect gateway" option in the server settings. If your brother doesn't need this for other purposes, he should remove the check and enter his LAN network in the "Local Network/s" box.

    If he need that option, you can prevent that by adding the no-pull option and a route to the remote LAN to your client config.


Log in to reply