Friday 21 August 2015

How to open a tcp port 1031 in redhat linux?


Open the iptables file and add the line and restart the iptable service .

vi /etc/sysconfig/iptables
add below entry
-A INPUT -m state --state NEW -m tcp -p tcp --dport 1031 -j ACCEPT
:wq


To stop iptables
++++++++++
service iptables stop

To start iptables
++++++++++
service iptables start

To check status
++++++++++
service iptables status

Also we can do restart
++++++++++++++
service iptables restart

No comments:

Post a Comment