Firewalld tips & tricks

Jun 18, 2019 17:19 · 22 words · 1 minute read firewalld tips

Show all rules

sudo firewall-cmd --list-all

Redirect ports

sudo firewall-cmd --zone="$(firewall-cmd --get-default-zone)" \
  --add-forward-port=port=443:proto=tcp:toport=8443 --permanent
sudo firewall-cmd --zone="$(firewall-cmd --get-default-zone)" \
  --add-forward-port=port=80:proto=tcp:toport=8080 --permanent
tweet Share