Firewall Group for LAN

Started by 9axqe, July 31, 2023, 04:09:49 PM

Previous topic - Next topic
I am trying to set up a firewall group for my LAN. Both interfaces work, plugging a device provides DHCP in the appropriate range of IP of the LAN subnet (I picked two different IP ranges for each interface)

LAN1 has IP 192.168.1.1
LAN2 has IP 192.168.1.2

problem: when plugged into LAN2, I cannot access the web interface under 192.168.1.1 somehow. I can't even ping it.

Both interfaces are in a group, hence they share firewall rules.

Any idea what I could have forgotten? I also am not sure where it's defined which IP the web GUI is reachable under.

What are you attempting to do?  Is there a reason to use two separate interfaces instead of LAGG, Bridge, or a separate switch?

How did you set up the firewall group and rules?

You cannot have one interface with 192.168.1.1/24 and another with 192.168.1.2/24. You need to create a LAN bridge.

https://docs.opnsense.org/manual/how-tos/lan_bridge.html
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Quote from: Patrick M. Hausen on July 31, 2023, 04:23:37 PM
You cannot have one interface with 192.168.1.1/24 and another with 192.168.1.2/24. You need to create a LAN bridge.

https://docs.opnsense.org/manual/how-tos/lan_bridge.html

I was assuming they meant 192.168.1.1 and 192.168.2.1 but was waiting for confirmation and more info. :)

Quote from: CJ on July 31, 2023, 04:19:34 PM
What are you attempting to do?  Is there a reason to use two separate interfaces instead of LAGG, Bridge, or a separate switch?

How did you set up the firewall group and rules?

I have the OPNsense router and next to it there is:
powerline adapter (single ethernet box)
Home Automation bridge (must stay here, otherwise some smart home devices loose the DECT ULE connection)

I could of course buy a small switch, but why should I, there are 4 ports on the DEC695.

Quote from: Patrick M. Hausen on July 31, 2023, 04:23:37 PM
You cannot have one interface with 192.168.1.1/24 and another with 192.168.1.2/24. You need to create a LAN bridge.

https://docs.opnsense.org/manual/how-tos/lan_bridge.html

Ah, that was the issue. Ok, I'll attempt to create a bridge then.

thank you!

LAN bridge seems to work, last question, about firewall rules:

I assume they should all be applied to the bridge interface right, not the physical interfaces? (assuming I have the same firewall requirements for all interface member of the LAN bridge)

Yes, assign "LAN" to the bridge interface and the firewall rules to "LAN". Make sure to set the two tunables from the documentation.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

I never replied, but this worked, thanks!