Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Connection Question
PostPosted: Thu May 06, 2010 9:28 pm 
Offline
Newbie

Joined: Thu May 06, 2010 9:23 pm
Posts: 3
I'm pretty much a total linux newb and did pretty well getting stuff working until now :?

I got Ruby installed and was messing with the GServer class and am binding it to port 9000. Now I can connect from my node (in another putty session) to my node with telnet, but I can't connect to it from my machine remotely. I'm using ubuntu 10, do I have to do something special to open the port or anything?

Thanks


Top
   
 Post subject:
PostPosted: Thu May 06, 2010 10:07 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Sounds like either

1) iptables is blocking you, so you need to open the port

or 2) you are binding to port 9000 on 127.0.0.1 and so you need to bind on all interfaces


Top
   
 Post subject:
PostPosted: Thu May 06, 2010 10:37 pm 
Offline
Newbie

Joined: Thu May 06, 2010 9:23 pm
Posts: 3
Thanks! Here is what I get when I run iptables -L

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

I don't really know what that means, but I don't see anything port specific in there so I can't be specifically blocking 9000 right?

DEFAULT_HOST on GServer is localhost (127.0.0.1)... sorry this is probably ending up being a dev question not meant for this forum. If I should look elsewhere please let me know and I'll mosey on over to StackOverflow :D


Top
   
 Post subject:
PostPosted: Fri May 07, 2010 5:34 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Ok first your iptables isn't configured to do anything..this is a bad thing. You should set some firewall rules up.

Second that DEFAULT_HOST looks like it's the problem try setting it to your servers IP.


Top
   
 Post subject:
PostPosted: Fri May 07, 2010 7:12 am 
Offline
Newbie

Joined: Thu May 06, 2010 9:23 pm
Posts: 3
Yeah it was the host not being set correctly. As far as iptables go, like I said I'm a complete linux newb, what should I do? Block all ports except the ones I'm going use? Like, keep ssh, http[s], etc open? I'll search around the forum, there has to be a good guide around here. This sounds like one of those questions thats been asked 1000 times over already.

Thank you for the help


Top
   
 Post subject:
PostPosted: Fri May 07, 2010 7:35 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Personally I have 80 and 443 open. The rest are closed I open my ssh port to my ip address and that's it.

Depending on your OS there's various ways to configure a firewall I like this one http://www.configserver.com/cp/csf.html


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group