How to restrict macOS internet to only allow internet over OpenVPN?

I have a problem where i want to allow macOS internet only if its connected via OpenVPN.

I have the IP address of the VPN i have achieved the same on Windows using firewall but i can't seem to find anything in macOS

I want some one to guide me how to setup outbound rules and only allow internet access to just traverse through openVPN.

1 answer

  • answered 2019-05-24 21:24 Saif Ali

    I have achieved this by using the IP address of the VPN server and then adding that to my mac's dns settings and simply did the trick.