OpenWRT is a Linux firmware for routers, allowing custom firewall configurations using iptables or nftables.


opkg update
opkg install iptables
/etc/init.d/firewall restart
    

Configuration: Edit /etc/config/firewall or use LuCI web UI under Network → Firewall to manage rules.

Availability: Linux-based embedded devices only.