Configuration multi LAN to 1 WAN

Started by Halbundyh, November 24, 2022, 09:00:56 AM

Previous topic - Next topic
Hi everyone,

I am using at this moment a Zyxel that I wish to replace by OPNsense. Today, I have 4 LAN networks accessing internet through 1 WAN (with 5 public IPs pool) and each of the LANs is set to go out with a different public IP (next hop).

I have set up my OPNSense with the same firewall rules as my Zyxel and recreating the configuration WAN/LAN (trying to find matches between Zyxel and OPNSense menus)

The WAN interface is set as PPPOE.

During the last test pluging the OPNSense instead of the Zyxel I have these issues :

LAN 1 : 10.0.0.0/8 => WAN OK
LAN 2 : 192.168.1.0/24 => WAN KO
LAN 3 : 192.168.5.0/24 => WAN KO
LAN 4 : 128.0.0.0/16 => WAN KO

Any ideas why just one of my LANs can access internet ?

Another issue : I have configured in "INTERFACES/VIRTUAL IPs" my 5 public IPs attached to the WAN interface and in "FIREWALL/NAT/OUTGOING" I created a rule for each LAN like :

Interface        Source Address           Destination Address        NAT Address
  WAN              LAN net                        WAN net                        1.1.1.1


But the public IP I see (on monip.org for example) is 1.1.1.2

Is it the right way to configure virtual IP and to specify a different public IP for each LAN ?

Thank you for your replies.