19e210ee9SDestan## OAF(Open App Filter)  
2e2e38f71SDestanOAF is a parental control plug-in based on OpenWrt, which supports app filtering for games, videos, chats, downloads, such as Tiktok, Youtube, Telegram,etc.,and support self-defined app rules, you can lean more and download firmware by visiting [www.openappfilter.com](http://www.openappfilter.com) .
3e2e38f71SDestan### Preparation
4e2e38f71SDestan- Prepare a router that supports openwrt  
5e2e38f71SDestanThere are already many routers that support the openwrt system, you can choose a simple one for installation,[See which devices support](https://openwrt.org).  
6e2e38f71SDestan- Install the openwrt system on your router  
7e2e38f71SDestanThe openwrt install tutorial can be found through the [forum](https://forum.openwrt.org).  
89e210ee9SDestan### How to compile OAF  
99e210ee9SDestan1. Prepare OpenWrt source or SDK and compile successfully   
10e2e38f71SDestan#### general steps  
119e210ee9SDestan```
129e210ee9SDestan   git clone https://github.com/openwrt/openwrt
139e210ee9SDestan   cd openwrt
14e2e38f71SDestan   ./scripts/feeds update -a
15e2e38f71SDestan   ./scripts/feeds install -a
169e210ee9SDestan   make defconfig
179e210ee9SDestan   make V=s
189e210ee9SDestan```   
199e210ee9SDestan2. Download OAF source code  
209e210ee9SDestangit clone https://github.com/destan19/OpenAppFilter.git package/OpenAppFilter    
219e210ee9SDestan3. Open the compile configuration   
229e210ee9SDestan```
232e8dd081SDestan     echo "CONFIG_PACKAGE_luci-app-oaf=y" >>.config  
249e210ee9SDestan     make defconfig  
259e210ee9SDestan```
269e210ee9SDestan4. Begin compile  
279e210ee9SDestan- Compile OAF separately  
289e210ee9SDestan```
299e210ee9SDestan     make package/luci-app-oaf/compile V=s  
309e210ee9SDestan```
319e210ee9SDestan- Compile the entire firmware  
329e210ee9SDestan```
33951e6d15SDerry     make V=s  
349e210ee9SDestan```
359e210ee9SDestan### How to install OAF  
369e210ee9SDestanIf you can't compile it yourself, you can install it directly into the released OpenWrt version  
379e210ee9SDestan1. Install an officially released version of openwrt  
389e210ee9SDestanNote that it must be the official release version,may cause failure if other versions are used, because OAF depend on the kernel version.  
399e210ee9SDestanIt is best to download through the following official address  
409e210ee9SDestanhttps://downloads.openwrt.org/releases   
419e210ee9SDestan2. Download OAF zip file  
429e210ee9SDestanFind the corresponding OAF zip file on the release page and download it, note that the plug-in version and the system version must be consistent.  
439e210ee9SDestan3. Install OAF ipks  
449e210ee9SDestanUnzip thie OAF package and then install ipks in order  
459e210ee9SDestan- kmod-oaf  
469e210ee9SDestan- appfilter   
479e210ee9SDestan- luci-compat(if the luci version is 2.0, openwrt 19.07+)   
489e210ee9SDestan- luci-app-oaf    
499e210ee9SDestan- luci-i18n-oaf-zh-cn(Chinese Language Pack, optional)  
509e210ee9SDestan
519e210ee9SDestan### Notice
52c87114ffSderryIf there is no version you need, you need to compile and generate it yourself, and I will release more architecture ipks later. 
53e2e38f71SDestan
54e2e38f71SDestan
55