When I start the firewall some traffic is not forwarded within lan zone.
Setup:
OpenWRT 25.12.5 on a Netgear R7800
Interfaces: lan bridge and wifi networks attached, dmz and internet. All on separate subnets
Zones: internet, dmz and lan
Default policies: drop
lan to dmz and internet: input, output, forward: accept, accept, accept
dmz to internet: input, output, forward: drop, drop, accept
internet to dmz: input, output, forward: drop, drop, accept
Also have some traffic rules. Input and output accept only.
Why is traffic blocked within the lan zone? Can this be solved?
How did you arrive at this configuration? (did you do this on your own, with help from others, guides on the web, AI assistance??)
What are your goals with the firewall?
Can you give us specific examples of the traffic that is seemingly blocked within the lan zone? (i.e. source address, destination address, method of testing/protocol)?
How are the source and destination hosts physically connected to the network (i.e. wifi, ethernet; are there any ethernet switches in the setup and/or any APs aside from the R7800)? a network topology diagram would be really useful.
And let's see the rest of the config.
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button (red circle; this works best in the 'Markdown' composer view in the blue oval):
Remember to redact passwords, VPN keys, MAC addresses and any public IP addresses you may have:
ubus call system board
cat /etc/config/network
cat /etc/config/wireless
cat /etc/config/dhcp
On my own. What is so unusual about this firewall?
What I did in the web interface was only setting default policy to DROP and edited the rules for zones at the bottom in General Settings.
Finally I added traffic rules (input/output) for NTP, HTTP (for package updates), ICMP and remote logging.
This R7800 OpenWRT router does not host any service, its only role is router and firewall on my home lan.
The firewall connects the wired internet, dmz and lan. Wireless is part of the lan bridge so I can use clients on lan via wifi. A unmanaged switch is connected to the lan port of the R7800.
All the interfaces have an different IP address (192.168.x.y). Here x is different for internet, dmz and lan. Subnetmask is /24.
There is no public IP address on this router. The wired internet port (port 1 of the R7800) is connected to an OPNsense server which connects to my ISP.
The internet zone should be able to access dmz but not lan. dmz should be able to access internet but not lan. And lan should be able to access dmz and internet.
Internet to lan should only be established, related connections.
The internet and dmz has to use a different dns server.
When updating OpenWRT the interface used is in the internet zone and has to use a different dns server. Not my private one on my lan but a public one.
Yes. Everything should be blocked except what what I want to be allowed.
Yes. My thought was I specified the firewall zones and how traffic is allowed between firewall zones.
So I don't have to specify SRC or DST. because traffic on one interface is all from one subnet.
Specifying SRC and DST addresses felt unnecessary.
I don't understand your rationale. The rules are "exceptions" to any zone rules. Hence specifying 'any' would have a wider scope than you intended.
Also, I don't understand the subnet discussion when mentioning firewall zones.
Lastly, I didn't mean specifying SRC or DST subnets, I meant specifying SRC or DST zones. Failure to specify a SRC [zone] means Any [zone] is the source.
When I set the default policy to drop then there has to be exceptions for outgoing traffic (ntp, https, icmp).
In those rules firewall zones are specified (from this device to internet).
And under General Settings the zone forwards are specified.
As I understand firewalls when you set default policy to ACCEPT the firewall is wide open to everything.
To me it is more logical to block everything and then allow some traffic instead of allow everything and block bad traffic. With the latter there is a big chance I forget to block bad traffic I didn't think of.