Open Port 2222

rocky

Verified User
Joined
Aug 10, 2005
Messages
34
I have a problem that the DA cannot be access from other computer. I think the problem is port 2222 is block. How do I open that port? I am using CentOS 4.1

Please help, I am currently at the colocation waiting to get this resolve before I can go home.

Thanks

Rocky
 
Disable any firewall you may have running.
Without knowing which specific firewall it is, we won't be able to give specific instructions on disabling it.

No other computers at the datacenter can connect to it on port 2222?
do other ports work?
 
Some data centers block port 2222; if that turns out to be the case you'll need to ask them to unblock it, or make the changes required to get DA to respond on another port, or move to another datacenter.

(Hopefully in that order.)

Jeff
 
I am using standard CentOS 4.1 firewall, on a fresh install test server.

thanks for your replies.

Rocky
 
Disable the firewall first until you get it working, then block all uneeded ports later on.
Quick search on google turned this up:
http://www.centos.org/docs/4/html/rhel-sag-en-4/ch-basic-firewall.html
"system-config-securitylevel"
But that might require X, kde, gnome etc since the documentation says it's a graphical interface.
This is of course assuming, that this is the particular firewall you enabled during the installation.

Disabling iptables might accomplish the same thing:
http://www.centos.org/docs/4/html/rhel-sg-en-4/s1-fireall-ipt-act.html
"service iptables stop"

Can't say for sure since I'm not a centos fan.
 
I got to work, here is the list of the ports I open. What you think of the ports listed here.

Chain RH-Firewall-1-INPUT (2 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere icmp any
ACCEPT ipv6-crypt-- anywhere anywhere
ACCEPT ipv6-auth-- anywhere anywhere
ACCEPT udp -- anywhere 224.0.0.251 udp dpt:5353
ACCEPT udp -- anywhere anywhere udp dpt:ipp
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:domain
ACCEPT udp -- anywhere anywhere state NEW udp dpt:domain
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:2222
ACCEPT udp -- anywhere anywhere state NEW udp dpt:2222
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:smtp
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:http
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:https
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ftp
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
[root@alexis ~]#
 
Back
Top