LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-22-2009, 12:21 PM   #1
Jouxte
LQ Newbie
 
Registered: Aug 2009
Posts: 7

Rep: Reputation: 0
Accepting connectionx from 2 DSL lines


Hi all,

we have a 2 DSL connections at the office. On is the "main" and the other is the "backup". If I open a port on both DSL routers (for example port 5900 to 192.168.1.10) I can then use this port to reach a Windows computer (with vnc in my example). Nice, I then can log in my Windows server from either DSL connection. If one is out of order, the other one saves me half an hour driving by night.

But for a Linux server, this is another story :-)
If I open the ssh port on both DSL routers, both pointing to my Linux server, I can only log in from the "main" DSL connection. I presume because this is the default route, then the packets from the backup connection reach Linux, but Linux send answers using the main connection. Then my external computer don't understand because the packets are NATed (the source ip address is unexpected, in the point of view of the external computer).

I tested to add 2 default routes. No success. Only the first one is used.

My question is: how to tell Linux to send packets to the same router they come ?
 
Old 10-25-2009, 04:15 AM   #2
janoszen
Member
 
Registered: Oct 2009
Location: Budapest
Distribution: Mostly Gentoo, sometimes Debian/(K)Ubuntu
Posts: 143

Rep: Reputation: 22
Source routing

I guess what you need is source routing. You must configure your routes per connection and drop the default route.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
2 dsl lines into Slackware Box zevedy Linux - Newbie 3 08-05-2009 06:59 AM
2 DSL lines varun_saa Fedora 1 02-05-2006 06:50 AM
combining multiple dsl lines BaudRacer General 3 01-12-2004 09:15 AM
2 dsl lines to server +routing Oak3 Linux - Networking 1 01-09-2004 05:59 AM
Can I use one proxy server for both of my leased and DSL lines ? nuwanguy Linux - Networking 0 07-24-2003 11:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration