LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-20-2002, 12:57 PM   #1
fennario
LQ Newbie
 
Registered: Mar 2002
Distribution: RedHat 7.2
Posts: 2

Rep: Reputation: 0
Linksys DSL Router/Don't Want DHCP


I've look over the forums, and don't see anything like the problem I'm having:

Linksys DSL Router - Linux Laptop (Dell I7000), RedHat 7.2.

Can't get Apache to work over the open net (apparently it doesn't like DHCP - I DID open the firewall on the Router for port 80). Could SSH (port 23) over the open net from work - could never access Port 80 correctly.

So, I turned of DHCP, and edited my ifcfg-eth0 file and my resolve config for my DNS servers.

Now, I can ping the Router, but can't connect to the Web or anything else outside the network.

ifconfig looks good, shows the right Broadcast IP, the right IP for the card, etc.

I turn back on DHCP - all works. Turn it off - hard code the same values - doesn't work!

Any help appreciated!
Michael
 
Old 03-22-2002, 02:26 PM   #2
Syncrm
Member
 
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472

Rep: Reputation: 30
check your route tables by typing this:

route -n

make sure that there's a default gateway of 192.168.1.1 (or whatever your router's ip is, i'm assuming it's that since linksys defaults it). if there's no route to the gateway, then your machine doesn't know where to send network queries. you can add a default gateway like so:

route add default gw 192.168.1.1 eth0

hope this helps. :-)
 
Old 03-22-2002, 02:43 PM   #3
Slestak
LQ Newbie
 
Registered: Mar 2002
Location: Grand Rapids, MI
Distribution: Linux Mint, Ubuntu, Redhat
Posts: 12

Rep: Reputation: 0
Thats kindof what I was thinking about, the gateway.

What about the NAT firewal, do you need to patch a passthrough for port 80?
 
Old 03-22-2002, 02:50 PM   #4
Sixpax
Member
 
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 386

Rep: Reputation: 31
Is anything else NOT working when you hardcode the values? nslookup... ping... traceroute... etc? can you ping your own hostname (not IP address)?
 
Old 03-22-2002, 04:49 PM   #5
fennario
LQ Newbie
 
Registered: Mar 2002
Distribution: RedHat 7.2
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks, it was indeed the gateway! I am such a putz!

So, that is the good news - I'm off DHCP on the laptop. So, I tried the apache server from outside my network - still no go - resolves fine using "localhost", ""hostname" or my ISP dynamic IP number. Outside my network - 404 error.

I opened port 80 on the DLink Router (I know, I said I had a LinkSys...I'm getting old, sorry...), and in fact also opened port 23, and am able to ssh to port 23 by using the DynDNS.org alias I created, so it appears the outside world does properly know how to map to the current IP number to my box.

But, no go on port 80, or trying to access the Web server via the IP number outside my network.

TIA,
Michael
 
Old 03-22-2002, 11:32 PM   #6
bbenz3
Member
 
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284

Rep: Reputation: 30
This may not apply to you but some ISP's have blocked port 80. Do you know for sure that yours is open. Simply solution but may not be the correct one. If in doubt try putting the webserver on a different port and see if that works.
 
Old 03-23-2002, 01:51 AM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
bbenz3 is right, most isp's block port 80..
most don't block port 22 for ssh, i thought telnet is reserved for port 23 by default.. guess it depends on how you have yours setup..

-trickykid
 
Old 04-29-2002, 06:37 PM   #8
batman7
LQ Newbie
 
Registered: Apr 2002
Posts: 1

Rep: Reputation: 0
Linux webserver / Linksys router

Anyone find a solution?
I can get out to Internet from my Linux Box, but nothing gets in.
Here's what I've got:

Linksys Router: 192.168.1.1
LinuxBox Webserver: 192.168.1.103
Actually IP seen by Internet(www.whatismyip.com): 216.46.130.231 (coincidentally points to someone else's site, Not mine...don't know why?)
Internally(behind router) I can access my Linuxbox webpage,(proves it works, Internally at least!), however nothing externally. I turned on Port Forwarding for Port 1230 instead of 80(in case it's blocked by ISP) and disabled DHCP, SPF, blocking of WAN requests. DMZ didn't work either.
Any suggestions?

Mike
lucky.mikey@myrealbox.com
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
AOL DSL and a linksys router coaltrain Linux - Newbie 2 02-14-2005 07:22 AM
smoothwall, linksys router, dsl Antarctic1 Linux - Networking 5 03-30-2004 08:15 AM
redhat 8 and linksys router, dsl richardg Linux - Newbie 3 07-16-2003 03:52 PM
DSL/ Linksys DSL Router/ Linux cant see the network... Robert0380 Linux - Networking 9 04-03-2002 04:09 AM
Linksys Cable/DSL router vs. wu-ftpd sonnik Linux - Networking 0 05-21-2001 09:50 PM

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

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