文書更新:2020年03月20日(金) 午前10時58分48秒

Home > 備忘録(Fedora) > firewall > firewalld-cmd のヘルプ( 139 )

firewalld-cmd のヘルプ

Usage: firewall-cmd [OPTIONS...]
  1. General Options
  2. OPTIONS説明
    -h, --helpPrints a short help text and exists
    -V, --versionPrint the version string of firewalld
    -q, --quietDo not print status messages

  3. Status Options
  4. OPTIONS説明
    --stateReturn and print firewalld state
    --reloadReload firewall and keep state information
    --complete-reloadReload firewall and lose state information
    --runtime-to-permanentCreate permanent from runtime configuration
    --check-configCheck permanent configuration for errors

  5. Log Denied Options
  6. OPTIONS説明
    --get-log-deniedPrint the log denied value
    --set-log-denied=<value>Set log denied value

  7. Automatic Helpers Options
  8. OPTIONS説明
    --get-automatic-helpersPrint the automatic helpers value
    --set-automatic-helpers=<value>Set automatic helpers value

  9. Permanent Options
  10. OPTIONS説明
    --permanentSet an option permanently
    Usable for options marked with [P]

  11. Zone Options
  12. OPTIONS説明
    --get-default-zonePrint default zone for connections and interfaces
    --set-default-zone=<zone>Set default zone
    --get-active-zonesPrint currently active zones
    --get-zonesPrint predefined zones [P]
    --get-servicesPrint predefined services [P]
    --get-icmptypesPrint predefined icmptypes [P]
    --get-zone-of-interface=<interface>Print name of the zone the interface is bound to [P]
    --get-zone-of-source=<source>[/<mask>]|<MAC>|ipset:<ipset>Print name of the zone the source is bound to [P]
    --list-all-zonesList everything added for or enabled in all zones [P]
    --new-zone=<zone>Add a new zone [P only]
    --new-zone-from-file=<filename> [--name=<zone>]Add a new zone from file with optional name [P only]
    --delete-zone=<zone>Delete an existing zone [P only]
    --new-zone-from-file=<filename> [--name=<zone>]Add a new zone from file with optional name [P only]
    --delete-zone=<zone>Delete an existing zone [P only]
    --load-zone-defaults=<zone>Load zone default settings [P only] [Z]
    --zone=<zone>Use this zone to set or query options, else default zone
    Usable for options marked with [Z]
    --get-targetGet the zone target [P only] [Z]
    --set-target=<target>Set the zone target [P only] [Z]
    --info-zone=<zone>Print information about a zone
    --path-zone=<zone>Print file path of a zone [P only]

  13. IPSet Options
  14. OPTIONS説明
    --get-ipset-typesPrint the supported ipset types
    --new-ipset=<ipset> --type=<ipset type> [--option=<key>[=<value>]]..Add a new ipset [P only]
    --new-ipset-from-file=<filename> [--name=<ipset>]Add a new ipset from file with optional name [P only]
    --delete-ipset=<ipset>Delete an existing ipset [P only]
    --load-ipset-defaults=<ipset>Load ipset default settings [P only]
    --info-ipset=<ipset>Print information about an ipset
    --path-ipset=<ipset>Print file path of an ipset [P only]
    --get-ipsetsPrint predefined ipsets
    --ipset=<ipset> --set-description=<description>Set new description to ipset [P only]
    --ipset=<ipset> --get-descriptionPrint description for ipset [P only]
    --ipset=<ipset> --set-short=<description>Set new short description to ipset [P only]
    --ipset=<ipset> --get-shortPrint short description for ipset [P only]
    --ipset=<ipset> --add-entry=<entry>Add a new entry to an ipset [P]
    --ipset=<ipset> --remove-entry=<entry>Remove an entry from an ipset [P]
    --ipset=<ipset> --query-entry=<entry>Return whether ipset has an entry [P]
    --ipset=<ipset> --get-entriesList entries of an ipset [P]
    --ipset=<ipset> --add-entries-from-file=<entry>Add a new entries to an ipset [P]
    --ipset=<ipset> --remove-entries-from-file=<entry>Remove entries from an ipset [P]

  15. IcmpType Options
  16. OPTIONS説明
    --new-icmptype=<icmptype>Add a new icmptype [P only]
    --new-icmptype-from-file=<filename> [--name=<icmptype>]Add a new icmptype from file with optional name [P only]
    --delete-icmptype=<icmptype>Delete an existing icmptype [P only]
    --load-icmptype-defaults=<icmptype>Load icmptype default settings [P only]
    --info-icmptype=<icmptype>Print information about an icmptype
    --path-icmptype=<icmptype>Print file path of an icmptype [P only]
    --icmptype=<icmptype> --set-description=<description>Set new description to icmptype [P only]
    --icmptype=<icmptype> --get-descriptionPrint description for icmptype [P only]
    --icmptype=<icmptype> --set-short=<description>Set new short description to icmptype [P only]
    --icmptype=<icmptype> --get-shortPrint short description for icmptype [P only]
    --icmptype=<icmptype> --add-destination=<ipv>Enable destination for ipv in icmptype [P only]
    --icmptype=<icmptype> --remove-destination=<ipv>Disable destination for ipv in icmptype [P only]
    --icmptype=<icmptype> --query-destination=<ipv>Return whether destination ipv is enabled in icmptype [P only]
    --icmptype=<icmptype> --get-destinationsList destinations in icmptype [P only]

  17. Service Options
  18. OPTIONS説明
    --new-service=<service>Add a new service [P only]
    --new-service-from-file=<filename> [--name=<service>]Add a new service from file with optional name [P only]
    --delete-service=<service>Delete an existing service [P only]
    --load-service-defaults=<service>Load icmptype default settings [P only]
    --info-service=<service>Print information about a service
    --path-service=<service>Print file path of a service [P only]
    --service=<service> --set-description=<description>Set new description to service [P only]
    --service=<service> --get-descriptionPrint description for service [P only]
    --service=<service> --set-short=<description>Set new short description to service [P only]
    --service=<service> --get-shortPrint short description for service [P only]
    --service=<service> --add-port=<portid>[-<portid>]/<protocol>Add a new port to service [P only]
    --service=<service> --remove-port=<portid>[-<portid>]/<protocol>Remove a port from service [P only]
    --service=<service> --query-port=<portid>[-<portid>]/<protocol>Return whether the port has been added for service [P only]
    --service=<service> --get-portsList ports of service [P only]
    --service=<service> --add-protocol=<protocol>Add a new protocol to service [P only]
    --service=<service> --remove-protocol=<protocol>Remove a protocol from service [P only]
    --service=<service> --query-protocol=<protocol>Return whether the protocol has been added for service [P only]
    --service=<service> --get-protocolsList protocols of service [P only]
    --service=<service> --add-source-port=<portid>[-<portid>]/<protocol>Add a new source port to service [P only]
    --service=<service> --remove-source-port=<portid>[-<portid>]/<protocol>Remove a source port from service [P only]
    --service=<service> --query-source-port=<portid>[-<portid>]/<protocol>Return whether the source port has been added for service [P only]
    --service=<service> --get-source-portsList source ports of service [P only]
    --service=<service> --add-module=<module>Add a new module to service [P only]
    --service=<service> --remove-module=<module>Remove a module from service [P only]
    --service=<service> --query-module=<module>Return whether the module has been added for service [P only]
    --service=<service> --get-modulesList modules of service [P only]
    --service=<service> --set-destination=<ipv>:<address>[/<mask>]Set destination for ipv to address in service [P only]
    --service=<service> --remove-destination=<ipv>Disable destination for ipv i service [P only]
    --service=<service> --query-destination=<ipv>:<address>[/<mask>]Return whether destination ipv is set for service [P only]
    --service=<service> --get-destinationsList destinations in service [P only]
    --service=<service> --add-include=<service>Add a new include to service [P only]
    --service=<service> --remove-include=<service>Remove a include from service [P only]
    --service=<service> --query-include=<service>Return whether the include has been added for service [P only]
    --service=<service> --get-includesList includes of service [P only]

  19. Options to Adapt and Query Zones
  20. OPTIONS説明
    --list-allList everything added for or enabled in a zone [P] [Z]
    --list-servicesList services added for a zone [P] [Z]
    --timeout=<timeval>Enable an option for timeval time, where timeval is a number followed by one of letters 's' or 'm' or 'h'
    Usable for options marked with [T]
    --set-description=<description>Set new description to zone [P only] [Z]
    --get-descriptionPrint description for zone [P only] [Z]
    --set-short=<description>Set new short description to zone [P only] [Z]
    --get-shortPrint short description for zone [P only] [Z]
    --add-service=<service>Add a service for a zone [P] [Z] [T]
    --remove-service=<service>Remove a service from a zone [P] [Z]
    --query-service=<service>Return whether service has been added for a zone [P] [Z]
    --list-portsList ports added for a zone [P] [Z]
    --add-port=<portid>[-<portid>]/<protocol>Add the port for a zone [P] [Z] [T]
    --remove-port=<portid>[-<portid>]/<protocol>Remove the port from a zone [P] [Z]
    --query-port=<portid>[-<portid>]/<protocol>Return whether the port has been added for zone [P] [Z]
    --list-protocolsList protocols added for a zone [P] [Z]
    --add-protocol=<protocol>Add the protocol for a zone [P] [Z] [T]
    --remove-protocol=<protocol>Remove the protocol from a zone [P] [Z]
    --query-protocol=<protocol>Return whether the protocol has been added for zone [P] [Z]
    --list-source-portsList source ports added for a zone [P] [Z]
    --add-source-port=<portid>[-<portid>]/<protocol>Add the source port for a zone [P] [Z] [T]
    --remove-source-port=<portid>[-<portid>]/<protocol>Remove the source port from a zone [P] [Z]
    --query-source-port=<portid>[-<portid>]/<protocol>Return whether the source port has been added for zone [P] [Z]
    --list-icmp-blocksList Internet ICMP type blocks added for a zone [P] [Z]
    --add-icmp-block=<icmptype>Add an ICMP block for a zone [P] [Z] [T]
    --remove-icmp-block=<icmptype>Remove the ICMP block from a zone [P] [Z]
    --query-icmp-block=<icmptype>Return whether an ICMP block has been added for a zone [P] [Z]
    --add-icmp-block-inversionEnable inversion of icmp blocks for a zone [P] [Z]
    --remove-icmp-block-inversionDisable inversion of icmp blocks for a zone [P] [Z]
    --query-icmp-block-inversionReturn whether inversion of icmp blocks has been enabled for a zone [P] [Z]
    --list-forward-portsList IPv4 forward ports added for a zone [P] [Z]
    --add-forward-port=port=<portid>[-<portid>]:proto=<protocol>[:toport=<portid>[-<portid>]][:toaddr=<address>[/<mask>]]Add the IPv4 forward port for a zone [P] [Z] [T]
    --remove-forward-port=port=<portid>[-<portid>]:proto=<protocol>[:toport=<portid>[-<portid>]][:toaddr=<address>[/<mask>]]Remove the IPv4 forward port from a zone [P] [Z]
    --query-forward-port=port=<portid>[-<portid>]:proto=<protocol>[:toport=<portid>[-<portid>]][:toaddr=<address>[/<mask>]]Return whether the IPv4 forward port has been added for a zone [P] [Z]
    --add-masqueradeEnable IPv4 masquerade for a zone [P] [Z] [T]
    --remove-masqueradeDisable IPv4 masquerade for a zone [P] [Z]
    --query-masqueradeReturn whether IPv4 masquerading has been enabled for a zone [P] [Z]
    --list-rich-rulesList rich language rules added for a zone [P] [Z]
    --add-rich-rule=<rule>Add rich language rule 'rule' for a zone [P] [Z] [T]
    --remove-rich-rule=<rule>Remove rich language rule 'rule' from a zone [P] [Z]
    --query-rich-rule=<rule>Return whether a rich language rule 'rule' has been added for a zone [P] [Z]

  21. Options to Handle Bindings of Interfaces
  22. OPTIONS説明
    --list-interfacesList interfaces that are bound to a zone [P] [Z]
    --add-interface=<interface>Bind the <interface> to a zone [P] [Z]
    --change-interface=<interface>Change zone the <interface> is bound to [P] [Z]
    --query-interface=<interface>Query whether <interface> is bound to a zone [P] [Z]
    --remove-interface=<interface>Remove binding of <interface> from a zone [P] [Z]

  23. Options to Handle Bindings of Sources
  24. OPTIONS説明
    --list-sourcesList sources that are bound to a zone [P] [Z]
    --add-source=<source>[/<mask>]|<MAC>|ipset:<ipset>Bind the source to a zone [P] [Z]
    --change-source=<source>[/<mask>]|<MAC>|ipset:<ipset>Change zone the source is bound to [Z]
    --query-source=<source>[/<mask>]|<MAC>|ipset:<ipset>Query whether the source is bound to a zone [P] [Z]
    --remove-source=<source>[/<mask>]|<MAC>|ipset:<ipset>Remove binding of the source from a zone [P] [Z]

  25. Helper Options
  26. OPTIONS説明
    --new-helper=<helper> --module=<module> [--family=<family>]Add a new helper [P only]
    --new-helper-from-file=<filename> [--name=<helper>]Add a new helper from file with optional name [P only]
    --delete-helper=<helper>Delete an existing helper [P only]
    --load-helper-defaults=<helper>Load helper default settings [P only]
    --info-helper=<helper>Print information about an helper
    --path-helper=<helper>Print file path of an helper [P only]
    --get-helpersPrint predefined helpers
    --helper=<helper> --set-description=<description>Set new description to helper [P only]
    --helper=<helper> --get-descriptionPrint description for helper [P only]
    --helper=<helper> --set-short=<description>Set new short description to helper [P only]
    --helper=<helper> --get-shortPrint short description for helper [P only]
    --helper=<helper> --add-port=<portid>[-<portid>]/<protocol>Add a new port to helper [P only]
    --helper=<helper> --remove-port=<portid>[-<portid>]/<protocol>Remove a port from helper [P only]
    --helper=<helper> --query-port=<portid>[-<portid>]/<protocol>Return whether the port has been added for helper [P only]
    --helper=<helper> --get-portsList ports of helper [P only]
    --helper=<helper> --set-module=<module>Set module to helper [P only]
    --helper=<helper> --get-moduleGet module from helper [P only]
    --helper=<helper> --set-family={ipv4|ipv6|}Set family for helper [P only]
    --helper=<helper> --get-familyGet module from helper [P only]

  27. Direct Options
  28. OPTIONS説明
    --directFirst option for all direct options
    --get-all-chainsGet all chains [P]
    --get-chains {ipv4|ipv6|eb} <table>Get all chains added to the table [P]
    --add-chain {ipv4|ipv6|eb} <table> <chain>Add a new chain to the table [P]
    --remove-chain {ipv4|ipv6|eb} <table> <chain>Remove the chain from the table [P]
    --query-chain {ipv4|ipv6|eb} <table> <chain>Return whether the chain has been added to the table [P]
    --get-all-rulesGet all rules [P]
    --get-rules {ipv4|ipv6|eb} <table> <chain>Get all rules added to chain in table [P]
    --add-rule {ipv4|ipv6|eb} <table> <chain> <priority> <arg>...Add rule to chain in table [P]
    --remove-rule {ipv4|ipv6|eb} <table> <chain> <priority> <arg>...Remove rule with priority from chain in table [P]
    --remove-rules {ipv4|ipv6|eb} <table> <chain>Remove rules from chain in table [P]
    --query-rule {ipv4|ipv6|eb} <table> <chain> <priority> <arg>...Return whether a rule with priority has been added to chain in table [P]
    --passthrough {ipv4|ipv6|eb} <arg>...Pass a command through (untracked by firewalld)
    --get-all-passthroughsGet all tracked passthrough rules [P]
    --get-passthroughs {ipv4|ipv6|eb} <arg>...Get tracked passthrough rules [P]
    --add-passthrough {ipv4|ipv6|eb} <arg>...Add a new tracked passthrough rule [P]
    --remove-passthrough {ipv4|ipv6|eb} <arg>...Remove a tracked passthrough rule [P]
    --query-passthrough {ipv4|ipv6|eb} <arg>...Return whether the tracked passthrough rule has been added [P]

  29. Lockdown Options
  30. OPTIONS説明
    --lockdown-onEnable lockdown.
    --lockdown-offDisable lockdown.
    --query-lockdownQuery whether lockdown is enabled

  31. Lockdown Whitelist Options
  32. OPTIONS説明
    --list-lockdown-whitelist-commandsList all command lines that are on the whitelist [P]
    --add-lockdown-whitelist-command=<command>Add the command to the whitelist [P]
    --remove-lockdown-whitelist-command=<command>Remove the command from the whitelist [P]
    --query-lockdown-whitelist-command=<command>Query whether the command is on the whitelist [P]
    --list-lockdown-whitelist-contextsList all contexts that are on the whitelist [P]
    --add-lockdown-whitelist-context=<context>Add the context context to the whitelist [P]
    --remove-lockdown-whitelist-context=<context>Remove the context from the whitelist [P]
    --query-lockdown-whitelist-context=<context>Query whether the context is on the whitelist [P]
    --list-lockdown-whitelist-uidsList all user ids that are on the whitelist [P]
    --add-lockdown-whitelist-uid=<uid>Add the user id uid to the whitelist [P]
    --remove-lockdown-whitelist-uid=<uid>Remove the user id uid from the whitelist [P]
    --query-lockdown-whitelist-uid=<uid>Query whether the user id uid is on the whitelist [P]
    --list-lockdown-whitelist-usersList all user names that are on the whitelist [P]
    --add-lockdown-whitelist-user=<user>Add the user name user to the whitelist [P]
    --remove-lockdown-whitelist-user=<user>Remove the user name user from the whitelist [P]
    --query-lockdown-whitelist-user=<user>Query whether the user name user is on the whitelist [P]

  33. Panic Options
  34. OPTIONS説明
    --panic-onEnable panic mode
    --panic-offDisable panic mode
    --query-panicQuery whether panic mode is enabled