From 6f1cdb8a21da34efe275edb8ff09d91541ef05a4 Mon Sep 17 00:00:00 2001 From: Dest Date: Thu, 18 Aug 2022 11:22:43 +0800 Subject: [PATCH 1/4] Update README.md --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 4c83a8e..49f6670 100755 --- a/README.md +++ b/README.md @@ -16,14 +16,12 @@ git clone https://github.com/destan19/OpenAppFilter.git package/OpenAppFilter 4. 编译生成固件 make V=s ### 使用说明 -1. 将应用过滤设备做主路由 -2. 关闭软硬加速、广告过滤、QOS、多WAN等涉及到nf_conn mark的模块,高通的AX系列产品需要将ecm允许慢速转发的包个数调整到最大值,直接stop ecm会导致吞吐非常低。 -3. 开启应用过滤并选择需要过滤的app即可生效 - + 使用前需要关闭软硬加速、广告过滤、QOS、多WAN等涉及到nf_conn mark的模块,高通的AX系列产品需要将ecm允许慢速转发的包个数调整到最大值,直接stop ecm会导致吞吐非常低。 + 最新版本已经支持旁路由模式 + ### 特征库下载地址 https://destan19.github.io/feature/ - ### 插件截图 ![](https://github.com/destan19/picture/blob/main/oaf1.jpg) From 9fa3685157f32114a5296e58312ad01eefcdc039 Mon Sep 17 00:00:00 2001 From: Dest Date: Fri, 9 Sep 2022 15:27:28 +0800 Subject: [PATCH 2/4] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 49f6670..660506f 100755 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ -应用过滤是一款基于OpenWrt的家长管理插件,支持游戏、视频、聊天、下载等app过滤 +应用过滤是一款基于OpenWrt的家长管理插件,支持游戏、视频、聊天、下载等app过滤,比如抖音、斗鱼、王者荣耀等 ### 如何编译应用过滤固件 1. 准备OpenWrt源码,并编译成功 推荐源码仓库: https://github.com/coolsnowwolf/lede.git - 如果用官方源码,不要用master分支,因为luci版本不兼容,推荐18.06版本。 + 如果用官方源码,luci不要使用2.0版本,目前还没有适配新架构的luci 2. clone应用过滤源码到OpenWrt源码package目录 git clone https://github.com/destan19/OpenAppFilter.git package/OpenAppFilter 3. make menuconfig 开启应用过滤插件宏 @@ -40,7 +40,7 @@ App filtering is a parent management plug-in based on OpenWrt, which supports ap 1. Prepare OpenWrt source code and compile successfully Recommended source code repository: https://github.com/coolsnowwolf/lede.git - If you use the official source code, do not use the master branch, because the luci version is not compatible, version 18.06 is recommended. + If you use the official source code, please switch luci to 1.0, the current code does not support luci2.0 2. Clone the application filtering source code to the OpenWrt source code package directory git clone https://github.com/destan19/OpenAppFilter.git package/OpenAppFilter 3. make menuconfig to open the application filter plug-in macro From aac86d6846e0502ca199926af4ea47197e9a60b1 Mon Sep 17 00:00:00 2001 From: derry Date: Wed, 14 Sep 2022 03:25:11 +0000 Subject: [PATCH 3/4] update luci-app-oaf depends --- luci-app-oaf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luci-app-oaf/Makefile b/luci-app-oaf/Makefile index bebf5f9..8674755 100755 --- a/luci-app-oaf/Makefile +++ b/luci-app-oaf/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk LUCI_TITLE:=Open App Filter Module LUCI_PKGARCH:=all -LUCI_DEPENDS:=+appfilter +LUCI_DEPENDS:=+appfilter +kmod-oaf PKG_NAME:=luci-app-oaf PKG_VERSION:=5.0 PKG_RELEASE:=1 From 68aa80c85075a8c8334b67293b72e32942c2d403 Mon Sep 17 00:00:00 2001 From: Dest Date: Thu, 22 Sep 2022 10:12:28 +0800 Subject: [PATCH 4/4] Update README.md --- README.md | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 660506f..645991f 100755 --- a/README.md +++ b/README.md @@ -7,17 +7,29 @@ 1. 准备OpenWrt源码,并编译成功 推荐源码仓库: https://github.com/coolsnowwolf/lede.git - 如果用官方源码,luci不要使用2.0版本,目前还没有适配新架构的luci 2. clone应用过滤源码到OpenWrt源码package目录 git clone https://github.com/destan19/OpenAppFilter.git package/OpenAppFilter -3. make menuconfig 开启应用过滤插件宏 - 在OpenWrt源码目录执行make menuconfig, - 勾选luci-app-oaf、appfilter、kmod-oaf三个插件并保存,其中appfilter和kmod-oaf位于Derry Apps目录,为了后续支持插件安装,luci不再强制依赖kmod-oaf模块。 +3. 开启oaf插件配置 +执行命令make menuconfig,进入编译配置界面,勾选luci-app-oaf后保存, +luci-app-oaf依赖appfilter、kmod-oaf两个模块,选择luci-app-oaf后会自动选择依赖。 4. 编译生成固件 make V=s -### 使用说明 - 使用前需要关闭软硬加速、广告过滤、QOS、多WAN等涉及到nf_conn mark的模块,高通的AX系列产品需要将ecm允许慢速转发的包个数调整到最大值,直接stop ecm会导致吞吐非常低。 - 最新版本已经支持旁路由模式 +5. 支持模式 +- 主路由模式 +- 旁路由模式(AP桥模式也可以使用该模式,旁路由模式仅用来过滤,如果需要完整审计功能,请部署为主路由) + +### 使用前必读 + 1. 关闭网络加速 + 进入网络-->网络加速(ACC)菜单,将所有的勾取消并保存生效,如果是高通AX系列产品,还需要手动通过命令调整ecm慢速转发包个数, + 调整为比较大的值,比如1000000,该值表示某条连接多少个报文进入应用过滤模块。 + 命令: + ``` + echo "1000000" > /sys/kernel/debug/ecm/ecm_classifier_default/accel_delay_pkts + ``` + 注意重启后会失效,可以加入到启动脚本。 + + 2. 关闭可能冲突的模块 + 广告过滤、QOS、多WAN等涉及到连接跟踪标记(mark)的模块可能和应用过滤冲突,测试时最好先不开启其他任何模块。 ### 特征库下载地址 https://destan19.github.io/feature/