semigodking / redsocks

transparent redirector of any TCP/UDP connection to proxy
Apache License 2.0
1.17k stars 247 forks source link

autoproxy 配置生效问题 #161

Open wurenny opened 3 years ago

wurenny commented 3 years ago

redsocks.conf

base { user = redsocks; group = redsocks; } redsocks { autoproxy =1 }

user

uid=1016(redsocks) 进程的owner显示是redsocks

iptables

Chain OUTPUT_direct (1 references) target prot opt source destination
DNAT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:53 to:192.168.xxx.xxx:1053 REDSOCKS tcp -- 0.0.0.0/0 0.0.0.0/0 ! owner UID match 1016 multiport dports 53,80,443

Chain REDSOCKS (1 references) target prot opt source destination
RETURN all -- 0.0.0.0/0 192.168.0.0/16
RETURN all -- 0.0.0.0/0 172.16.0.0/12
RETURN all -- 0.0.0.0/0 10.0.0.0/8
RETURN all -- 0.0.0.0/0 0.0.0.0/8
RETURN all -- 0.0.0.0/0 127.0.0.0/8
RETURN all -- 0.0.0.0/0 169.254.0.0/16
RETURN all -- 0.0.0.0/0 100.64.0.0/10
RETURN all -- 0.0.0.0/0 224.0.0.0/4
RETURN all -- 0.0.0.0/0 240.0.0.0/4
REDIRECT tcp -- 0.0.0.0/0 0.0.0.0/0 redir ports 12345

issue