pexcn / openwrt-transproxy

A bridge of openwrt and transparent proxy.
https://github.com/pexcn/transproxy
GNU General Public License v3.0
7 stars 0 forks source link

add nftables support #4

Open pexcn opened 2 years ago

code2u commented 5 months ago

能够改成 nftables 确实就很有用,因为现在的 openwrt 新版已经切换到 fw4 了。

openwrt 仓库中的 ss-rules,很好用,但是只能适配 shadowsocks-libev,确实如果能够将这个 ss-rules 做成通用的,那就可以适配其他支持透明代理的工具,比如 clash。

pexcn commented 5 months ago

现在就支持搭配其他透明代理工具使用,只是暂时不支持 nftables. 你可以试试在新表 openwrt 下安装 iptables-nft 包,看看能否兼容?

code2u commented 5 months ago

暂时不想回去使用兼容 iptables 了。主要是 iptables 本身感觉不太看得懂,nftables 还能够看懂一些。而且 iptables 反正已经被 nftables 替代了。

目前 openwrt 的 23.05 版本中的 ss-rules 是已经支持 nftables 的,然后因为想使用 clash 试一试,一直想能否改一改 ss-rules,奈何不是做 IT 的,对改动这个力不从心。然后手动配置透明代理 clash 就比较累。

然后看到这个 transproxy 项目,感觉是很有用,如果有个配合 luci,就比较简洁的可以配置一些代理行为。

pexcn commented 5 months ago

暂时没时间做 nftables 的版本,恐怕要到明年才会支持了

code2u commented 5 months ago

单纯想咨询下,如果在目前的 shadowsocks-libev openwrt 版本上,将 ss-rules 的依赖 (ss-redir 之类的) 去掉,然后自己编译一个名字不同的包,是否是可行的?难度不知道大不大?

pexcn commented 5 months ago

可能要改脚本