You can open a port in FirewallD using the ‘firewall-cmd’ command followed by ‘–permanent’, ‘–zone=public’, and ‘–add-port’ with the port number and protocol. For example, ‘firewall-cmd –permanent –zone=public –add-port=3128/tcp’ opens port 3128 for TCP traffic.