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 04-24-2006, 08:17 AM   #1
fragenstein
LQ Newbie
 
Registered: Apr 2006
Posts: 7

Rep: Reputation: 0
linux gateway with static IP on dsl modem


Hi,
I am setting up a linux box to serve as a firewall/gateway to a webserver at home. I can get the box communiticating fine on both nics with internal address, but when setting up either with my assigned external IP from my ISP, it wont communicate externally. If I connect my windows box directly to the DSL modem (D-Link 3001) I can use the external IP but not if I connect the linux box. I am running Mandriva 2005. Any thoughts as to what could be my problem?
I know that this is a little general and will add info as requested.
Thanks
 
Old 04-24-2006, 02:51 PM   #2
eldoran
LQ Newbie
 
Registered: Apr 2005
Location: Black Hawk, Colorado
Distribution: Ubuntu
Posts: 26

Rep: Reputation: 15
Post the results of 'route -n' -- also give some indication of your IP set up. (External ISP, router, Linux box, windows box, etc)
 
Old 04-24-2006, 04:44 PM   #3
fragenstein
LQ Newbie
 
Registered: Apr 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Heres some details. Will post more later.

I will post the remainder later (route table) but here is the first info. Hopefully it gives some insight. I assume with this setup, the external IP of the Asante is unimportant. Would connecting the Asante to the Dlink first possibly fix the setup?:

Telus
|
------------
|DLink 3001|
------------
|
----------------
|EXT IP (180...|
----------------
| Linux |
----------------
|INT IP (10... |
----------------
|
----------------
|Ext IP (180...|
----------------
|AsanteFR3004LC|
----------------
|Int IP (10..1 |
----------------
|
----------------
|Int IP (10.. |
----------------
|Windows box |
----------------
 
Old 04-24-2006, 08:01 PM   #4
eldoran
LQ Newbie
 
Registered: Apr 2005
Location: Black Hawk, Colorado
Distribution: Ubuntu
Posts: 26

Rep: Reputation: 15
I can't read your update - sorry ;-(

Not sure what an Asante is, but I might be able to help if I can see your setup somehow.
 
Old 04-25-2006, 07:47 AM   #5
fragenstein
LQ Newbie
 
Registered: Apr 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Description

Assante is a router. Here is a description (I will try to get the route info as soon as possible but any idea's until then are great).
My ISP is Telus. The ADSL modem that connects me is the DLink 3001. There is no manual authentication since I have external IPs, one of which is assigned to the router WAN port.
I was planning on putting the linux box directly to the modem so planned on the first NIC to have an external address rather than have the router in between. After this, I would have the router with the linux internal eth attached to an internal port and then the web server.
I hope this is clear enough for the time being. Thanks for the thought at least.
 
Old 04-25-2006, 10:01 PM   #6
fragenstein
LQ Newbie
 
Registered: Apr 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Here is the result of the route command.
When I set up the linux box and the windows box on the same router (actually putting the router between the DSL modem and the boxes) and put external IPs on each of them, the windows can be contacted externally as well as access the internet but unable to do either with linux. They are able to ping each other on the external addresses however.

Destination Gateway Genmask Flags Metric Ref Use Iface
255.255.255.255 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
180...0 180...10 255.255.255.0 UG 0 0 0 eth0
180...10 0.0.0.0 255.255.255.0 U 10 0 0 eth0
10...0 10...15 255.255.255.0 UG 0 0 0 eth1
10...0 0.0.0.0 255.255.255.0 U 10 0 0 eth1
224.0.0.0 0.0.0.0 224.0.0.0 U 0 0 0 eth0
 
Old 04-25-2006, 10:53 PM   #7
eldoran
LQ Newbie
 
Registered: Apr 2005
Location: Black Hawk, Colorado
Distribution: Ubuntu
Posts: 26

Rep: Reputation: 15
What I'm not seeing is a default route (one for destination 0.0.0.0) on Linux. This would normally be the address of your router. Try issuing 'route add default gw xx.xx.xx.xx' Where xx.xx.xx.xx is the IP address of your router.

(What does Windows show when you do 'ipconfig' ? Does it match the Linux setup in terms of default gateway, etc?)

Last edited by eldoran; 04-25-2006 at 10:55 PM.
 
Old 04-26-2006, 08:02 AM   #8
fragenstein
LQ Newbie
 
Registered: Apr 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Gateway

I have configured both to use a gateway external to the site assigned by the ISP. I guess the DLINK must only work in bridging mode since I do not have to use any internal GW. It works with windows so I assume this should not present a problem with linux. COrrect me if Im wrong.
 
Old 04-26-2006, 08:09 AM   #9
eldoran
LQ Newbie
 
Registered: Apr 2005
Location: Black Hawk, Colorado
Distribution: Ubuntu
Posts: 26

Rep: Reputation: 15
I'm not really sure -- I don't have a clear picture of your setup at all -- All I can suggest is to do 'ipconfig' and 'route print' on Windows -- and 'ifconfig' and 'route -n' on Linux and see where the differences are.
 
  


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
Zoom modem/switch & linux<->linux network: DHCP / Static ? tredegar Linux - Networking 8 11-11-2007 03:41 AM
static ip on DSL pelgrimforever DamnSmallLinux 3 04-02-2006 01:07 PM
Static Public IP on Linux gateway behind ADSL router Eivissa Linux - Networking 2 11-16-2004 07:10 AM
telnet to Linux via a DSL modem Basta Linux - Networking 4 06-10-2004 06:58 AM
dsl modem and linux router diveguy Linux - Networking 3 03-27-2002 11:15 PM

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

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