So it seems that this configuration (from
http://www.pivpn.io/) defaults to sending everything through the VPN (redirect-gateway def1), which I don't really want.
My goal is to be able to ACCESS the network where my openVPN server is located.
So I commented out redirect-gateway, and push dhcp-option DNS...
Now my client's network works as expected. Yea.
But now I can't directly access my remote network.
ping rrosen@192.168.10.2
ping: cannot resolve rrosen@192.168.10.2: Unknown host
ping 10.8.0.1
PING 10.8.0.1 (10.8.0.1): 56 data bytes
64 bytes from 10.8.0.1: icmp_seq=0 ttl=64 time=168.549 ms
Ugg - I'm getting spun around in circles. I looked through the sample server.conf and all the routing rules spin me around in circles, which is why I turned to PiVPN in the first place.
So to you:
* I think I should NOT route all traffic through the VPN, since that's not my goal. (My goal is access.) Do you agree?
* If you do, any docs that help me set up my config so I can access the remote network? (192.168.10.x)
Thank you!