[Durham] Port forwarding via two ADSL lines

Richard Patterson Richard at helpquick.co.uk
Wed May 25 20:10:52 UTC 2011


> -----Original Message-----
> From: Martin Ward [mailto:martin at gkc.org.uk]
> Sent: 25 May 2011 17:55
> To: durham at mailman.lug.org.uk
> Cc: Richard Patterson
> Subject: Fwd: Port forwarding via two ADSL lines
> 
> 
> I have just had another ADSL line installed. Both lines have a static IP address,
> so I decided to set up port forwarding on both routers to the same machine
> (my main file server).
> The idea is that if one ISP goes down, I can still access my home machine via
> the other ISP by using the other IP address:
> and similarly email will still get through if I set the new IP address as a backup
> MX host.
> 
> But this doesn't work: it seems that the server will only accept forwarded
> connections that come in through its default outgoing route.

I assume you have both routers on the same network, such as the first router has say 192.168.1.1, and the second on 192.168.1.2, with your server being 192.168.1.10 

If on the server, you add an IP alias such as 192.168.1.11 (ifconfig eth0:1 192.168.1.11)... then you can add another default route via the alias interface eth0:1 (route add 0.0.0.0/0 gw 192.168.1.2 dev eth0:1)

You should then find that connections coming in on eth0:1 will go back out on eth0:1

Give it a try and let us know how it pans out...

Cheers

Richard


Richard Patterson
Mobile: 07921 512 459



HelpQuick Ltd
The headquarters of
innovative IT solutions

Office: 0191 2582888, Fax: 0191 6408666
Web: http://www.helpquick.co.uk

Have you used our services? Why not write a review on the FreeIndex website

HelpQuick Limited, Registered in England & Wales, Company number
5334746, Vat registration number: 859 6133 89, Registered office:
18 Camden Square, North Shields, NE30 1NR, UK









More information about the Durham mailing list