Hi, I'm running Lion Server 10.7.5 - *trying* to use openvpn - I can configure it to create a vpn that allows clients to mount the servers file system and webservers without issue. But I can't encrypt (tunnel) the whole connection. Whenever I do, the clients no longer have internet (push "redirect-gateway def1")- they can continue to access the server's shares and webservers, but any internet website or service is inaccessible.
I saw the post to fix this:
https://forums.openvpn.net/topic11401.html
The strange thing is whenever I do the suggested commands it kills the internet entirely on the server - vpn clients cannot connect to it, the server likewise cannot access anything from the internet (open a remote connection, tried web browser on server or ping a website, nothing works)
The "suggested" commands are:
sysctl -w net.inet.ip.fw.enable=1
sysctl -w net.inet.ip.forwarding=1
natd -interface en0
ipfw add divert natd ip from any to any via en0
Clearly I'm missing something here. en0 is the interface that openvpn is on. Is it a DNS issue? Am I typing this command too literally - using "ip" in argument?