-
Notifications
You must be signed in to change notification settings - Fork 637
基于lean源码编译应用过滤固件注意事项
Derry edited this page Feb 23, 2021
·
1 revision
cd package
git clone https://github.com/destan19/OpenAppFilter.git cd - 回到根目录
make V=99
注意这样编译出来的固件,应用过滤默认是不生效的,因为lean源码默认开启了加速功能 我们可以将加速默认关闭
-
firewall配置 package/network/config/firewall/files/firewall.config 设置option fullcone 0
-
删除或关闭floaoffload中设置的firewall选项 package/lean/luci-app-flowoffload/root/etc/uci-defaults/flowoffload
#!/bin/sh
uci set firewall.@defaults[0].flow_offloading=1 # 这里设置为0,关闭加速,或者注释掉
uci commit firewall
uci -q batch <<-EOF >/dev/null
delete ucitrack.@flowoffload[-1]
add ucitrack flowoffload
set ucitrack.@flowoffload[-1].init=flowoffload
commit ucitrack
EOF
exit 0
package/lean/luci-app-flowoffload/root/etc/config/flowoffload
config flow
option flow_offloading '0' #关闭
option flow_offloading_hw '0' #关闭
option dns '0'
option dns_server '114.114.114.114,114.114.115.115'
option bbr '0' # 关闭
修改后重新编译固件,这样应用过滤就可以直接使用,不用通过web页面进行关闭操作