Fix push "route [...]" command

Orazio 2020-02-08 12:31:35 +01:00
parent bd4ae3d026
commit 7dab818919

@ -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?