Archive for January, 2010

open a port on linux server

Wednesday, January 13th, 2010

=========================================
iptables -A RH-Firewall-1-INPUT -p tcp -m state –state NEW -m tcp –dport 3690 -j ACCEPT
=========================================
RH-Firewall-1-INPUT is the name of the chain, and change 3690 to the port number you expect.

You must restart the service to make it effective:
[root@localhost ~]# service iptables restart