mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-20 20:00:16 +00:00
added info on how to prevent clients to access internet.
parent
0160c53db6
commit
f06af1b5ed
1 changed files with 9 additions and 1 deletions
8
FAQ.md
8
FAQ.md
|
@ -16,3 +16,11 @@ You can safely install pivpn on the same raspberry pi as your pi-hole install.
|
||||||
look for this line: `listen-address=127.0.0.1, 192.168.1.2, 10.8.0.1`
|
look for this line: `listen-address=127.0.0.1, 192.168.1.2, 10.8.0.1`
|
||||||
Note your listen-address may just contain 127.0.0.1, the next IP should be the local IP of your pi-hole and the final IP, 10.8.0.1 is the PiVPN vpn interface.
|
Note your listen-address may just contain 127.0.0.1, the next IP should be the local IP of your pi-hole and the final IP, 10.8.0.1 is the PiVPN vpn interface.
|
||||||
If you set this and have your vpn clients use 192.168.1.2 (in my example) as their DNS then you will get ad blocking over your VPN connections.
|
If you set this and have your vpn clients use 192.168.1.2 (in my example) as their DNS then you will get ad blocking over your VPN connections.
|
||||||
|
|
||||||
|
## Allow Clients to connect but block their access to the internet
|
||||||
|
|
||||||
|
If you don't want your VPN clients to be able to access the internet simply comment the following line in `/etc/openvpn/server.con`
|
||||||
|
|
||||||
|
````
|
||||||
|
push "redirect-gateway def1"
|
||||||
|
```
|
Loading…
Reference in a new issue