From bac8a5d2822835cf47175d1162030653fadd5c09 Mon Sep 17 00:00:00 2001 From: johannst Date: Thu, 15 Feb 2024 23:29:57 +0000 Subject: deploy: 4485708c972815bbb6df7f5a228683aa855d553d --- network/firewall-cmd.html | 4 ++-- network/tshark.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'network') 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"'

Remove entries

# 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"'
 

References