Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Use the following steps to add a rule to iptables to allow incoming connections on port 9998

...

.

Edit iptables:

Code Block
languagesql
# vi /etc/sysconfig/iptables

Find the following line in the file:

Code Block
languagesql
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited

Add the following line BEFORE the above line:

Code Block
languagesql
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 9998 -j ACCEPT

Restart iptables:

Code Block
languagesql
# service iptables restart

...

For related articles, see:

...

...

...