Nguyễn Thu Trang
New member
How do I add a port to firewall in Linux?
Answer
Edit firewall rules
Answer
Edit firewall rules
- Enter the following commands to open the preceding ports: firewall-cmd –zone=public –add-port=25/tcp –permanent. Repeat this command, replacing the port number, for each of the preceding ports.**
- List the rules on a given zone by running the following command: firewall-cmd –query-service=