Skip to content

Firewall commands

firewall-cmd is good at tab completion

Bash
# Show all firewall entries
$> firewall-cmd --list-all
Bash
# Persist a firewall entry
$> firewall-cmd --add-port=1111/tcp|udp