Gangmax Blog

自由之思想,独立之精神

Open Port on CentOS

| Comments

It seems by default CentOS doesn’t allow network be accessed from outside. Here are the instructions how to make it work on CentOS 7. From here.

1
2
3
4
5
6
# Add port.
sudo firewall-cmd --zone=public --add-port=8080/tcp --permanent
# Reload rules.
sudo firewall-cmd --reload
# Check the updated rules.
sudo firewall-cmd --list-all

Comments