C
C
ClaraOswald2017-06-26 00:42:18
openvpn
ClaraOswald, 2017-06-26 00:42:18

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

but this is in any case under normal Linux, but what to do with a poppy?
I’ll say right away that I’m not a system administrator, everything I know, I know from personal experience, I haven’t taken any theory courses all the more profound, so I can’t quite understand what exactly the problem is.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Tallmange, 2017-06-26
@p00h

Try adding to the client config:

push "redirect-gateway def1"
push "remote-gateway vpn_server_ip"

where vpn_server_ip is the address of the server on the 10.8.0.0/24 subnet, probably 10.8.0.1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question