How to force packets to be sent using source IP of secondary address

Unanswered Question
Aug 20th, 2013
User Badges:

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?

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
jawad-mukhtar Wed, 08/21/2013 - 02:43
User Badges:
  • Silver, 250 points or more

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

John Blakley Tue, 08/20/2013 - 16:40
User Badges:
  • Purple, 4500 points or more

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 ***

Michael Underwood Wed, 08/21/2013 - 07:08
User Badges:

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.

Actions

This Discussion

Related Content