Create a single docker-compose and use the benefit from pi-hole if you use a Mobile Device outside your Home network.
Rationale for this repository: I want to connect OpenVPN to Pi-Hole as easily as possible. However, the user can make changes (meaningful to me), or just use my preferences.
Many thanks to:
GitHub @ kylemanna/docker-openvpn
GitHub @ pi-hole/docker-pi-hole
Now you can use this repository with the Hardwaretype x86_x64 and amr (Test with Raspberry Pi 2 (armhf) & Rasperry Pi Zero W (armv6))
YouTube: HowTo create this Container in about 4 Minutes
- Docker: Install Docer
curl -sSL https://get.docker.com | sh
sudo usermod -aG docker $USER
docker --version
-
Docker-Compose: Install Docker Compose
https://github.com/docker/compose/releases/latest -
Router Port Forwarding Howto Forward a Port on any Router
Setup a Port Forwarding from the external Port 1194 to the Host-Port 1194
git clone https://github.com/mr-bolle/docker-openvpn-pihole.git
cd docker-openvpn-pihole && bash openvpn-install.sh
1.2. OpenVPN create certificate and first user Source
Follow User Entry you have to made :bulb: All [default] values can be accepted with ENTER 💡
Please enter your dynDNS Addess:
enter your dynDNS Domain (example:vpn.example.com
)Please choose your Protocol (tcp / [udp])
you can change the OpenVPN to tcp, default is udpWould you change your Pi-Hole Admin Password
the currend default password read from docker-composeEnter PEM pass phrase:
this password is for your ca.key - and you need this to create a User CertificateCommon Name (eg: your user, host, or server name) [Easy-RSA CA]:
(default Easy-RSA CA)Please Provide Your Client Name
with this Name you create your first OpenVPN Client