firewall for compute instance

0
https://www.ibm.com/support/pages/how-open-port-firewall-resilient-rhel

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