Community discussions

 
User avatar
mrakar
just joined
Topic Author
Posts: 13
Joined: Fri Jun 29, 2012 4:33 pm
Contact:

how to force protocol to exit on precise IP on multiIP WAN

Wed Nov 28, 2012 10:24 am

Another question:

I have setup in which I have multiple WAN links (which are properly mangled, nat-ed).
Every WAN link have more then one public IP address.

Now, what I want is to make sure that when I try to send SMTP traffic from my mail server, it goes from particular WAN link and particular IP adress from that WAN link to the outside world.

Any ideas on how to do that?

In my current setup it simply goes on my main internet link and I do not see how can I control that. (WAN links are configured to be backup of one another, not as load balancing links)
 
User avatar
nickshore
Member
Member
Posts: 473
Joined: Thu Mar 03, 2005 4:14 pm
Location: Suffolk, UK.
Contact:

Re: how to force protocol to exit on precise IP on multiIP W

Wed Nov 28, 2012 11:16 am

Mark the SMTP connection.
Put a route mark on the connection.
Add a route to the routing table using the route mark.
Add a srcNAT rule for SMTP from that server IP

Hope that helps

Nick.
Nick Shore MTCNA MTCWE MTCRE MTCINE MTCTCE
LinITX.com - MultiThread Consultants
Get your MikroTik RBs and Training: http://linitx.com/brand/mikrotik
Official UK MikroTik Distributor
IRC chan: #routerboard on irc.z.je (IPv4 and IPv6)

Who is online

Users browsing this forum: MSN [Bot] and 102 guests