Koozali.org: home of the SME Server

Calls on port 8080 from the Internet

crapufish

Calls on port 8080 from the Internet
« on: January 10, 2006, 10:37:14 PM »
Hello!

I installed Apache Tomcat on SME 7b9 and configured it to respond on port 8080. Everything works great, SME survived but, of course something doesn't work quite well:
- the calls from whithin the network to my sme's ip and port 8080 are working, tomcat is responding (let's say: 192.168.0.1:8080)
- the calls from outside the network (calls from internet) to my domain (hosted on sme) and port 8080 gets timeouted (let's say: mydomain.com:8080)

In short, I cannot access Tomcat from outside the local network on a non-standard port. What sould I do to be able to access it from outside the network? I added my domain in the tomcat's config file (but this is irrelevant, as it does not work even if i try directly with the IP)

I am using SME 7b9 on server-only mode. I have a router and I opened access for port 8080 calls and redirected them to my SME box, on port 8080

Thanks !!

D

alienjones

Calls on port 8080 from the Internet
« Reply #1 on: January 10, 2006, 11:54:53 PM »
Port 8080 is a proxy server port. You'll get hits from around the globe. People looking for a relay proxy to hide behind. That's why it's closed to the outside world.

Try using a module "open port". You'll find it here if you look but try a different port to 8080 unless you are intending to shield people with your proxy server.

AJ :idea:

crapufish

Calls on port 8080 from the Internet
« Reply #2 on: January 11, 2006, 12:10:00 AM »
I changed the port to 9099 but same problem: Everything is ok from inside network calls, but no access from outside.

Help!

Thanks!

crapufish

Calls on port 8080 from the Internet
« Reply #3 on: January 11, 2006, 12:48:49 AM »
Found the solution!!

I will write this here, just in case someone else has the same problem:

I got a clue from this forum: http://forums.contribs.org/index.php?topic=29249.0

I have to open tomcat's port to be accesible from outside the network with this command (suppose the port tomcat is listening to is 9099 and suppose that the external network card is eth0):

iptables -I INPUT -i eth0 -p tcp --dport 9099 -j ACCEPT

The problem is that this whole will dissapear once you restart SME. Anybody knows how to make this kind of changes permanent?

Thanks!!