ip flow to socks, support tun and tap.
git clone https://github.com/FlowerWrong/ip2socks.git --recursive
# ubuntu vm
vagrant up --provider virtualbox
vagrant ssh
# build ip2socks
cmake .
make
## start ip2socks
# OSX
sudo ./ip2socks --config=./scripts/config.darwin.example.yml
# linux
sudo ./ip2socks --config=./scripts/config.linux.example.yml
local_dns_port
redirect to tcp, other flow will be try to send to remote via socks 5 udp tunnellocal_dns_port
redirect to udp, other flow will be send to remote via socks 5 udp tunneluse-vc
in /etc/resolv.conf
: Sets RES_USEVC in _res.options. This option forces the use of TCP for DNS resolutions.remote_dns_server
, you can just route your dns servers to tun or tap with route
on OSX or ip route
on Linuxremote_dns_server
, setup your dns to addr
, eg 10.0.0.2
8.8.8.8
CLOSE_WAIT
to socks server, see netstat -an | grep CLOSE_WAIT | wc -l
brew update
, brew upgrade
ERR_QUIC_PROTOCOL_ERROR
, go to chrome://flags/
disable quicMessage too long
bugblock
rule support, just close itaddress=/test.com/127.0.0.1
supportdomain
, domain_keyword
, domain_suffix
(ip_cidr, geoip) rule supportkeep-alive
supportSO_REUSEADDR
support