LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-07-2004, 01:49 AM   #1
hecter
LQ Newbie
 
Registered: Oct 2004
Posts: 2

Rep: Reputation: 0
Unable to access port 80 from anywhere but localhost


I'm trying to set up a web server (Redhat 9) for testing using Apache 2.x
If I tell Apache to listen to a port higher than 1024 then I can access my web server from the Internet (when it's not blocked by a firewall).
If I tell Apache to listen to a port lower than 1024 (read port 80) then I can only access my web server locally.

I did some research and I know this can happen if the httpd daemon is not started as the root user. However, I am starting httpd as root.

I also tried turning off any firewall rules I had and still no change.

When the Apache listen port is higher than 1024 (for instance 8000) I can also telnet to that port and get a response back:
Trying xxx.xxx.xxx.xxx ...
Connected to xxx.xxx.xxx.xxx.
Escape character is '^]'.

When the Apache listen port is 80 I cannot telnet to it and I get:
Trying xxx.xxx.xxx.xxx ...

When the Apache listen port is below 1024 but not 80 I cannot telnet to it and I get a different message:
Trying xxx.xxx.xxx.xxx ...
telnet: connect to address xxx.xxx.xxx.xxx: Connection refused

I've been able to set this up before on another linux box and I know other people do this all the time. Why can't does my box seem to be blocking port 80? Any ideas?
 
Old 10-07-2004, 09:12 AM   #2
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
Have you tried turning off the firewall and then connecting to Apache?
 
  


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
route locally generated traffic to ip:port to localhost:port maenho Linux - Software 2 03-11-2005 05:08 AM
ksysguard unable to connect to localhost runcis Mandriva 5 03-04-2005 12:00 PM
unable to rsh to the localhost majalee Linux - Networking 0 08-20-2004 02:37 AM
localhost:port sodhilogin Linux - General 7 05-14-2003 08:20 AM
unable to connect with ssh except to localhost Yaukuai Linux - Software 0 09-30-2001 07:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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