Beste tweakers,
Ik wil pihole ook buiten mijn netwerk draaien, alleen zit ik met een probleempje.
If you operate your Pi-hole + OpenVPN at home, it is very likely that you are sitting behind a NAT / dynamically changing IP address. In this case, you should set up a dynamic DNS record, which allows you to reach your server. You can exchange the address that has been configured during the setup of OpenVPN like this'':
sudo nano /etc/openvpn/client-common.txt
Look for the remote line and adjust it accordingly (remove IP address, add host name), e.g.
remote home.mydomain.de 1194
Nu raak ik vast bij dit bovenste stukje... waar haal ik de DDNS hostname vandaan?
This change has to be repeated in each client config file (*.conf) that you have been created up till now.
If you have set up a DDNS domain for your IP address, you will likely need to add a host-record to Pi-hole's settings. If you don't do this, clients (like the Android OpenVPN client) will not able to connect to the VPN server when inside the internal network (while it will work from outside).
pi@raspberrypi:~# pihole -a hostrecord home.mydomain.de 192.168.1.10
Setting host record for home.mydomain.de -> 192.168.1.10
Afterwards, the client will be able to connect to the VPN server both from inside and outside you local network.[/i]
Bron: https://github.com/pi-hol...nVPN-server:-Setup-server
Alvast Bedankt!
Ik wil pihole ook buiten mijn netwerk draaien, alleen zit ik met een probleempje.
If you operate your Pi-hole + OpenVPN at home, it is very likely that you are sitting behind a NAT / dynamically changing IP address. In this case, you should set up a dynamic DNS record, which allows you to reach your server. You can exchange the address that has been configured during the setup of OpenVPN like this'':
sudo nano /etc/openvpn/client-common.txt
Look for the remote line and adjust it accordingly (remove IP address, add host name), e.g.
remote home.mydomain.de 1194
Nu raak ik vast bij dit bovenste stukje... waar haal ik de DDNS hostname vandaan?
This change has to be repeated in each client config file (*.conf) that you have been created up till now.
If you have set up a DDNS domain for your IP address, you will likely need to add a host-record to Pi-hole's settings. If you don't do this, clients (like the Android OpenVPN client) will not able to connect to the VPN server when inside the internal network (while it will work from outside).
pi@raspberrypi:~# pihole -a hostrecord home.mydomain.de 192.168.1.10
Setting host record for home.mydomain.de -> 192.168.1.10
Afterwards, the client will be able to connect to the VPN server both from inside and outside you local network.[/i]
Bron: https://github.com/pi-hol...nVPN-server:-Setup-server
Alvast Bedankt!