How do I allow firewall ports in Linux?

Việt Quân

New member
How do I allow firewall ports in Linux?
Answer
To open a different port:
  1. Log in to the server console.
  2. 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.
 

Tìm kiếm

Back
Top