Nocser Technology
Please Login or Register

Knowledgebase

Accept a different port# in iptables

Login as root

cp /etc/sysconfig/iptables /etc/sysconfig/iptables-ori01
nano /etc/sysconfig/iptables

Search for words "COMMIT"
Before COMMIT enter below:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport PORTNUMBER -j ACCEPT

Change the PORTNUMBER to the portnumber you want to allowed to access the server.



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read

Powered by WHMCompleteSolution

Language:

Quick Navigation

Client Login

Email

Password

Remember Me

Search



Follow Us on Twitter