Answer the question
In order to leave comments, you need to log in
How to set up Internet access through OpenVPN on macOS?
In general, I needed an openVPN server on macOS. It seems that everything is installed, even configured. that's not a big problem. If I connect via VPN, there is no access to the external network through this VPN, and this is one of the most important points in this matter.
server
config client config
As far as I understand, in order to solve this problem, you need to write something like:
iptables -A FORWARD -i tun0 -s 10.8.0.0/24 -d 192.168.1.0/24 -j ACCEPT
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -j MASQUERADE
Answer the question
In order to leave comments, you need to log in
Try adding to the client config:
push "redirect-gateway def1"
push "remote-gateway vpn_server_ip"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question