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 08-25-2005, 07:17 AM   #1
Sapient
Member
 
Registered: Oct 2003
Location: San Luis Obispo, CA
Distribution: SuSE
Posts: 196

Rep: Reputation: 30
Question Connection, Router, DHCP


Lengthy…

I have already completed everything that was suggested. I was looking
for something I may have missed.

I just relocated to another state and changed broadband providers. With TW everything worked great. I have now gone to Charter and my domain is unavailable.

I spoke with a couple of people at Charter and they are saying they do not block ports 80 and 8080. I am not sure I believe them; so I am trying to determine if they are.

I am running standard cable with DHCP through a Linksys router. I am using SuSe Enterprise 9.x with Apache 2.x. I cannot see the server outside of my LAN.

I use ZoneEdit to keep my server and DNS up-to-date. So when my provider re-issues IP address a job runs on the server pointing ZoneClients/Edit's DNS servers to the changed address.

I do not have the "named" service running. When I turn it on, no change.

I have been tweaking the Apache configuration files (virtualhost, http, listen, etc...), hostname file, and the dns hostname in Yast. I get different results of course. I can see the domain by using "localhost", http://servername/, www.hingedmind.com (actual domain name). The results change based on my changes.

However, outside the LAN, no peaches.

I can ping, dig, etc... and the ip and route are correct. The domain address is my Linksys Router address (which is correct). Outside the LAN, others can also ping the domain.

On the Linksys router "WRT54GS" (Side note: Great site - http://www.dslwebserver.com/) I have port forwarding point to the IP
address I set for the server.

Port Range
Application Start End Protocol IP Address Enable

http to 80 80 192.168.1. 105 X


My range for the router is 192.168.1.100 - 104. I set the server IP address to be 192.168.1.105 (outside of the range so that when the IP address is renewed, the server will not change. However, when I look at the DCHP Clients from the router (192.168.1.1), it is showing my server as 192.168.1.(the range); NOT the IP address I set on the server.



Conclusion:

Still... outside the LAN nada.

I either have the router wrong, or something in my configurations.

An FYI... You can alo change hostname using the hostname command.

In Apache you can assign which port to listen on. Currently the default is 80 abd 8080. So I change the listen directive (Listen *:80) to something other than the default. I used 8000. So when I go to the domain I would like so www.hingedmind.com:8000. You would have to cloak/forward this so that your users would not have to type the port in.

The port question was more for the server side. I know how to change the listen directive. I looked in the /etc/services file and port 8000 has something assigned to it. Do I need to comment it out? or just add the following?

/etc/services

http 8000/tcp # World Wide Web HTTP
http 8000/udp # World Wide Web HTTP
www 8000/tcp # World Wide Web HTTP
www 8000/udp # World Wide Web HTTP
www-http 8000/tcp # World Wide Web HTTP
www-http 8000/udp # World Wide Web HTTP



So... Any suggestions? And thanks.
 
Old 08-25-2005, 10:05 PM   #2
DaveG
Member
 
Registered: Nov 2001
Location: London, UK
Distribution: Fedora
Posts: 161

Rep: Reputation: 43
First thing is to make sure that the SuSe box has a fixed IP address of 192.168.1.105 rather than dynamic. (hostname -i or ifconfig -a)

I'd go back to using port 80 to keep it simple. The router should just redirect incoming port 80 connections to the fixed IP address, port 80, and NAT should take care of the routing from then on.

If you want to use non-standard port numbers you need to set up the router to forward the chosen port(s) and change the listen directive(s) in Apache to match.

/etc/services provides name-to-number lookup only for that machine. Changing it can confuse other software. It's simpler to just use a port number in httpd.conf.
 
  


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
My cable connection through router is like 56K connection ExtremeSupremacy Linux - Networking 1 07-10-2005 03:01 AM
dhcp router ThunderChicken Linux - Networking 1 03-14-2005 02:50 PM
Slow web browsing behind router w/ DHCP on DSL connection johngcarlsson Linux - Newbie 20 10-18-2004 03:32 PM
Broadband Connection Via Router Intermittent - DHCP Conflict? JamboUK Linux - Networking 1 05-06-2004 08:01 PM
dhcp *thru* router electron_lemon Linux - Networking 6 08-21-2003 05:36 PM

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

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