Giang Phạm
New member
How do I add a port to firewall in Linux?
Answer
Open or close server ports
Answer
Open or close server ports
- Log in to the server console.
- Execute the following command, replacing the PORT placeholder with the number of the port to be opened: Debian: sudo ufw allow PORT. CentOS: sudo firewall-cmd –zone=public –permanent –add-port=PORT/tcp sudo firewall-cmd –reload.