Updated FAQ (WireGuard) (markdown)

Orazio 2020-02-01 10:06:45 +01:00
parent e3f64e1d57
commit 321a6cd7c6

@ -1,7 +1,8 @@
# FAQ (Frequently Asked Questions)
## 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.
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.
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
@ -17,7 +18,7 @@ New clients you generate will use Pi-hole but you need to manually edit existing
2. Replace the line `DNS = [...], [...]` with this line `DNS = 10.6.0.1`
4. Save the file and connect again
## How do I change the public IP/DNS name of the PiVPN?
## How do I change the public IP/DNS name of the PiVPN after the install?
1. Edit the PiVPN configuration with `sudo nano /etc/pivpn/setupVars.conf`
2. Update the `pivpnHOST=[...]` line
3. Save and exit
@ -44,7 +45,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 openvpn or wireguard service: `sudo systemcl restart wg-quick@wg0`
4. Restart the wireguard service: `sudo systemcl restart wg-quick@wg0`
**OBS:** Please be aware of the difference between `/etc/` and `etc/`!
/etc with the starting slash is a system directory
@ -52,7 +53,7 @@ etc/ without starting slash and tailing slash means its a directory in your curr
## How to resolve local hostnames?
to resolve local hostnames all you have to do is to use your router as DNS Server instead of using other public DNS providers.
All you have to do is to use your router as DNS Server instead of using other public DNS providers.
If you have already a working installation of WireGuard, all you need to do is to edit your client config and change the line `DNS = [...], [...]` to `DNS = 192.168.23.1` (assuming 192.168.23.1 is your gateway IP).
Alternatively you can change `/etc/hosts` file and add `<IPAddress> <hostname>`