1
Tutorials and FAQs / Re: Using OPNsense with seperate Layer3 Switch, SVI, and Routing
« on: September 30, 2021, 04:27:16 pm »
After a few days full of attempts, the solution was pretty basic, by just reading carefully the help I solved it.
The Outbound rule should be configured:
Hybrid outbound
And a rule for each VLAN:
Interface: WAN
Source: 192.168.41.0/24
NAT Address: Interface address
and
Interface: WAN
Source: 192.168.42.0/24
NAT Address: Interface address
Outbound NAT only controls what happens to traffic as it leaves an interface. It does not control the interface though which traffic will exit the firewall. That is handled by the routing table (Static Routes) or policy routing (Policy routing).
The Outbound rule should be configured:
Hybrid outbound
And a rule for each VLAN:
Interface: WAN
Source: 192.168.41.0/24
NAT Address: Interface address
and
Interface: WAN
Source: 192.168.42.0/24
NAT Address: Interface address
Outbound NAT only controls what happens to traffic as it leaves an interface. It does not control the interface though which traffic will exit the firewall. That is handled by the routing table (Static Routes) or policy routing (Policy routing).