CentOS 6: Open a Port for iptables

Verisons

  1. CentOS 6.5

Configure

  1. Edit /etc/sysconfig/iptables and add the following before COMMIT
    Typical /etc/sysconfig/iptables:

  2. If opening TCP port, add the following line above the first reject statement:

    Note
    if tcp or udp wasn’t specified assume tcp
  3. If udp, instead add the following line above the first reject statement:

    Example: Open port 666 for tcp

  4. Restart iptables

Test from remote machine

Note
replace $HOSTNAME and $PORT below

2 thoughts on “CentOS 6: Open a Port for iptables

  1. Pingback: CentoOS 6.5 with GAuth | Mid West Guy

  2. Pingback: CentOS 6: Install Samba | Decidable Dreams

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">