mirror of
https://github.com/pivpn/pivpn.git
synced 2025-02-28 05:48:25 +00:00
Updated WireGuard (markdown)
parent
7d0c7511bd
commit
ae3374f546
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
## How do I use Pi-hole with PiVPN?
|
||||
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.
|
||||
Note that if you install PiVPN after Pi-hole, your existing Pi-hole installation will be detected and the script will ask if you want to use is as the DNS for the VPN, so you won't need to go through all these steps.
|
||||
Note that if you install PiVPN after Pi-hole, your existing Pi-hole installation will be detected and the script will ask if you want to use it as the DNS for the VPN, so you won't need to go through all these steps.
|
||||
|
||||
1. Create a new file `sudo nano /etc/dnsmasq.d/02-pivpn.conf`
|
||||
2. Add `interface=wg0` inside to tell Pi-hole to listen on the VPN interface as well
|
||||
|
@ -49,7 +49,7 @@ example using scp on linux:
|
|||
1. Backup the current install: `sudo cp -r /etc/wireguard /etc/wireguard_backup`
|
||||
2. Extract the backup archive: `tar xzpfv <archive name>`
|
||||
3. Copy the extracted content: `sudo cp -r etc/wireguard /etc/wireguard`
|
||||
4. Restart the wireguard service: `sudo systemcl restart wg-quick@wg0`
|
||||
4. Restart the wireguard service: `sudo systemctl restart wg-quick@wg0`
|
||||
|
||||
**OBS:** Please be aware of the difference between `/etc/` and `etc/`!
|
||||
/etc with the starting slash is a system directory
|
||||
|
|
Loading…
Add table
Reference in a new issue