Tuesday, April 3, 2012

How to open ports in Red Hat Linux

1. Edit vi /etc/sysconfig/iptables
2. Add -A RH -INPUT -m state --state NEW -m tcp -p tcp --dport port number -j ACCEPT
Change 'port number' to desired port number
3. save and exit
4. restart iptables with 'service iptables restart'

1 comment:

  1. Well It Was Very Nice Article It Is Very Useful For Linux Learners. We Are Also Providing Linux Online Courses Training. Our Linux Online Training Is One Of The Best Online Training Institute In The World.