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 and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store