1 answer
+0
−0
You add a port to the public zone like so:
# firewall-cmd --zone=public --add-port=8080/tcp
Firewalld knows already many of the commonly used ports, so you might just use the service name instead:
# firewall-cmd --zone=public --add-service=kdeconnect
These changes won't persist over restarts. To make them persistent run:
# firewall-cmd --runtime-to-permanent
Or you might have used --permanent
option in the original commands, but usually it's good to test your changes first.
Official docs: https://firewalld.org/documentation/howto/open-a-port-or-service.html
0 comment threads