glider is a forward proxy with multiple protocols support, and also a dns/dhcp server with ipset management features(like dnsmasq).
checkwebsite
config, use check
instead;tcptun
, use tcp
instead;udptun
, use udp
instead;check: added a new config check
to customize forwarder health checking:
check=tcp[://HOST:PORT]
check=http://HOST[:PORT][/URI][#expect=STRING_IN_RESP_LINE]
expect
to specify the string which the response line must contain.check=file://SCRIPT_PATH
FORWARDER_ADDR
check=disable
http://www.msftconnecttest.com/connecttest.txt#expect=200
proxy: added a new scheme tcp
:
glider -verbose -listen tcp://:53 -forward socks5://127.0.0.1:1080,tcp://8.8.8.8:53 -forward tcp://8.8.4.4:53 -check tcp
proxy: added a new scheme udp
:
glider -verbose -listen udp://:53 -forward udp://8.8.8.8:53 -forward udp://8.8.4.4:53
unix: support tcp & udp tunnel(#194):
glider -verbose -listen udp://:5353 -forward unix:///tmp/test.sock
glider -verbose -listen unix:///tmp/test.sock -forward udp://8.8.8.8:53
dig @127.0.0.1 -p 5353 www.google.com
ss: fixed an udp issue(#198 by @mzz2017)
vmess: support udp forwarding(#199 by @mzz2017)
vmess: choose security automatically when not set(#200 by @mzz2017)
chore: built with Go1.15.6
origin
header, default to nil and not send;docker pull nadoo/glider
dnscachesize
to control the size of dns cache;checktolerance
to ignore forwarder switching when the reduced latency less than tolerance;(lha mode only)vless server:
glider -verbose -listen "vless://UUID@:1234"
with fallback(a http website, when server received an invalid request, it will respond the fallback website instead):
glider -verbose -listen "vless://UUID@:1234?fallback=127.0.0.1:80"
vless client:
glider -verbose -listen :8443 -forward "vless://UUID@SERVER_IP:1234"
protocol chain example: vless over tls
server:
glider -verbose -listen "tls://:1234?cert=/path/to/cert&key=/path/to/key,vless://UUID@?fallback=127.0.0.1:80"
client:
glider -verbose -listen :8443 -listen "ss://METHOD:PASS@:8488" -forward "tls://SERVER_DOMAIN:1234,vless://UUID@"
glider -verbose -listen :8443 -forward="vless://uuid@ip:port"
glider -verbose -listen :8443 -service=dhcpd,enp1s0,192.168.50.100,192.168.50.200