Home

Awesome

SmartGW

SmartGW is a VPN Gateway/Proxy that allows you to route HTTP/HTTPS traffic for specific internet domains to go through VPN tunnel while keeping the other traffic goes through your ISP gateway.

Example:

This can help you to:

Features

How difficult it's?

The setup is straightforward, you need a Linux server, and a <a href="http://nordvpn.com">NordVPN</a> VPN subscription.

What Do I need to start?

  1. Linux server (any old laptop or <a href="https://en.wikipedia.org/wiki/Single-board_computer">single-board</a> such us <a href="https://www.raspberrypi.org/">Raspberry Pi</a> will work).
  2. <a href="http://nordvpn.com">NordVPN</a> VPN subscription.
  3. Static IP in your local network.
  4. <a href="https://docker.com/">Docker engine</a> with basic know how.

Instructions

  1. Install Linux.
  2. Set a static IP in your server.
  3. Install Docker.
  4. Download SmartGW source code.
  5. Rename example.env to .env and change the variables
#Your NordVPN Username
VPN_USERNAME=yourUsername@nordvpn.com
#Your NordVPN Password
VPN_PASSWORD=yourNordvpnPassword
#VPN country
VPN_OPTIONS=us
#Local network CIDR network
CIDR_NETWORK=192.168.1.0/24
#No need to change this
VPN_DNS1=103.86.96.100
#No need to change this
VPN_DNS2=103.86.99.100
#Pi-Hole web admin password
PIHOLE_PASSWORD=pihole
  1. Run SmartGW docker-compose
docker-compose up
  1. Open your browser and type your SmartGW IP (port 8080) (http://Your-Server-IP:8080/) and start adding your domains (e.g., yahoo.com).
  2. Define SmartGW IP address as the only DNS entry in the router.
Login to your router’s configuration page and find the DHCP/DNS settings. 
Note: make sure you adjust this setting under your LAN settings and not the WAN.

6e475c318358d8266052015e28841a72b3cc3b84

Enjoy!.

Screenshots

Screen Shot 2019-04-27 at 3 57 54 AM Screen Shot 2019-04-27 at 3 58 13 AM .