Skip to content

mrFallon/luci-macblock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

luci-macblock

Quick temporary WAN MAC Block for OpenWRT LuCI web UI

Only for nftables (OpenWRT v22 and upper). Optimized for phone view.

Build with OpenWrt SDK

Place this directory under package/luci-macblock inside your SDK/buildroot and run:

git clone https://github.com/mrFallon/luci-macblock.git package/luci-macblock
make defconfig
make package/luci-macblock/compile -j$(nproc)

Artifacts will appear under bin/packages/*/*/.

HowTo delete rules for group in single string

nft -a list chain inet fw4 raw_prerouting | grep -F '"fw4mb_GroupNAME"' | sed -n 's/.*# handle \([0-9]\+\)$/\1/p' | xargs -r -n1 nft delete rule inet fw4 raw_prerouting handle

HowTo schedule block

You can use cron with command in executed commands and unblock using command upper

Sreenshots

Default bootstrap theme OpenWRT2020 theme
Clipboard_08-22-2025_01 Clipboard_08-22-2025_02

About

Quick temporary MAC Block for OpenWRT LuCI web UI

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors