Sunday, March 27, 2011

Open Port in Redhat

Instructions

  1. nano /etc/sysconfig/iptables
  2. Insert the following line with the desired port number (in this case, replace 22 with desired port)
    • -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
  3. Save and close the file
  4. /etc/init.d/iptables restart

See Also

No comments:

Post a Comment