MacOS – Prevent any direct internet traffic when OpenVPN is down

macosNetworkvpn

If OpenVPN down how to prevent any direct internet traffic (http or whole tcp) on MacOS except local network?

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.