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 ## 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: 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` 1. Create a new file `sudo nano /etc/dnsmasq.d/02-pivpn.conf`
2. Remove every `push "dhcp-option DNS [...]"` line 2. Add `interface=tun0` inside to tell Pi-hole to listen on the VPN interface as well
3. Add this line `push "dhcp-option DNS 10.8.0.1"` to point clients to the PiVPN IP 3. Save the file end exit
4. Save the file and exit 4. Restart Pi-hole with `pihole restartdns`
5. Restart openvpn with `sudo systemctl restart openvpn` 5. Edit the server config with `sudo nano /etc/openvpn/server.conf`
6. Create a new file `sudo nano /etc/dnsmasq.d/02-pivpn.conf` 6. Remove every `push "dhcp-option DNS [...]"` line
7. Add `interface=tun0` inside to tell Pi-hole to listen on the VPN interface as well 7. Add this line `push "dhcp-option DNS 10.8.0.1"` to point clients to the PiVPN IP
8. Save the file end exit 8. Save the file and exit
9. Restart Pi-hole with `pihole restartdns` 9. Restart openvpn with `sudo systemctl restart openvpn`
## Allow Clients to connect but block their access to the internet ## Allow Clients to connect but block their access to the internet