| Linode Forum https://forum.linode.com/ |
|
| Connection Question https://forum.linode.com/viewtopic.php?f=19&t=5551 |
Page 1 of 1 |
| Author: | jbasinger [ Thu May 06, 2010 9:28 pm ] |
| Post subject: | Connection Question |
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 |
|
| Author: | obs [ Thu May 06, 2010 10:07 pm ] |
| Post subject: | |
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 |
|
| Author: | jbasinger [ Thu May 06, 2010 10:37 pm ] |
| Post subject: | |
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 |
|
| Author: | obs [ Fri May 07, 2010 5:34 am ] |
| Post subject: | |
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. |
|
| Author: | jbasinger [ Fri May 07, 2010 7:12 am ] |
| Post subject: | |
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 |
|
| Author: | obs [ Fri May 07, 2010 7:35 pm ] |
| Post subject: | |
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 |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|