aiyijing / smart-gateway

Smart Gateway

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SmartGateway

SmartGateway is smart gateway.It uses iptables to forward traffic. The traffic outbounds is tproxy of v2ray. SmartGateway run in docker, So it is very easy to install and uninstall.

Dependency

  • Docker
  • Linux

QuickStart

  • Easy to install
docker run -d --name gate --privileged --net host \
       -v "/var/run/docker.sock:/var/run/docker.sock" \
       -v "/var/lib/docker/volumes:/var/lib/docker/volumes" \
       aiyijing/gw:latest 
  • uninstall
docker stop gate ;docker rm gate
# clear ip rule and iptables
ip route del local 0.0.0.0/0 dev lo table 100
ip rule del fwmark 0x1 table 100
iptables -F
iptables -X
iptables -Z

Feature

  • SmartDNS
  • Smart forward traffic
  • Simple to install and uninstall

About

Smart Gateway

License:Apache License 2.0


Languages

Language:Go 61.9%Language:Vue 25.2%Language:JavaScript 8.2%Language:Shell 2.2%Language:HTML 1.6%Language:Makefile 0.5%Language:Dockerfile 0.5%