💾 Archived View for freeshell.de › tldr › firewall-cmd.gmi captured on 2022-04-28 at 18:29:11. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
The firewalld command-line client.
firewall-cmd --get-active-zones
firewall-cmd --list-all
firewall-cmd --permanent --zone={block} --change-interface={enp1s0}
firewall-cmd --permanent --zone={public} --add-service={https}
firewall-cmd --permanent --zone={public} --remove-service={http}
firewall-cmd --permanent --zone={public} --add-port={25565/tcp} --add-port={19132/udp}
firewall-cmd --reload
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).