OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: Aerowinder on March 22, 2021, 03:32:07 PM

Title: LAN static routes not returning internet traffic
Post by: Aerowinder on March 22, 2021, 03:32:07 PM
Greetings,

I have a routed network on the LAN side of my OPNsense box. There are multiple routers on this network, and they all use the single OPNsense box to get to the Internet via the LAN interface. Naturally, this doesn't work out of the box, I need to set up static routes.

I made another gateway, the address is the router that's upstream of OPNsense on the same /24. All created static routes point to my newly created gateway.

From my "remote" network, I can ping to my OPNsense box.
From my OPNsense box, I can ping to my "remote" network.
From my OPNsense box, I can ping to the Internet.
From my "remote" network, I cannot ping to the Internet.

Looking in the firewall rules, nothing is being blocked. I can see traffic passing coming from my IP address, but it is not returning (not showing up in the firewall logs).

What am I missing? I'm a pfSense convert (you can guess why), and this exact setup worked fine on pfSense. It has to be something that's not automatically configured and I just don't know what it is.
Title: Re: LAN static routes not returning internet traffic
Post by: lfirewall1243 on March 22, 2021, 09:06:54 PM
Network plan please
Title: Re: LAN static routes not returning internet traffic
Post by: Aerowinder on March 23, 2021, 12:02:36 AM
L3 networks (multiple routers, multiple networks) - OPNsense - Internet

The issue was lack of outbound NAT rule. Once I created an outbound NAT rule with all of my static routes, it started working. I actually used an alias to include them all in one rule.