Firewall rules for cloud

0

To open up a new port (e.g., TCP/8000) permanently, use these commands.

$ sudo firewall-cmd –zone=public –add-port=8000/tcp –permanent
$ sudo firewall-cmd –reload

Without “–permanent” flag, the firewall rule would not persist across reboots.

Check the updated rules with:

$ firewall-cmd –list-all

Share.

About Author

Leave A Reply