All Projects → BobNisco → Adblocking Vpn

BobNisco / Adblocking Vpn

Licence: mit
🔒 Create your own VPN server that blocks malicious domains to enhance your security and privacy

Projects that are alternatives of or similar to Adblocking Vpn

Autovpn
Create On Demand Disposable OpenVPN Endpoints on AWS.
Stars: ✭ 1,959 (+1309.35%)
Mutual labels:  vpn, openvpn, vpn-server, privacy
Vpn At Home
1-click, self-hosted deployment of OpenVPN with DNS ad blocking sinkhole
Stars: ✭ 1,106 (+695.68%)
Mutual labels:  adblock, vpn, openvpn, privacy
terraform-aws-pritunl-vpn-server
Pritunl VPN Server for your public/private like VPC on AWS
Stars: ✭ 40 (-71.22%)
Mutual labels:  openvpn, vpn, vpn-server
k8s-ovpn-chart
[DEPRECATED] Helm chart for a private OpenVPN server
Stars: ✭ 19 (-86.33%)
Mutual labels:  openvpn, vpn, vpn-server
Wireguard Manager
Self-hosted Wireguard Installer / Manager for CentOS, Debian, Ubuntu, Arch, Fedora, Redhat, Raspbian
Stars: ✭ 478 (+243.88%)
Mutual labels:  vpn, vpn-server, privacy
Vpnfailsafe
IP leak prevention for OpenVPN
Stars: ✭ 130 (-6.47%)
Mutual labels:  vpn, openvpn, privacy
Docker Openvpn
🔐 Out of the box stateless openvpn-server docker image which starts in less than 2 seconds
Stars: ✭ 174 (+25.18%)
Mutual labels:  vpn, openvpn, vpn-server
Debian Privacy Server Guide
Guide to using a remote Debian server for security and privacy services
Stars: ✭ 338 (+143.17%)
Mutual labels:  openvpn, vpn-server, privacy
Upribox
Usable Privacy Box
Stars: ✭ 153 (+10.07%)
Mutual labels:  openvpn, vpn-server, privacy
Openpyn Nordvpn
Easily connect to and switch between, OpenVPN servers hosted by NordVPN on Linux (+patch leakes)
Stars: ✭ 544 (+291.37%)
Mutual labels:  vpn, openvpn, privacy
Easy Wg Quick
Creates Wireguard configuration for hub and peers with ease
Stars: ✭ 502 (+261.15%)
Mutual labels:  vpn, vpn-server, privacy
Hblock
Improve your security and privacy by blocking ads, tracking and malware domains.
Stars: ✭ 724 (+420.86%)
Mutual labels:  adblock, dnsmasq, privacy
Macos Openvpn Server
macOS OpenVPN Server and Client Configuration (OpenVPN, Tunnelblick, PF)
Stars: ✭ 172 (+23.74%)
Mutual labels:  vpn, vpn-server, privacy
Wireguard-DNScrypt-VPN-Server
Fast setup wireguard server script, with dnscrypt and adblocking, maleware blocking, more blocking if you need. Use case eg. always on vpn and adblocking on ios or android, and be more secured in unknown networks.
Stars: ✭ 48 (-65.47%)
Mutual labels:  vpn, adblock, vpn-server
Vpngate With Proxy
vpn gate client for linux, be able to connect to open vpn server through proxy
Stars: ✭ 150 (+7.91%)
Mutual labels:  vpn, openvpn, vpn-server
Ovpm
OpenVPN Management Server - Effortless and free OpenVPN server administration
Stars: ✭ 256 (+84.17%)
Mutual labels:  vpn, openvpn, vpn-server
Blacklist
Curated and well-maintained hostfile to block ads, tracking, cryptomining, and more! Updated regularly. ⚡🔒
Stars: ✭ 492 (+253.96%)
Mutual labels:  adblock, dnsmasq, privacy
Softethervpn
Cross-platform multi-protocol VPN software. Pull requests are welcome. The stable version is available at https://github.com/SoftEtherVPN/SoftEtherVPN_Stable.
Stars: ✭ 8,531 (+6037.41%)
Mutual labels:  vpn, openvpn, vpn-server
Pi Hole Pivpn On Google Compute Engine Free Tier With Full Tunnel And Split Tunnel Openvpn Configs
Run your own privacy-first ad blocking service in the cloud for free on Google Cloud Services.
Stars: ✭ 1,141 (+720.86%)
Mutual labels:  vpn, openvpn, vpn-server
Wg Install
Wireguard road warrior installer for Ubuntu, Debian, CentOS and Fedora
Stars: ✭ 99 (-28.78%)
Mutual labels:  vpn, vpn-server

Roll your own Adblocking VPN

This is a how to guide to creating your own VPN server that also blocks malicious domains to enhance your security and privacy while browsing.

How does this work?

Quite simply, this guide will set you up with a Linux server that runs OpenVPN, with Dnsmasq, with a modified hosts file that routes offending sites to 0.0.0.0.

Prerequisites

  • You will need a Debian/CentOS/Ubuntu server to run your OpenVPN server on.
    • If you don't have one, you can get a low cost VPS from a provider like Bandwagon Host
    • Disclaimer: Wherever you get a server from, be sure you're obeying their TOS. I'm not responsible for anything you do from following this guide.

Instructions

  1. Get OpenVPN installed on your server. For this, we will use Nyr's fantastic OpenVPN installer script
  • wget https://git.io/vpn -O openvpn-install.sh && bash openvpn-install.sh
    • Follow the instructions to get it set up, it should take about 1 minute
    • It will generate an .ovpn file which you will use to connect to the VPN with from your client. We'll need this later on, so feel free to scp it to your client machine.
  1. Now we're going to overwrite our hosts file to route malicious domains to 0.0.0.0 by using StevenBlack's amazing hosts project.
  • wget https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts -O /etc/hosts
  1. Install Dnsmasq
  • sudo apt-get install dnsmasq
  1. We need to edit the dnsmasq config file to do a few things:
  • sudo vim /etc/dnsmasq.conf
    • Enable domain-needed and bogus-priv
    • Add in some alternative DNS servers (if you don't like the one provided by your host). For this example, we'll add Google DNS
    server=8.8.8.8
    server=8.8.4.4
    
    • Tell dnsmasq to listen on both localhost and to the subnet that OpenVPN created
    listen-address=127.0.0.1
    listen-address=10.8.0.1
    
  1. Edit the OpenVPN config file to resolve dhcp through dnsmasq
  • vim /etc/openvpn/server.conf
    • Add push "dhcp-option DNS 10.8.0.1"
    • Delete any other lines about "dhcp-option"
  1. Create a crontab entry that updates your hosts file every night at midnight:
  • crontab -e
    • Add the following line 0 0 * * * wget https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts -O /etc/hosts && service openvpn restart
  1. Restart the services
  • sudo service dnsmasq restart && sudo service openvpn restart
  1. At this point, we have an OpenVPN server routing traffic through Dnsmasq, which is checking our hosts file for malicious hosts, and falling back to a DNS provider for non-malicious hosts. Using the .ovpn file from earlier, you can now connect to the VPN from your client.

Adding/Removing Users

Thanks to the thoughtful work on Nyr, we can just use their script from the first step to manage users. It will detect that OpenVPN is already installed and prompt you to Add a new User, Removing existing user, or Remove OpenVPN completely: wget https://git.io/vpn -O openvpn-install.sh && bash openvpn-install.sh

License

These instructions are licensed under an MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].