OPNsense Forum

Archive => 24.1, 24.4 Legacy Series => Topic started by: cambrbr on July 23, 2024, 01:29:09 PM

Title: no route to internet from downstream gateway
Post by: cambrbr on July 23, 2024, 01:29:09 PM
I have a few VLANs in my homelab that need to be able to reach the internet (diagram is in the attachment)

My test "server" VLAN is sitting behind a router that is NOT my opnsense box. I created a transit vlan between that router and my opnsense firewall. I put in the correct route back to the 192.168.130.0 network through the 172.16.0.2 gateway in the transit network (otherwise no ping reply) and I have opened up the firewall to allow this traffic to go anywhere when originating from the transit network.

When I put a network client into my 192.168.130.0 subnet, I can ping the default gateway in that subnet (192.168.130.1), and I can ping the firewall interface of the transit subnet I created (172.16.0.1).

However, a host in 192.168.130.0/25 cannot reach (not even ping) the internet. The firewall log shows traffic is allowed to pass, but I don't get a ping reply.

Any other network I created that is "'directly" attached to the OPnsense FW works flawlessy (e.g. the services network).

Am I missing a route or default gateway somewhere ? Is it because the 192.168.130.0 network is not "known" to OPnsense ?

(PS: I'm not a routing specialist, I'm a hobbyist so do bear with me when I ask something stupid).

Title: Re: no route to internet from downstream gateway
Post by: Seimus on July 23, 2024, 02:06:16 PM
Do you have NAT created for that network in order to reach Public destined adresses?

Regards,
S.
Title: Re: no route to internet from downstream gateway
Post by: cambrbr on July 23, 2024, 04:18:31 PM
NAT is set to "Automatic outbound NAT rule generation".
Perhaps a manual NAT rule needs to be created ?
Title: Re: no route to internet from downstream gateway
Post by: Patrick M. Hausen on July 23, 2024, 04:22:36 PM
Yes. Automatic takes care of directly connected interfaces only.
Title: Re: no route to internet from downstream gateway
Post by: cambrbr on July 23, 2024, 05:21:00 PM
Thanks to the both of you. I switched to hybrid mode for NAT and added a manual rule for the 192.168.130.0 network.

Works now :-)
Title: Re: no route to internet from downstream gateway
Post by: Seimus on July 23, 2024, 05:47:16 PM
Great,

please adjust your topic subject with [SOLVED] front of it ;)

Regards,
S.