You are not logged in.

#1 2010-02-03 09:39:21

JSO
Member
Registered: 2010-02-03
Posts: 2

Services can't be accessed remotely

I'm experiencing a strange issue where I cannot access Apache outside of my LAN. At first I thought all the ports I had Apache listening on were blocked from the outside by my ISP, but I kickstarted an Amazon EC2 instance & setup remote port forwarding (and configured the ports on there to be open):

> ssh -vv -i id_key -R6881:localhost:8484 ubuntu@ec2

Once I'm in the EC2 instance if I execute: curl localhost:6881  I get what I expect - a directory listing. But if I try hitting the "public" dns address (thepublicaddresstomyec2instance:6881 I get nothing - it times out. Same behavior when I try to directly hit http://myip:8484 (times out).

Not sure if I did something to cause this but it's very strange.

Please help!!

no iptables rules seem to be enabled, ufw is disabled.

hosts.deny is empty. hosts.allow is: ALL: ALL: ALLOW

Last edited by JSO (2010-02-03 09:47:01)

Offline

#2 2010-02-03 09:44:33

mikesd
Member
From: Australia
Registered: 2008-02-01
Posts: 788
Website

Re: Services can't be accessed remotely

Do you have the required entries in /etc/hosts.allow ?

Offline

#3 2010-02-03 09:46:45

JSO
Member
Registered: 2010-02-03
Posts: 2

Re: Services can't be accessed remotely

hosts.deny is empty. hosts.allow is: ALL: ALL: ALLOW

Offline

#4 2010-02-03 10:43:32

mikesd
Member
From: Australia
Registered: 2008-02-01
Posts: 788
Website

Re: Services can't be accessed remotely

Is your router forwarding port 8484 to your apache box? What addresses is apache listening on?

Offline

#5 2010-02-03 10:55:21

raf_kig
Member
Registered: 2008-11-28
Posts: 143

Re: Services can't be accessed remotely

please post the output of the following

netstat -lp|grep httpd

Offline

Board footer

Powered by FluxBB