Last active
January 13, 2021 17:31
-
-
Save hasobi/92d9b027b85c6279a01d9aee401d543c to your computer and use it in GitHub Desktop.
OpenVPN + PiHole instalation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MAKE SURE you enabled port 1194 UDP and 80 TCP | |
wget https://git.io/vpn -O openvpn-install.sh && bash openvpn-install.sh | |
# choose your IP | |
# choose UDP | |
# choose port 1194 | |
# choose your preffered DNS, i personaly choose 8.8.8.8 (Google) | |
nano /etc/openvpn/server/server.conf | |
; remove any other dhcp-option or comment other dhcp-option BELOW | |
; remove this line -> push "redirect-gateway def1 bypass-dhcp" | |
; remove this line -> push "dhcp-option DNS 8.8.8.8" | |
; remove this line -> push "dhcp-option DNS 8.8.4.4" | |
#ADD THIS TO THE BOTTOM | |
push "dhcp-option DNS 10.8.0.1" | |
sudo systemctl restart openvpn-server@server | |
curl -sSL https://install.pi-hole.net | bash | |
# choose tun0 by press space toogle on tun0 | |
# Choose google ECS | |
# Choose IPv4 only by press space on IPv6 | |
# If it asks "Do you want to use current network seeting as a static address?" CHOOSE NO | |
# For desired IPv4 adrress input 10.8.0.1/24 -> this is your openvpn internal IP | |
# For desired IPv4 default gateway input your VPS IP then hit YES | |
# Choose whatever DNS provide you love, personally i choose Google DNS | |
# admin login URL http://10.8.0.1/admin/ | |
https://medium.com/fillory/openvpn-pihole-ad-blocking-on-aws-lightsail-for-3-50-mo-7e814eafff84 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment