2nd LAN Port has no Internet / Update

Started by kc9joy, April 27, 2026, 12:59:07 AM

Previous topic - Next topic
April 27, 2026, 12:59:07 AM Last Edit: April 27, 2026, 03:13:12 AM by kc9joy
   Setup is a dell computer with 2 network cards each dual nic and the default onboard nic.  I have one set (wan, lan) working just fine.  I added another port into the setup as a second lan connection with its own ip address and dhcp.  Made sure to add a rule for pass in the fire wall.  So where I am running into the issue is that the second lan does not have internet access.  It does issue the ip correctly to the machines that are connected.  Not sure what I am missing.

Hi,

It sounds like a DHCP range is missing for the second LAN interface.
Take a look at the relevant sections in Dnsmasq.
Also check the interface binding settings for Dnsmasq and Unbound.
I'm not entirely sure about this, but you might need to add a rule for the DNS destination "this firewall" on UDP port 53 on the second interface.

Quote from: kc9joy on April 27, 2026, 12:59:07 AMMade sure to add a rule for pass in the fire wall.
The easiest thing to do when creating your second network is to copy the 'Default Allow Any to Any' Firewall Rules from the first network that OPNsense creates by default called LAN to the Firewall Rules of the second network which I will call LAN2 for the sake of simplicity.

So just copy those two rules from LAN to LAN2 and you should have Internet Access by default!

QuoteSo where I am running into the issue is that the second lan does not have internet access.
It does issue the ip correctly to the machines that are connected.
If you are sure you have done the above then compare the Firewall Rules of LAN with those for LAN2 and you should spot the difference between the two :)
Weird guy who likes everything Linux and *BSD on PC/Laptop/Tablet/Mobile and funny little ARM based boards :)

I went back through my firewall and interfaces and rebuilt the ports.  I now have been able to get the internet to work.  Thanks for the help