08-20-2013 08:56 AM - edited 03-04-2019 08:49 PM
So I'm having issues with mail being rejected due to mx records and traffic being sent out the interface using the main IP. The main IP is .91 and it needs to be sent out as the secondary IP which is .90(dns mx record). I know I could just change the mx record to the main IP, but I would rather not.
Is there any way to force a router to use a secondary IP (WAN) to send certain traffic, say if it is sourced from a specific address on the LAN?
08-20-2013 04:40 PM
Cisco routers will always send out as the primary address, and afaik there's no way to force it to use a secondary address as the source. Is there anything stopping you from switching the two addresses and make .90 the primary and .91 the secondary?
*** edit ***
I should clarify my answer. You can nat the traffic from your server as whatever address you want. Traffic sent directly from the router will use the primary address. You can nat your mail server out as the secondary address if needed.
HTH,
John
*** Please rate all useful posts ***
08-21-2013 02:43 AM
if You have pool of ip address assigned from your ISP.
like your want IP subnet was /248
then u can use other ip from that pool it will work.
Jawad
08-21-2013 07:08 AM
So basically all I really need to do is create a static NAT from my internal mail server to the external IP I want to use as what would become the Source IP for that traffic (.90 in my case)? I'll give that a shot and let you know. Seems pretty simple now that I think of it.
08-08-2018 04:59 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide