{"id":13826308,"url":"https://github.com/mrahmadt/smartgw","last_synced_at":"2025-07-09T00:32:51.519Z","repository":{"id":43942809,"uuid":"145265645","full_name":"mrahmadt/SmartGW","owner":"mrahmadt","description":"Domain based VPN Gateway/Proxy for all devices","archived":false,"fork":false,"pushed_at":"2020-08-13T08:29:40.000Z","size":167,"stargazers_count":54,"open_issues_count":0,"forks_count":16,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-08-05T09:15:10.043Z","etag":null,"topics":["dns-server","dnsmasq","firewall","gateway","http-proxy","nordvpn","privacy","proxy","smart-dns","sniproxy","unblocker","vpn","vpn-client"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrahmadt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-19T01:58:22.000Z","updated_at":"2024-02-21T12:04:36.000Z","dependencies_parsed_at":"2022-09-21T08:32:08.372Z","dependency_job_id":null,"html_url":"https://github.com/mrahmadt/SmartGW","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrahmadt%2FSmartGW","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrahmadt%2FSmartGW/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrahmadt%2FSmartGW/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrahmadt%2FSmartGW/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrahmadt","download_url":"https://codeload.github.com/mrahmadt/SmartGW/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225476384,"owners_count":17480215,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dns-server","dnsmasq","firewall","gateway","http-proxy","nordvpn","privacy","proxy","smart-dns","sniproxy","unblocker","vpn","vpn-client"],"created_at":"2024-08-04T09:01:35.438Z","updated_at":"2024-11-20T05:30:34.782Z","avatar_url":"https://github.com/mrahmadt.png","language":"PHP","funding_links":[],"categories":["\u003ca id=\"d62a971d37c69db9f3b9187318c3921a\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"8ea8f890cf767c3801b5e7951fca3570\"\u003e\u003c/a\u003e公网访问局域网"],"readme":"# SmartGW\n\nSmartGW 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.\n\n**Example:**\n- HTTP/HTTPS for **netflix.com** (from all devices in your network) --\u003e Will go through your **VPN tunnel**.\n- HTTP/HTTPS for **youtube.com** (from all devices in your network) --\u003e Will go through your **ISP gateway**.\n\n**This can help you to:**\n- Access Geo-restricted content.\n- Access any blocked domains.\n- Use it with all your devices (Laptop, Mobiles, SmartTV...etc).\n- Utilize your full ISP network speed to access any site that you don't want it to go through the VPN tunnel.\n- Work with \u003ca href=\"https://pi-hole.net/\"\u003ePi-Hole\u003c/a\u003e for Network-wide Ad Blocking\n- More browsing privacy?.\n\n## Features\n* Works with all devices in local network (PC, Laptop, Mobiles, SmartTV...etc).\n* No need to change any settings in your devices, install SmartGW and configure the DNS in your internet router.\n* Simple GUI to check SmartGW status and to add/remove any domain.\n* Automatically connect to the fastest low latency VPN servers in a given country.\n* Auto retry and auto-failover to next best VPN server if the connection dies.\n\n## How difficult it's?\nThe setup is straightforward, you need a Linux server, and a \u003ca href=\"http://nordvpn.com\"\u003eNordVPN\u003c/a\u003e VPN subscription.\n\n## What Do I need to start?\n1. Linux server (any old laptop or \u003ca href=\"https://en.wikipedia.org/wiki/Single-board_computer\"\u003esingle-board\u003c/a\u003e such us \u003ca href=\"https://www.raspberrypi.org/\"\u003eRaspberry Pi\u003c/a\u003e will work).\n2. \u003ca href=\"http://nordvpn.com\"\u003eNordVPN\u003c/a\u003e VPN subscription.\n3. Static IP in your local network.\n4. \u003ca href=\"https://docker.com/\"\u003eDocker engine\u003c/a\u003e with basic know how.\n\n## Instructions\n1. Install Linux.\n2. Set a static IP in your server.\n3. Install Docker.\n4. Download SmartGW source code.\n5. Rename example.env to .env and change the variables\n```\n#Your NordVPN Username\nVPN_USERNAME=yourUsername@nordvpn.com\n#Your NordVPN Password\nVPN_PASSWORD=yourNordvpnPassword\n#VPN country\nVPN_OPTIONS=us\n#Local network CIDR network\nCIDR_NETWORK=192.168.1.0/24\n#No need to change this\nVPN_DNS1=103.86.96.100\n#No need to change this\nVPN_DNS2=103.86.99.100\n#Pi-Hole web admin password\nPIHOLE_PASSWORD=pihole\n```\n6. Run SmartGW docker-compose\n``` bash\ndocker-compose up\n```\n7. Open your browser and type your SmartGW IP (port 8080) (http://Your-Server-IP:8080/) and start adding your domains (e.g., yahoo.com).\n8. Define SmartGW IP address as the only DNS entry in the router.\n```\nLogin to your router’s configuration page and find the DHCP/DNS settings. \nNote: make sure you adjust this setting under your LAN settings and not the WAN.\n```\n![6e475c318358d8266052015e28841a72b3cc3b84](https://user-images.githubusercontent.com/957921/44320410-9cccc200-a44a-11e8-88fe-570d01eb2e93.png)\n\nEnjoy!.\n\n## Screenshots\n![Screen Shot 2019-04-27 at 3 57 54 AM](https://user-images.githubusercontent.com/957921/56842702-fc645280-68a0-11e9-83df-0a9c4089a87e.png)\n![Screen Shot 2019-04-27 at 3 58 13 AM](https://user-images.githubusercontent.com/957921/56842707-fff7d980-68a0-11e9-975b-1e81e1bc6133.png)\n.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrahmadt%2Fsmartgw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrahmadt%2Fsmartgw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrahmadt%2Fsmartgw/lists"}