# firewall-cmd --zone=public --list-services
dhcpv6-client ldap ssh ldaps
# firewall-cmd --zone=public --list-ports
So, I am testing secure ldap and would like to block ldap(port 389), how do I do that without modifying the service?.....
Thanks in advance....
Issues related to configuring your network
3 posts • Page 1 of 1
It seems that service "ldap" contains only that port, so you can safely remove it from your configuration:# firewall-cmd --info-service=ldap
Code: Select all
firewall-cmd --permanent --remove-service=ldap && firewall-cmd --reload
Note: You can temporarily remove it (skip the "--permanent" and the reload) for a short test.