Added "reject anyzone to thisdevice" now everythings broken

I created this rule

  1. accept lan to this device from some MACs at top
  2. from reject anyzone to this device at bottom

Now Some devices can't get IP via DHCP
if they can some don't get internet
and non can access web page htttps://192.168.1.1 or via SSH.

Any way to fix it before I reset it

OpenWrt v23.05.2

Try entering failsafe mode.

1 Like
  • Are you saying you made two rules?
  • Can you show a screenshot or the actual rule or paste it from /etc/config/firewall?

It's not clear what you're saying - given you listed both "accept" and "reject".

Yes:

  • remove the rule; or
  • :bulb: connect from the MAC you added to the firewall
1 Like

Due to the chain structure, "any zone" rules are processed before specific zone ones, so the reject one will effectively take precedence over the lan one, regardless of the rule ordering.

5 Likes

Where are firewall rules stored ? /etc/config/firewall seems to have default rules. I am in failsafe mode the power led it blinking fast

Did you run mount_root first?

3 Likes

Do you mean rules where any zone is as in "from any zone" ?
I have reject lan to any zone and my internet works

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