Redirect traffic to transparent proxy

I’ve been using Shadowsocks to redirect packets for specific destination IPs to a local transparent proxy. However, after upgrading to OpenWrt 24.10, I discovered that the Shadowsocks packages were removed. Now I need to redirect packets manually via a script. Despite extensive searching and using AI tools, I haven’t found a working solution.

For example, I need to redirect all packets destined for these IP networks:
189.49.59.69/22
147.47.57.67/22
to a transparent proxy on local port 12344.

hi,

there is a wiki article https://openwrt.org/docs/guide-user/firewall/fw3_configurations/intercept_dns which describes the concept you can use. the main point, if i understand correctly your requirement, is that you should redirect all traffic sourced from your lan zone to destinations above in 'wan' zone to any destination port to your device's port 12344. you can add the external destination ip address on the advanced tab.

Look for hev-socks5-tproxy

I already have Transparent proxy running on port 12344, I need only redirect my traffic to transparent proxy

I don't understand how DNS interception relates to redirecting traffic to a transparent proxy.

concept. whatever redirect. the wiki is about specifically dns traffic redirect, but you can do the same with any traffic.

1 Like

HTTPS, which is most of today's web, does not support transparent proxies on a fundamental/ technical level, this does not work and you will have to configure the proxy explicitly.

see if the rules posted in Setup transparent redirect of local traffic to proxy - #4 by frollic help you along the way.
keep in mind they're designed to redirect all traffic, not some.