diff --git a/OpenVPN.md b/OpenVPN.md index c8ace08..fb62530 100644 --- a/OpenVPN.md +++ b/OpenVPN.md @@ -19,7 +19,7 @@ You will need to change `/etc/openvpn/easy-rsa/pki/Default.txt` and your `.ovpn` ## How do I allow clients access to my home network but not the internet through my PiVPN? -Replace the following line in `/etc/openvpn/server.conf`: `push "redirect-gateway def1"` with `push "192.168.23.0 255.255.255.0"` (assuming that 192.168.23.0 and 255.255.255.0 are respectively the network IP and netmask of your LAN). Then restart the openvpn service: `sudo systemctl restart openvpn`. +Replace the following line in `/etc/openvpn/server.conf`: `push "redirect-gateway def1"` with `push "route 192.168.23.0 255.255.255.0"` (assuming that 192.168.23.0 and 255.255.255.0 are respectively the network IP and netmask of your LAN). Then restart the openvpn service: `sudo systemctl restart openvpn`. ## How Can I Migrate my configs to another PiVPN Instance?