OPNsense Forum

Archive => 17.7 Legacy Series => Topic started by: mestafin on January 30, 2018, 02:49:10 pm

Title: Multi-WAN and 1:1 NAT
Post by: mestafin on January 30, 2018, 02:49:10 pm
HI,

I have two WAN connections, WAN0 and WAN1,  with different sub-nets on each WAN connection.

The gateway for WAN1 is the default gateway.

Internal LAN devices with 1:1 NAT rules defined with public ip addresses from WAN1 sub-net, correctly uses the correct public IP from WAN1 as defined in the 1:1 NAT rule.

The problem is with LAN devices with 1:1 NAT rules defined on public IP addresses from the WAN0 sub-net.

Despite the 1:1 NAT rule, traffic from these devices are still routed via the default gateway for WAN1 (the system default gateway) and not via public ip as defined in the 1:1 NAT rule.

This is for traffic that originates on the LAN device. Traffic that originates from the internet is correctly routed via WAN0 to the LAN device as per the 1:1 NAT rule.

How do I fix this please or what am I missing?
Title: Re: Multi-WAN and 1:1 NAT
Post by: mestafin on January 31, 2018, 10:16:57 am
Anybody with any ideas please?
Title: Re: Multi-WAN and 1:1 NAT
Post by: hutiucip on February 01, 2018, 11:53:30 am
Change Outbound NAT rules generation from automatic to hybrid, and manually add NO NAT rules for the intended IP address pool(s).

Firewall: NAT: Outbound

Hope it helps... :)