Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
A while back I set up a fully functioning ftp server from my slackware linux comp, and I recently set out to get a server started as well. I did everything I was supposed to and I tested it on my computer and it worked perfectly, went to my sisters and my dads and they both worked, then I had a friend try it and it didnt work on any computers that arent attached to our router. I did allow port forwarding on port 80 FYI.
I've been readin all over the place for a long time and I'm all out of ideas.
Sorry, this is my fault for not explaining it right. Let me start over. Completely forget about the ftp server, the problem is I set up an apache server on my slackware linux computer, and I did everything the install said to and several tutorials, and it works exactly how I want it to. From my computer and all the computers on my router (sisters, dads) I just type in the address and it shows the exact files I want from vars/www/htdocs but when I tell any of my friends to go to the link it says cannot connect to host. I did port forwarding on port 80 at the beginning for apache...dont know what else to do.
I am having the same problem. I've been searchin the net and the only thing I can find on the problem is that my ISP is blocking port 80... but I had a server up and running and had friends test if from outside my LAN and it worked fine, then i decided to test other Linux distributions so I erased my hard drive. Now I went back to the original one I was using and set up apache but now it only works inside my router. So its not my ISP thats causing the problem because it worked before... any ideas?
Hey eric what does the browser say when someone outside your LAN tries to connect to your site? And I know you said this isn't the problem but it can't hurt to check again.. go to auditmypc.com do a firewall test and it will tell you the ports that are open on your server. This might be kind of a stupid question, but are you using another computer to search the internet other than your Linux computer? If the internet connection wasn't working on the computer with the server you would still be able to access it from other computers inside your LAN, but not from outside your router.
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986
Rep:
This is hard to diagnose without seeing the httpd.conf (I think that's the correct file?) file. If your ports are forwarded, ISP isn't blocking port 80, no firewalls on your system and hardware, then I would say it's the apache configuration file.
also, make sure the IP address is correct and that your domain name, if you have one, is getting forwarded to the correct IP address.
First of all, I am accessing the internet from my linux computer. Secondly, I checked auditmypc and it says port 80 isnt open...although on my router page it says it is. I used port forwarding to allow ssh and that worked fine, I just put port forwarding on 80 for "Apache" does the name have to be different?
Well in my router setup it asks in port forwarding (my answers in place):
Service Name: Apache
Starting Port: 80
Ending Port: 80
Server IP Address: 192.168.0.2 (works with ssh, ftp server, etc so i assume its the right address)
1. I don't know anything about your router, but is there a separate setting that allows you to open port 80? I wouldn't make the assumption that allowing forwarding necessary opens the port.
2. Do you have any firewall on your linux box, and is port 80 open on that?
I take it you named the Service Name Apache rather than the router.
Doesn't sound quite right, but is triggering set for any post numbers?
Another thought - try forwarding port 443, and try connecting to https://yourserver.
Make a quick check that apache is listening on port 443 as well (it may be in a separate conf file that apache loads, for example /etc/httpd/conf.d/ssl.conf (that's in FC5 anyway)
Edit
Try changing the service name to http
Is there any chance that, for some reason, you are only forwarding internal traffic to the http server? I assume the setup for port 80 is exactly the same as port 22.
Also, can you post your httpd.conf?
Last edited by billymayday; 07-24-2006 at 03:49 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.