It is an application for TCP communication on squid.
In this application it is possible to build socks 5 proxy via squid.
In this application, access may be made by bypassing the http proxy unless prohibited by setting.
go get github.com/moezakura/escape-proxy
cd $GOPATH/github.com/moezakura/escape-proxy
make build
./escape-proxy client -c config.yaml
./escape-proxy server -s [listen port]
Use yaml for config.
# authMode[true|false]
auth: true
# Whether to allow access automatically bypassing the Proxy [true|false]
auto_direct_connect: true
# http proxy host[hostName:port]
proxy: http.proxy:3128
# escape proxy server[hostName:port]
# recommend 443 (Many squids prohibit the connect method except for the 443 port.)
gateway: escape-proxy.server:443
# listen socks5 proxy[bindAddress:port]
listen: localhost:9999
# output log mode [json|text]
log_mode: json
# exclude ip (These are connected directly from Socks 5 Proxy.)
exclude:
- 192.168.0.0/16
- 10.0.0.0/8
- 172.16.0.0/11
# It is specified when auth mode is true. (authentication of listening socks 5)
users:
# auth user id
- id: mox
# auth user password
password: kafu-chino_ha_sekaide_itiban_kawaii
- MIT License
- Copyright (c) 2019 Moezakura