a transparent TCP to SOCKSv5 proxy on Linux
ttl-proxy
options:
-h show help
-d --default <default> default target address, default value "1.1.1.1:53"
-s <address> assgin a socks5 server address, default value "127.0.0.1:1080"
-l <address> assgin a listen address, default value "127.0.0.1:10800"
-V show version
just run:
ttl-proxy
or show help
ttl-proxy -h
use iptables
redirect to ttl-proxy
:
host
iptables -t nat -A OUTPUT -p tcp -m set --match-set myips dst -j REDIRECT --to-port 10800
or router
iptables -t nat -A PREROUTING -p tcp -m set --match-set myips dst -j REDIRECT --to-port 10800