Author |
Message |
tombolt
Spends far too much time on here
Joined: Fri Apr 24, 2009 8:38 am Posts: 2967 Location: Dorchester, Dorset
|
Hope I can explain this properly! Is it possible to port forward from two different internet connections to one machine? Basically, I am about to change my ADSL line. I have my domain mx settings to my mail server on the current one. I will get the new connection which will have a different IP address. I assume there will be some crossover while my new mx settings are propagating, therefore I want both connections pointing to the same machine. I assume this will be possible?
|
Thu Jan 05, 2012 11:24 am |
|
 |
JJW009
I haven't seen my friends in so long
Joined: Thu Apr 23, 2009 6:58 pm Posts: 8767 Location: behind the sofa
|
It's not that simple. Although you can give both routers a port-forward to the same machine, that server can only really have one default gateway.
If you know the originating external IP then you can set a static return path, so for example you could set a VPN to work over one route and browsing to go over the other, but in your case I guess you won't know where the traffic is going to come from?
The only thing you can try is adding a second default gateway, but it will cause a lot of timeout issues.
Alternatively, if you have a router with two WAN ports then that should work because the router will know about the NAT sessions. This is the only good way to do it.
_________________jonbwfc's law: "In any forum thread someone will, no matter what the subject, mention Firefly." When you're feeling too silly for x404, youRwired.net
|
Thu Jan 05, 2012 1:17 pm |
|
 |
tombolt
Spends far too much time on here
Joined: Fri Apr 24, 2009 8:38 am Posts: 2967 Location: Dorchester, Dorset
|
Cheers, I hadn't thought of the default gateway, doh!
|
Thu Jan 05, 2012 2:00 pm |
|
 |
tombolt
Spends far too much time on here
Joined: Fri Apr 24, 2009 8:38 am Posts: 2967 Location: Dorchester, Dorset
|
It is running os x server and that can have two ethernet connections I think, but how to set that up and how it works, I don't know.
|
Thu Jan 05, 2012 2:05 pm |
|
 |
JJW009
I haven't seen my friends in so long
Joined: Thu Apr 23, 2009 6:58 pm Posts: 8767 Location: behind the sofa
|
Two Ethernet connections might not help.
Your basic problem is that the server needs to make a mental note of where the connection came in, and to send the reply down the same way. A load balancing router is pretty much designed for the job, but I'm afraid I don't know much about OS X and what it can do. Maybe there's an app for that.
_________________jonbwfc's law: "In any forum thread someone will, no matter what the subject, mention Firefly." When you're feeling too silly for x404, youRwired.net
|
Thu Jan 05, 2012 6:14 pm |
|
 |
tombolt
Spends far too much time on here
Joined: Fri Apr 24, 2009 8:38 am Posts: 2967 Location: Dorchester, Dorset
|
Well I think each connection has its own ip address and possibly gateway. I'll need to dig around.
|
Thu Jan 05, 2012 6:40 pm |
|
 |
saspro
Site Admin
Joined: Thu Apr 23, 2009 5:53 pm Posts: 8603 Location: location, location
|
Are you changing ADSL providers on the smae line or is it a new line for the new connection?
Either way it's fairly easy to do.
|
Tue Jan 10, 2012 2:55 pm |
|
 |
tombolt
Spends far too much time on here
Joined: Fri Apr 24, 2009 8:38 am Posts: 2967 Location: Dorchester, Dorset
|
New line.
|
Tue Jan 10, 2012 3:59 pm |
|
 |
saspro
Site Admin
Joined: Thu Apr 23, 2009 5:53 pm Posts: 8603 Location: location, location
|
Here's what I would do.
Leave the existing A record in place. Create a new A record (mail2.domain for example) going to the new IP Add that A record as a 2nd MX record with a priority of 50 (any number as long as it's bigger than your current record)
If you've got a new router then configure it up with the same LAN IP as the old one (& relevant static PAT entries). If reusing the old router you'll have to wait until the new line is active.
When the new line is active simply unplug the old router, plug the new one (connected to the new line) in it's place. Test it then modify your existing A record to point to the new IP.
Job done with no lost email. You'll just need to give people who access mail through imap or pop services etc the new details (or the new webmail address). Remember to get rDNS set on the new line asap
|
Wed Jan 11, 2012 1:19 pm |
|
 |
tombolt
Spends far too much time on here
Joined: Fri Apr 24, 2009 8:38 am Posts: 2967 Location: Dorchester, Dorset
|
Brilliant, thanks for that.
|
Wed Jan 11, 2012 2:00 pm |
|
|