Server management - Vps and dedicated
Sunday, 01 March 2009 17:36
To open a port is very simple, logged in as root do this.
iptables -A INPUT -p udp -m udp --dport PORT -m state --state NEW -j ACCEPT
Where i have written PORT this is the port number you want opened
This example is when opening a sensitive port such as ssh, for security you can have only your IP address access it.
iptables -A INPUT -s YOURIPHERE -p tcp -m tcp --dport PORT -m state --state NEW -j ACCEPT
YOURIPHERE = your ip address
PORT = port you want opened
| < Prev | Next > |
|---|


