Showing posts with label linux command line port iptables red hat. Show all posts
Showing posts with label linux command line port iptables red hat. Show all posts

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'