CrownCloud Wiki

CrownCloud - Internet Services

User Tools

Site Tools


opening_a_port_on_centos_6

Opening a port on CentOS 6

For example, if you want to open port 80,

iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT

In the above example, –dport 80 signifies the port number to be opened, replacing 80 with another port number opens that port, for example, if we wish to open port 8080,

iptables -A INPUT -p tcp -m tcp --dport 8080 -j ACCEPT
iptables-save
service iptables restart
opening_a_port_on_centos_6.txt · Last modified: 2015/10/27 12:19 by speedbus