macronut / phantomsocks

A cross-platform proxy client/server for Linux/Windows/macOS
GNU Lesser General Public License v3.0
453 stars 18 forks source link

Using on OpenWrt #74

Open zhengqwe opened 1 month ago

zhengqwe commented 1 month ago

OpenWrt has no iptables now, iptables -t nat -A OUTPUT -d 6.0.0.0/8 -p tcp -j REDIRECT --to-port 6 can not be executed.

zhengqwe commented 3 weeks ago

Used these in turn: nft 'add rule ip nat output ip protocol tcp ip daddr 6.0.0.0/8 counter redirect to :6',nft 'add rule ip nat prerouting ip protocol tcp ip daddr 6.0.0.0/8 counter redirect to :6' and nft 'add rule ip nat forward ip protocol tcp ip daddr 6.0.0.0/8 counter redirect to :6', not work at all.