diff options
Diffstat (limited to 'src/network/firewall-cmd.md')
-rw-r--r-- | src/network/firewall-cmd.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/network/firewall-cmd.md b/src/network/firewall-cmd.md index 315bbd8..03c268a 100644 --- a/src/network/firewall-cmd.md +++ b/src/network/firewall-cmd.md @@ -21,6 +21,8 @@ firewall-cmd --list-ports 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"' ``` ## Remove entries @@ -29,6 +31,8 @@ firewall-cmd --add-port 8000/tcp 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"' ``` ## References |