[solved] NAT on 750 with multiple clients and multiple gw's

I have 1 client on my RB750, and I’m doing NAT.

WAN interface is the 1st port and the client LAN(192.x.x.x IP space) is plugged in on the 2nd interface. I have src/masqueraded-nat set up for them and the out-interface is the WAN-port(1st interface).

Now- I want to add a second client LAN(a different client with 10.x.x.x IP space) on this same RB. This client’s LAN will be plugged in on the 3rd interface and then I want to use the 4th interface for this new client’s WAN interface(this will be connected to a different ISP with static, public address-range routed to it) and also do NAT for them on that interface.

Is this possible and how can I do this?

Thank you…

What a low, low worm for replying to my own post :wink:
Nway- managed to get this sorted. Thanks also to Sergejs for - rather quickly- answering my email and informing me that it’s possible.

Here’s how I went about doing it:

  1. I de-bridged all interfaces. (tx, Serge)
  2. Configured src/masq. NAT based on source network(192.xxx and 10.xxx) and specified out-interface as port 1 and port 4 for each client(the WAN ports for both clients).
  3. Mangled(prerouting) packets based on src addy and route-marked appropriately.
  4. Added 2 static ‘default’(dest. - 0.0.0.0/0) routes, based on abovementioned route-marks; specifying ‘Gateway’ and ‘Interface’ as appropriate for each client’s WAN port(port 1/port 4).

Clean-up:

  1. Removed previous default NAT rule.
  2. Removed previous default route.

Thanks and havva cuppa…

Helmuth Kisting

For a complete introductory tutorial on policy routing (that’s what you did), you can see: http://blog.butchevans.com/2008/09/mikrotik-policy-routing-implementation-example/