Deploying OpenVPN Server with Pi-hole

Secured internet, private, and ads-free. Well, that isn't a lie. I just rebuilt my own private server to use this service, and the result is incredible.

Deploying OpenVPN Server with Pi-hole

The difference between left and right is no more ads showing (they are using Google Ads).

Prerequisites

  • Ubuntu Server
  • Public IP Address

Install OpenVPN

curl -O https://raw.githubusercontent.com/angristan/openvpn-install/master/openvpn-install.sh
chmod +x openvpn-install.sh
sudo ./openvpn-install.sh

Follow the installer instruction, set the DNS Server to 10.8.0.1.

Install Pi-hole

curl -sSL https://install.pi-hole.net | bash

Follow the installer instruction, set the interface to tun0 and set the IP to 10.8.0.1/24 with gateway 10.8.0.0.

Once installed, connect to the VPN (use the profile that provided by openvpn-install.sh ). Access http://pi.hole on the browser, and voila; That is pi.hole admin page, to configure pi.hole like whitelist, blacklist and updating pi.hole is can be done there. Also, the internet is already filtered by pi.hole.

Extra

  • Stable for online game, like Counter Strike : Global Offensive, Grand Theft Auto Online.
  • Netflix follow the VPN server region.
  • This is a VPN, your internet is secured.

Extra #2

This tutorial can be done with instant deploy from DigitalOcean:

Free $100 DigitalOcean Credit after verifying payment method for new account from this link: