1.7. Opening the ports required by IdM
You can open the required ports that IdM uses to communicate with its services.
Procedure
Verify that the
firewalldservice is running.To find out if
firewalldis currently running:# systemctl status firewalld.serviceTo start
firewalldand configure it to start automatically when the system boots:# systemctl start firewalld.service # systemctl enable firewalld.service
Open the required ports using the
firewall-cmdutility. Choose one of the following options:Add the individual ports to the firewall by using the
firewall-cmd --add-portcommand. For example, to open the ports in the default zone:# firewall-cmd --permanent --add-port={80/tcp,443/tcp,389/tcp,636/tcp,88/tcp,88/udp,464/tcp,464/udp,53/tcp,53/udp}Add the
firewalldservices to the firewall by using thefirewall-cmd --add-servicecommand. For example, to open the ports in the default zone:# firewall-cmd --permanent --add-service={freeipa-4,dns}For details on using
firewall-cmdto open ports on a system, see the firewall-cmd(1) man page.
Reload the
firewall-cmdconfiguration to ensure that the change takes place immediately:# firewall-cmd --reloadNote that reloading
firewalldon a system in production can cause DNS connection time outs. If required, to avoid the risk of time outs and to make the changes persistent on the running system, use the--runtime-to-permanentoption of thefirewall-cmdcommand, for example:# firewall-cmd --runtime-to-permanent
Verification
Log in to a host on the client subnet and use the
nmaporncutilities to connect to the opened ports or run a port scan.For example, to scan the ports that are required for TCP traffic:
$ nmap -p 80,443,389,636,88,464,53 server.idm.example.com [...] PORT STATE SERVICE 53/tcp open domain 80/tcp open http 88/tcp open kerberos-sec 389/tcp open ldap 443/tcp open https 464/tcp open kpasswd5 636/tcp open ldapsslTo scan the ports that are required for UDP traffic:
# nmap -sU -p 88,464,53 server.idm.example.com [...] PORT STATE SERVICE 53/udp open domain 88/udp open|filtered kerberos-sec 464/udp open|filtered kpasswd5
You also have to open network-based firewalls for both incoming and outgoing traffic.