Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
08-27-2008, 02:34 AM
|
#1
|
LQ Newbie
Registered: Aug 2008
Posts: 11
Rep:
|
Apache2: Localhost works, but outside doesn't
So I am setting up an Apache2 Http server, Im fairly new to linux and such but I can usually figure stuff out or google for answers, but this has me stumped.
The problem is that I cannot connect to my server from outside my network. Localhost returns with the "It Works!." but my ip adress but it returns with "An error occurred while loading xx.xxx.xx.x:
Timeout on server
Connection was to xx.xxx.xx.x at port 80."
I have tired on basic port 80, firewall off, port forwarding to this computer, xx.xxx.xx.x.103, with apache httpd.conf setup like:
<Directory />
Options None
AllowOverride All
Order deny,allow
Allow from all
</Directory>
and nothing else changed.
So while that seems like it should work it didn't, I tried port 8080 and 5000, also, port forwarded and such. Also I used DMZ on xx.xxx.xx.x.103 also, hoping that would work, no such luck. I also tried no-ip.coms's port 80 redirect and that didn't work either.
If anyone has a clue please help me, I might just be missing something small or huge, I'm still new to this but learning, thanks for your time.
PS running OpenSuse, and ISP is Comcast, as far as i know they only block port 445.
Last edited by Navanax; 08-27-2008 at 02:36 AM.
|
|
|
08-27-2008, 02:39 AM
|
#2
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
What does
netstat -lnp | grep http
show?
|
|
|
08-27-2008, 02:42 AM
|
#3
|
LQ Newbie
Registered: Aug 2008
Posts: 11
Original Poster
Rep:
|
tcp 0 0 :::5000 :::* LISTEN 13081/httpd2-prefor
|
|
|
08-27-2008, 02:49 AM
|
#4
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
Are you actually trying to connect from outside, or from inside using your exernal IP?
|
|
|
08-27-2008, 02:53 AM
|
#5
|
LQ Newbie
Registered: Aug 2008
Posts: 11
Original Poster
Rep:
|
both really, brother on outside IP says it says the same thing.
|
|
|
08-27-2008, 03:03 AM
|
#6
|
LQ Newbie
Registered: Aug 2008
Posts: 11
Original Poster
Rep:
|
The thing is, a port scan from https://www.securetrust.com/resources/portscan/
shows that NO open ports are found, but this can't be. Heres some of my router settings:
1 Enable 0Disable
DMZ Host IP Address: 192.168.1. 103
So surely that right there should not block ANY ports, but also to follow that up I have the ports forwarded.
|
|
|
08-27-2008, 03:31 AM
|
#7
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
Sounds like a router configuration issue. Don't know how well it will work, but can your brother do a traceroute to your IP?
So
traceroute IP -p 80 (or whatever port)
|
|
|
08-27-2008, 03:33 AM
|
#8
|
LQ Newbie
Registered: Aug 2008
Posts: 11
Original Poster
Rep:
|
OK, he got the same thing I got on my traceroute:
traceroute 67.160.25.3 -p 8080
traceroute to 67.160.25.3 (67.160.25.3), 30 hops max, 40 byte packets
1 * * *
2 c-67-160-25-3.hsd1.wa.comcast.net (67.160.25.3) 2.759 ms 8.310 ms 8.630 ms
3 c-67-160-25-3.hsd1.wa.comcast.net (67.160.25.3) 15.597 ms 25.284 ms 23.302 ms
Last edited by Navanax; 08-27-2008 at 03:45 AM.
|
|
|
08-27-2008, 04:10 AM
|
#9
|
LQ Newbie
Registered: Aug 2008
Posts: 11
Original Poster
Rep:
|
It really does looks like a router issue, any settings I should be aware of besides the port forwarding? Im using 8080 ATM, just incase comcast does block port 80. I would really like to get this resloved and I appreciate the help so far and any to come.
PS, using a Linksys WRT54G router.
Last edited by Navanax; 08-27-2008 at 04:12 AM.
|
|
|
08-27-2008, 04:18 AM
|
#10
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
I cant' you a lot with the router since I don't know what you are using, but even if I did, I probably haven't used the same one.
I'd be checking:
forwarding
firewalls (router and server)
are you sure that the router and server can communicate (are on same subnet, etc)
|
|
|
08-27-2008, 04:23 AM
|
#11
|
LQ Newbie
Registered: Aug 2008
Posts: 11
Original Poster
Rep:
|
I posted what router I'm using, Linksys WRT54G wireless. As for the subnet thing, how do i check/set them to the same subnet, as far as I know my routers subnet is 255.255.255.0
|
|
|
08-27-2008, 04:26 AM
|
#12
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
No it's not - that's the netmask. What's the ip of the server and the router?
edit - router lan not wan
sorry missed router type earlier
Last edited by billymayday; 08-27-2008 at 04:27 AM.
|
|
|
08-27-2008, 04:33 AM
|
#13
|
LQ Newbie
Registered: Aug 2008
Posts: 11
Original Poster
Rep:
|
Ok, my setup is this computer(server) - to - the wireless router, so my Ip(from "whatismyip.com") is 67.160.25.3. and to access my router its the default 192.168.1.1 from inside. So inside my server would be 192.168.1.103, thats what the router says this box is. The router is forwarding all requests on 80 or 8080 to 192.168.1.103. I have no firewall on this comp up ATM, its a fresh install.
|
|
|
08-27-2008, 04:46 AM
|
#14
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
Can the server talk to the router? ie - can you ping the router or similar?
|
|
|
08-27-2008, 04:50 AM
|
#15
|
LQ Newbie
Registered: Aug 2008
Posts: 11
Original Poster
Rep:
|
From server to external IP:
ping 67.160.25.3
PING 67.160.25.3 (67.160.25.3) 56(84) bytes of data.
64 bytes from 67.160.25.3: icmp_seq=1 ttl=64 time=2.09 ms
64 bytes from 67.160.25.3: icmp_seq=2 ttl=64 time=1.60 ms
64 bytes from 67.160.25.3: icmp_seq=3 ttl=64 time=1.58 ms
From server to router:
ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.92 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=2.46 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=1.60 ms
and from server to server?:
ping 192.168.1.103
PING 192.168.1.103 (192.168.1.103) 56(84) bytes of data.
64 bytes from 192.168.1.103: icmp_seq=1 ttl=64 time=0.079 ms
64 bytes from 192.168.1.103: icmp_seq=2 ttl=64 time=0.069 ms
64 bytes from 192.168.1.103: icmp_seq=3 ttl=64 time=0.070 ms
Ok, Im sure I over did it, but you get the point. Thing I don't get is how come a portscan shows all my ports are closed...
Last edited by Navanax; 08-27-2008 at 04:52 AM.
|
|
|
All times are GMT -5. The time now is 02:47 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.
|
Latest Threads
LQ News
|
|