Knowledge Base

How do I add an IP to the whitelist in CentOS?

To add an IP to the whitelist, you have to execute the following commands

firewall-cmd --permanent --zone=public --add-source=$IP

firewall-cmd --reload

Please rate this article to help us improve our Knowledge Base.

0 0