How do I block MAC address of any device connected to my router via LuCI.
What do you want to block? Access to the router? If so, all services or just the web interface? Or is it access to the internet and/or other networks?
Also, blocking by MAC is not a great approach. It's far too easy to circumvent.
I want to block some mobile phones and laptops that connect to my router
Block them from what?
I want to block them from connecting my router wifi and switch.
The best approach would be to change your WiFi details. If the users of the devices have the current ones then it would be trivial to circumvent a MAC block
Thank you for your reply..
But I think my question was clear, and your answer was a little far from what I was asking.
You can add a firewall rule (ensure it's a traffic rule and not a port forward) blocking access to the router from the relevant MAC addresses. But don't be surprised when it doesn't solve the issue.
Thank you..
I'm going to try this rule, Please correct my if there is a mistake?
/etc/config/firewall:
config rule
option src lan
option dest wan
option src_mac 00:00:00:00:00:00
option target REJECT
This would block access to the wan zone, not the router. Leave this out to block access to the router.