Time based firewall rule is not working

Below added my firewall rule:

config rule
        option name 'Filter-Parental-Controls'
        option src 'lan'
        option src_mac 'xx:xx:xx:xx:xx:xx'
        option dest 'wan'
        option start_time '05:30:00'
        option stop_time '07:00:00'
        option weekdays 'Mon Tue Wed Thu Fri'
        option target 'REJECT'

I do not see any protocol defined, probably default to All/Any but I would check anyway.
I assume this is a 24 H notation so you are only blocking in the very early morning hours.
Most clients nowadays have Random MAC address so this type of blocking could be useless

I have tried changing time but its not working and then how to block using MAC address?

You need to block in raw table without offload if you want to kill existing states. Or explicitly delete conntrack states if using offload.

1 Like

configuring protocol to "all/any" blocks everything.


1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.