openwrt / packages

Community maintained packages for OpenWrt. Documentation for submitting pull requests is in CONTRIBUTING.md
GNU General Public License v2.0
4.04k stars 3.5k forks source link

shadowsocks-libev-ss-rules: ss-rules is not able to be disabled on OpenWRT 22.03 #18991

Open jeffpeng78 opened 2 years ago

jeffpeng78 commented 2 years ago

Maintainer: @\ Environment: Model Xiaomi Redmi Router AX6S Architecture ARMv8 Processor rev 4 Target Platform mediatek/mt7622 Firmware Version OpenWrt 22.03.0-rc5 r19523-bfd070e7fa / LuCI openwrt-22.03 branch git-22.167.28394-8a4486a Kernel Version 5.10.127

Description: Once the Redir Rules are enabled, can not be disabled by the Luci nor the UCI command.

uci set shadowsocks-libev.ss_rules.disabled=1
uci commit shadowsocks-libev
/etc/init.d/shadowsocks-libev reload
jeffpeng78 commented 2 years ago

After further investigation, found the file "90-ss-rules.nft" is left remain in directory /etc/nftables.d/ when the ss-rules is disabled. So the fw4 of OpenWRT 22.03 still forwards the traffic. Please remove the "90-ss-rules.nft" when disabling the ss-rules by uci or luci.