Download the latest OAF app feature library for your OpenWrt router.
This is some app feature library I extracted, which can be used as a reference. You can modify it based on this feature library.
Last updated: 2025/07/03
DownloadYou can download and install the latest OpenWrt firmware, and then install the OAF plug-in directly. Visit the GitHub project for more details.
Download(OpenWrt24.10.2)Learn how to create and customize your own app feature library
It is recommended to perform extraction and packaging operations under Linux system to avoid file format compatibility issues that may be caused by Windows system.
mkdir feature
tar -zxvf feature-xxx.tar.gz -C feature
The feature description file is feature/feature.cfg
. You can add APP descriptions in this file.
$id $name:[$proto;$sport;$dport;$host url;$request;$dict]
Generally, we can block apps through domain names. Below are reference features for common apps:
#class chat 1 Chat
1101 Facebook:[tcp;;;facebook.com;;]
1102 Whatsapp:[tcp;;;whatsapp;;]
1103 X:[tcp;;;twitter.com;;]
1104 Instagram:[tcp;;;instagram.com;;]
1105 VK:[tcp;;;vk.com;;]
1106 Line:[tcp;;;line;;]
1107 Snapchat:[tcp;;;snapchat.com;;]
1108 Tinder:[tcp;;;tinder.com;;]
#class video 3 Video
3101 YouTube:[tcp;;;youtube;;]
3102 Tiktok:[tcp;;;tiktok;;]
3103 NetFlix:[tcp;;;netflix;;]
3104 Vimeo:[tcp;;;vimeo;;]
3105 DailyMotion:[tcp;;;dailymotion;;]
3106 Hulu:[tcp;;;hulu;;]
3108 Twitch:[tcp;;;twitch;;]
3109 Spotify:[tcp;;;spotify.com;;]
#class shopping 4 Shopping
4101 Amazon:[tcp;;;amazon.com;;]
4102 eBay:[tcp;;;ebay.com;;]
4103 Etsy:[tcp;;;etsy.com;;]
4104 Wish:[tcp;;;wish.com;;]
Some apps may not be successfully matched and filtered through domain names. For example, Instagram also uses QUIC protocol internally. We can add filtering through protocol features.
5001 QUIC:[udp;;443;;;]
Some game apps may have private protocols, usually using UDP. We can match through L7 dictionary. Assuming a game's port is 10000, and the L7 payload header has fixed first 4 bytes: 0x1a 0x2b 0x3c 0x4d
2001 Game:[udp;;10000;;;00:1a|02:2b|03:3c|04:4d]
If we don't care about specific games, we can use port range blocking. For example, block UDP ports 10000-20000:
2002 Games:[udp;;10000-20000;;;]
In summary, protocol feature description is very flexible. Define according to your needs.
${appid}.png
and place it in the feature/app_icons
directory.
After modification, we need to repackage the feature library for page upgrade. Use tar command directly. Note that feature.cfg file should be in the root directory:
tar -zcvf feature-xxx.tar.gz -C feature .
This will generate a new custom feature library file feature-xxx.tar.gz
that can be uploaded and upgraded in the App Feature page.