Configure NAT and sublans

+-------+            +------+
| Sub1  +------------+      |
+-------+            |      |1.1.1.1  Sub1
                     |      |1.1.1.2  Sub2
+-------+            |      |1.1.1.3  Sub3
| Sub2  +------------+Router+--------------+
+-------+            | Nat  |
                     |      |
+-------+            |      |
| Sub3  +------------+      |
+-------+            +------+

I want on my switch ports, 3 different sublans {Sub1,Sub2,Sub3} with private address space (10.0.1.0, 10.0.2.0, 10.0.3.0).
The wan interface has 3 different external IPs.
I want to NAT each sublan to a different external IP.

What I've done so far.

  • 3 different VLANs with 3 different interfaces on my switch ports.
  • 3 different interfaces on the WAN port
  • Nat rules

Something does not work. Maybe, I miss what is the correct way of doing that?
Can I do something like this? Do I have to use a destination NAT?

No, Source NAT (SNAT). Refer to Network->Traffic Rules

Source NAT

Source NAT is a specific form of masquerading which allows fine grained control over the source IP used for outgoing traffic, for example to map multiple WAN addresses to internal subnets.

2 Likes