LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-28-2004, 03:56 PM   #1
hsegtreas
Member
 
Registered: May 2004
Distribution: Slackware 9.1
Posts: 47

Rep: Reputation: 15
routing question


I have a home network set up this way:

Code:
-----------
|DSL MODEM|
-----------
   |
   |
-------   ------------
| HUB |---|WEB SERVER|
-------   ------------
   |
   |
--------
|ROUTER|
--------
 |   |  \--\
 |   |      |
---- ---- ---------
|PC| |PC| |PRINTER|
---- ---- ---------
I hope the drawing is understandable..

Here's a little explanation:
The webserver (apache on slackware 9.1) and the router (Netgear RT314) get their dynamic IP addresses from the modem. (2 diffrent addresses. That way anyone trying to hack the server will leave my local network alone. My ISP is nice enough not to charge me for the 2nd IP )
The router then supplies the local network with regular non routable addresses (192.168.0.0)

The problem:
When using ssh or ftp from the PCs to the webserver, packets are going through the default gateway (the router) then through its default gateway (my ISP), then back to the web server. This is annoying when transferring files because my ISP limits the upload to 60kBps.
I could set up a static route between the router and the webserver, but since they both use dynamic IPs, it wouldn't last more than a day or two.

So i was wondering, is it because i blocked a port that shouldn't be blocked that the linux server and the router don't realize they could be talking directly to each other? I know the netgear uses RIP on the local network, but i'm not sure it's using any routing protocol at all on the WAN side.. It's probably just acting as a client. (?)

I am thinking about setting up a virtual interface on the linux webserver (that way the address wouldn't change) and a static route on the router. Any other (and hopefully better) ideas?

Thanks, and sorry for the long post!
 
Old 08-28-2004, 04:28 PM   #2
linux_terror
Member
 
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Rep: Reputation: 30
Maybe just put a second NIC in the linux box thats on the local subnet of your other cpu's and route it directly.

dunno, just venturing a guess.

also, why use dynamic ip's for local machines? You could set it up static and not have the headache.

linux_terror
 
Old 08-28-2004, 05:19 PM   #3
hsegtreas
Member
 
Registered: May 2004
Distribution: Slackware 9.1
Posts: 47

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by linux_terror
Maybe just put a second NIC in the linux box thats on the local subnet of your other cpu's and route it directly.

dunno, just venturing a guess.

also, why use dynamic ip's for local machines? You could set it up static and not have the headache.

linux_terror
I just don't feel like installing another network card just for that. it's annoying, but i can live with it.
Actually, i thought of buying a used cisco router but i can't find one that has 2 ethernet interfaces on ebay. That would be the fun but pricey solution BTW, anyone willing to sell for around 80$, i'm interested.
I could set up static IPs on local machines but the server ip (and the router's) would still be dynamic. I'd have to pay my ISP a bit more to get static IPs..
 
  


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
Routing question jeffvph Linux - Networking 2 11-07-2005 07:14 PM
routing question jeffvph Linux - Networking 9 07-24-2005 07:09 PM
routing question gubak Linux - Newbie 1 07-23-2004 02:41 AM
Routing question palanisaravanan Linux - Newbie 1 03-22-2004 04:26 AM
Routing Question brokenflea Linux - Networking 2 12-05-2003 03:15 PM

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

All times are GMT -5. The time now is 04:37 PM.

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