Hacker News new | ask | show | jobs
by dec0dedab0de 3597 days ago
Have the default route point to your VPN client, and a static route for the VPN server pointing to the internet. Most VPN clients do this already.
1 comments

I think OP means prior to connecting to VPN so you are minimally exposed during the interim VPN setup.

Same technique could work, just more annoying (static route for VPN provider IP to your LAN gateway, and static routes for your trusted DNS provider, then only allow a default route to be established once VPN is connected).