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 07-07-2004, 11:40 PM   #1
BlueRaja
LQ Newbie
 
Registered: Jul 2004
Posts: 8

Rep: Reputation: 0
Unhappy Problems with webserver


Okay, so I'll admit it: I'm new to Linux. I tried running apache 1.3, but I had problems (coundn't access from outside of network); I installed apache 2.0, but that didn't help anything.
Hearing that some ISPs disallow port 80, I enabled port triggering on my wireless linksys router:

Application name: http
Trigger Port Range: 80-80
Incoming Port Range: 8000-8000

Port Forwarding: 80-80 192.168.1.51
Had this before I enabled port triggering

However, I was still unable to access my site outside the network (using either w.x.y.z:80 or w.x.y.z:8000)
Even within the network, w.x.y.z:80, w.x.y.z:8000, and 192.168.1.51:8000 didn't work. Only 192.168.1.51:80 worked.

Hearing that my router may not (for reasons unknown to me) be forwarding the external port 8000 from the client to the internal port 80 for my linux server, I tried setting the apache port to 8000 and just forwarding that.

httpd.conf
Code:
Listen 8000
ServerName 192.168.1.51:8000
No Port Triggering
Port Forwarding: 8000-8000 192.168.1.51


Using this, external users can access the site using w.x.y.z:8000

My question is this: Why can't I use the default port 80? If it's the ISP, I'd expect port triggering port 8000 to 80 to work (since it changes the port AFTER going through the ISP). That leads me to believe that the Linux box is not allowing port 80; however, users on the internal network can access the site through port 80: on top of that, when I type
iptables -nvL
it tells me says something along the lines of "ACCEPT -- *(in) *(out) 0.0.0.0/0(source) 0.0.0.0/0(destination) tcp dpt:80 flags:0x16/0x02"

Any help would be appreciated.
 
Old 07-08-2004, 04:18 AM   #2
hasnain
Member
 
Registered: Jun 2004
Location: Karachi
Distribution: Redhat
Posts: 56

Rep: Reputation: 15
Webserver problem

hello


well ur problem is still not cleared to me....wat exactly uwant to do

1. do u want your webpage to be accessable to out side your network mean to say worldwide....?

2. Or do u want your webserver to be accessable to your LAN

do tell me this

regards
 
Old 07-08-2004, 03:57 PM   #3
BlueRaja
LQ Newbie
 
Registered: Jul 2004
Posts: 8

Original Poster
Rep: Reputation: 0
As I said, I can access the site INTERNALLY when I set it to port 80 (and forward port 80 to my machine), but not externally.
When I set it to port 8000 (and forward port 8000 to the machine), I can get it to work internally and externally; however, of course, then anyone who wants to access my site has to add :8000 to the end of the domain.
I thought that this meant that my ISP was blocking port 80. However, when I tell my linksys router to forward port 8000 to port 80 (and set up the server to use port 80), I can't access the site externally. If my understanding is correct, this couldn't be due to the ISP, because only the internal network sees it as using port 80, while the rest of the world sees port 8000. This leads me to believe either:
a. My Linux box is blocking port 80, for some reason (although I can still access the site on my internal network, so there would also have to be some sort of ip-address check)
or b. My router isn't forwarding one port to another correctly (although I don't know why it wouldn't; it's practically new, and I've never had any problems with it)
I was wondering if there's a way to tell which is happening, or if neither, then what's actually wrong.
 
Old 07-08-2004, 04:20 PM   #4
MrMud
LQ Newbie
 
Registered: Apr 2004
Location: Portland, Oregon
Distribution: Slackware/Mandrake/Redhat
Posts: 21

Rep: Reputation: 15
Try the following tool:

http://michael.toren.net/code/tcptraceroute/

I recommend useing that to tcptraceroute to your machine with both 8000 and 80, and compare the difference. If the trace to port 80 stops a few hops before 8000, you can be pretty sure that your ISP is blocking port 80.
 
  


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
webserver session problems Josh328 Linux - Software 4 07-04-2005 11:39 AM
apache webserver function problems Computing_Error Mandriva 0 09-11-2004 05:30 PM
webserver setup problems chief Linux - Software 8 11-16-2003 04:04 PM
webserver problems? Mama Linux - Networking 1 08-20-2003 10:11 AM
webserver problems? Mama Linux - Networking 1 08-17-2003 09:38 AM

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

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