If OpenVPN down how to prevent any direct internet traffic (http or whole tcp) on MacOS except local network?
MacOS – Prevent any direct internet traffic when OpenVPN is down
macosNetworkvpn
Related Question
- When connected to VPN using the built-in VPN service, is all the internet traffic routed through the VPN connection
- MacOS – Prevent Network Settings From Changing Automatically
- MacOS – How to see public IP address of outgoing internet traffic when connected via router
- MacOS – Can’t route specified site traffic to direct WiFi connection, to avoid VPN
- Only Transmission traffic through VPN
Best Answer
Just manually configure your IP address settings and remove the default gateway. When OpenVPN is up, you’ll be assigned that tunnel as the default gateway and when it’s down, it will fall back to the original settings where there isn’t one.