JAEN

Linux

firewall-cmd

CautionManage firewalld (RHEL)

firewall-cmd --list-all

RHEL-family firewall. Without --permanent changes are lost on reboot; apply with --reload.

Examples

  • firewall-cmd --add-service=https --permanent && firewall-cmd --reloadOpen HTTPS permanently

Syntax

firewall-cmd [--add-service=X] [--permanent] [--reload]

Before you run it

Closing SSH locks you out.

Related commands

  • iptablesManage iptables firewall
  • ufwUncomplicated Firewall

The same reference, with no signal at all

Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store