Can't redirect TCP/UDP traffic to socks5 transparent proxy?

Started by or2me, April 13, 2020, 05:51:11 AM

Previous topic - Next topic
像redsocks、ss-redir(shadowsocks)、clash等客户端可以开启一个socks5的透明代理。在LEDE、linux平台上,可以通过IPtables将流量重定向到这个socks5透明代理端口。比如我可以把所有访问YouTube的流量重定向到这个端口。但是在opnsense上设置了端口转发规则后并不能生效。我可以转发流量到另一个http端口,也可以转发流量到squid的http透明代理,但是当我转发到一个socks5的透明代理时,没有任何事情发生。

Clients like redsocks, ss-redir (shadowsocks), clash, etc. can open a socks5 transparent proxy. On LEDE and Linux platforms, traffic can be redirected to this socks5 transparent proxy port through IPtables. For example, I can redirect all traffic to YouTube to this port. However, the port forwarding rule set on opnsense does not take effect. I can forward traffic to another http port, or I can forward traffic to Squid's http transparent proxy, but when I forward to a socks5 transparent proxy, nothing happens.