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

aw

286 posts

Ultimate Geek


#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
richms
28168 posts

Uber Geek

Trusted
Lifetime subscriber

  #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



Fraktul
836 posts

Ultimate Geek

Trusted

  #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

aw

286 posts

Ultimate Geek


  #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





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









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.