linux server firewall settings code example Example: firewall linux $ sudo firewall-cmd --get-active-zones