Updated FAQ (markdown)

Orazio 2019-12-18 20:49:45 +01:00
parent 3fec544b0e
commit 8d9cb51b31

19
FAQ.md

@ -20,15 +20,16 @@ You will need a dynamic DNS service and a hostname. If your IP address changes,
## Installing with Pi-hole
You can safely install PiVPN on the same Raspberry Pi as your Pi-hole install, and point your VPN clients to the IP of your Pi-hole so they get ad blocking, etc. Here's how:
1. Edit the server config with `sudo nano /etc/openvpn/server.conf`
2. Remove every `push "dhcp-option DNS [...]"` line
3. Add this line `push "dhcp-option DNS 10.8.0.1"` to point clients to the PiVPN IP
4. Save the file and exit
5. Restart openvpn with `sudo systemctl restart openvpn`
6. Create a new file `sudo nano /etc/dnsmasq.d/02-pivpn.conf`
7. Add `interface=tun0` inside to tell Pi-hole to listen on the VPN interface as well
8. Save the file end exit
9. Restart Pi-hole with `pihole restartdns`
1. Create a new file `sudo nano /etc/dnsmasq.d/02-pivpn.conf`
2. Add `interface=tun0` inside to tell Pi-hole to listen on the VPN interface as well
3. Save the file end exit
4. Restart Pi-hole with `pihole restartdns`
5. Edit the server config with `sudo nano /etc/openvpn/server.conf`
6. Remove every `push "dhcp-option DNS [...]"` line
7. Add this line `push "dhcp-option DNS 10.8.0.1"` to point clients to the PiVPN IP
8. Save the file and exit
9. Restart openvpn with `sudo systemctl restart openvpn`
## Allow Clients to connect but block their access to the internet