diff options
Diffstat (limited to 'network/firewall-cmd.html')
-rw-r--r-- | network/firewall-cmd.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/network/firewall-cmd.html b/network/firewall-cmd.html index 13b6648..1dcb941 100644 --- a/network/firewall-cmd.html +++ b/network/firewall-cmd.html @@ -197,7 +197,7 @@ firewall-cmd --add-service <SERVICE> # Add a specific port. firewall-cmd --add-port 8000/tcp # Add a rich rule (eg port forwarding, dnat). -firewall-cmd --add-rich-rule 'rule family="ipv4" forward-port port="80" protocol="tcp" to-port="8080"' +firewall-cmd --add-rich-rule 'rule family="ipv4" forward-port port="80" protocol="tcp" to-port="8080"' </code></pre> <h2 id="remove-entries"><a class="header" href="#remove-entries">Remove entries</a></h2> <pre><code class="language-sh"># Remove service. @@ -205,7 +205,7 @@ firewall-cmd --remove-service <SERVICE> # Remove port. firewall-cmd --remove-port 8000/tcp # Remove rich rule. -firewall-cmd --remove-rich-rule 'rule family="ipv4" forward-port port="80" protocol="tcp" to-port="8080"' +firewall-cmd --remove-rich-rule 'rule family="ipv4" forward-port port="80" protocol="tcp" to-port="8080"' </code></pre> <h2 id="references"><a class="header" href="#references">References</a></h2> <ul> |