# firewall-cmd --zone=public --list-services
dhcpv6-client ldap ssh ldaps
# firewall-cmd --zone=public --list-ports
9830/tcp
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....
How to block port 389 when ldap is allowed as a service
-
- Posts: 39
- Joined: 2017/02/28 20:46:44
-
- Posts: 2019
- Joined: 2015/02/17 15:14:33
- Location: Bulgaria
- Contact:
Re: How to block port 389 when ldap is allowed as a service
It seems that service "ldap" contains only that port, so you can safely remove it from your configuration:# firewall-cmd --info-service=ldap
ldap
ports: 389/tcp
protocols:
source-ports:
modules:
destination:
Code: Select all
firewall-cmd --permanent --remove-service=ldap && firewall-cmd --reload
-
- Posts: 39
- Joined: 2017/02/28 20:46:44