LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-24-2011, 08:13 PM   #1
sl4ck3r
LQ Newbie
 
Registered: Mar 2011
Posts: 3

Rep: Reputation: 0
2 Internet Connections With Shorewall


Hey guys,

I've got a problem that's really stumping me.

I've got a Ubuntu Server Linux router that I've got 2 internet connections hooked to. One of them is DSL and the other is cable.

What I'd like to do is have everything go through the DSL connection EXCEPT for one desktop, I'd like that system to go through cable for everything.

Here's a diagram of how I've got things set up.

http://www.tunasandwich.net/images/u...%20diagram.png

I don't have any more expansion slots on the mainboard of my server for another NIC, also I do a lot of file transferring between a laptop and the desktop I want on the cable connection so I don't want that slowing down the rest of my network.

Anybody have any ideas?

I've got both providers set up in the providers file and I've got everything going through the DSL connection right now. So far everything I've tried has stopped the desktop from connecting out at all.

Last edited by sl4ck3r; 03-24-2011 at 08:15 PM.
 
Old 03-25-2011, 09:54 AM   #2
TimothyEBaldwin
Member
 
Registered: Mar 2009
Posts: 249

Rep: Reputation: 27
Your diagram suggests the DSL connection is using both PPP and DHCP, this does not make sense.

Add an entry in /etc/iproute2/rt_tables for a new routing table. Use "ip rule" to select it based source IP of 102.168.0.20 or that assigned to eth1, and set the appropriate default route for the cable connection on the new table.

Since you are using DHCP you will need edit the DHCP client configuration.
 
Old 03-26-2011, 08:00 AM   #3
sl4ck3r
LQ Newbie
 
Registered: Mar 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Sorry for the PPP confusion, I was only meaning that the IP for my DSL connection is dynamic.

Also, I am unsure exactly what it is that I should do with the rt_tables file, also, if I add an entry to this file will it not be erased next time shorewall is restarted??
 
  


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
[shorewall]: Limiting SSH connections coralsaw Linux - Security 1 07-16-2006 07:48 AM
No Shorewall/IPtables: not inbound connections allowed psychobyte Mandriva 3 05-25-2005 01:29 AM
Suse 9.0 still refusing connections after shorewall clear and iptables -F driftindutchman Linux - Security 1 02-22-2004 11:56 PM
Suse 9.0 still refusing connections after shorewall clear and iptables -F driftindutchman Linux - Networking 0 02-22-2004 10:27 PM
shorewall dropping/rejecting wanted connections (squid/webmin) win32sux Linux - Networking 2 08-01-2003 02:57 PM

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

All times are GMT -5. The time now is 02:32 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