Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.

aw



273 posts

Ultimate Geek
+1 received by user: 7

Subscriber

Topic # 13257 30-Apr-2007 22:51
Send private message

Hi there!

I'm trying using two ISPs together (Xnet and Woosh) to give some redundancy to my net connection, both for outgoing and incoming traffic.

Outgoing is sorted - the usual default route goes to my ADSL router with internal IP 192.168.0.1. The ADSL router itself has been set up with a default route pointing to 192.168.0.2 (ie back into the LAN) which is another router which talks PPPoE to the Woosh modem plugged into it.

So if the ADSL line is down, then the ADSL router sends outgoing traffic via the Woosh link. Eventually I'll set it up gc_timeout on my Linux boxen to improve on this a bit.

However it isn't working how I'd like it to with incoming traffic.

I use SSH to get into my machine remotely, and there's a webserver which can be seen by a couple of clients of mine. I want to be able to get in using the public IP of either connection. Trouble is, when the incoming connection comes via Woosh the server tries to route the reply out via the ADSL as it's the default route.

I can find online some stuff regarding using iptables and iproute2 to tag and route traffic but it seems to depend on having multiple interfaces on the server (eth0, eth1) whereas with my setup there's just eth0 and then two routers on that LAN.

Anyone got any tricks for routing traffic out on the same connection it came in on? Google hasn't been as much my friend as I'd hoped!

Thanks

Andrew

Create new topic
21300 posts

Uber Geek
+1 received by user: 4299

Trusted
Subscriber

  Reply # 68998 1-May-2007 00:36
Send private message

Second IP on the nic in a different subnet and put one of your external routers in that network. Seems to work mostly when I tried it, but then traffic went out on both of them. I didnt have 2 connections for long enough to bother trying to sort it any more then that.





Richard rich.ms

836 posts

Ultimate Geek

Trusted

  Reply # 69002 1-May-2007 01:02
Send private message

Thats an odd setup, are you sure it actually routes out the ADSL when this is up? Because it should not be from your description, if the default route points to the Woosh router then this should take precidence over any implicit outbound route if a PPPoA connection is up.

Anyhow... you could try double NAT if your router supports it. Then the incoming packet source address is the source routers internal IP, your web box will route back to the correct router and then this will double NAT back again. Simple, but you normally need a higher end router to support it.

I presume you could probably get a linux box to sit inbetween the existing routers and the Web box and do this, however it wouldnt be simple and is asking for trouble.

aw



273 posts

Ultimate Geek
+1 received by user: 7

Subscriber

  Reply # 69442 3-May-2007 20:32
Send private message

Hi Fraktul

Yes it does indeed work - the ADSL router assigns a higher metric to the Ethernet router than to its own PPP connection, so the PPP route takes precedence when it exists.

I might try richms' idea of a second subnet on the network and see where that gets me. The Ethernet router is not up to double NATting I'm afraid

Thanks for the replies :) I'll try it this weekend and post how it goes.

Andrew

Create new topic

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Intel introduces new NUC kits and NUC mini PCs
Posted 16-Aug-2018 11:03


The Warehouse leaps into the AI future with Google
Posted 15-Aug-2018 17:56


Targus set sights on enterprise and consumer growth in New Zealand
Posted 13-Aug-2018 13:47


Huawei to distribute nova 3i in New Zealand
Posted 9-Aug-2018 16:23


Home robot Vector to be available in New Zealand stores
Posted 9-Aug-2018 14:47


Panasonic announces new 2018 OLED TV line up
Posted 7-Aug-2018 16:38


Kordia completes first live 4K TV broadcast
Posted 1-Aug-2018 13:00


Schools get safer and smarter internet with Managed Network Upgrade
Posted 30-Jul-2018 20:01


DNC wants a safer .nz in the coming year
Posted 26-Jul-2018 16:08


Auldhouse becomes an AWS Authorised Training Delivery Partner in New Zealand
Posted 26-Jul-2018 15:55


Rakuten Kobo launches Kobo Clara HD entry level reader
Posted 26-Jul-2018 15:44


Kiwi team reaches semi-finals at the Microsoft Imagine Cup
Posted 26-Jul-2018 15:38


KidsCan App to Help Kiwi Children in Need
Posted 26-Jul-2018 15:32


FUJIFILM announces new high-performance lenses
Posted 24-Jul-2018 14:57


New FUJIFILM XF10 introduces square mode for Instagram sharing
Posted 24-Jul-2018 14:44



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.