aboutsummaryrefslogtreecommitdiffhomepage
path: root/network
diff options
context:
space:
mode:
authorjohannst <johannst@users.noreply.github.com>2024-02-15 23:29:57 +0000
committerjohannst <johannst@users.noreply.github.com>2024-02-15 23:29:57 +0000
commitbac8a5d2822835cf47175d1162030653fadd5c09 (patch)
tree28f312a114cf95ac799daac2a2caec4b8612d84d /network
parentbfc5ce4bc01e5eb28969eefcc01ecfefa2601fdf (diff)
downloadnotes-bac8a5d2822835cf47175d1162030653fadd5c09.tar.gz
notes-bac8a5d2822835cf47175d1162030653fadd5c09.zip
deploy: 4485708c972815bbb6df7f5a228683aa855d553d
Diffstat (limited to 'network')
-rw-r--r--network/firewall-cmd.html4
-rw-r--r--network/tshark.html2
2 files changed, 3 insertions, 3 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 &lt;SERVICE&gt;
# 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=&quot;ipv4&quot; forward-port port=&quot;80&quot; protocol=&quot;tcp&quot; to-port=&quot;8080&quot;'
+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 &lt;SERVICE&gt;
# Remove port.
firewall-cmd --remove-port 8000/tcp
# Remove rich rule.
-firewall-cmd --remove-rich-rule 'rule family=&quot;ipv4&quot; forward-port port=&quot;80&quot; protocol=&quot;tcp&quot; to-port=&quot;8080&quot;'
+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>
diff --git a/network/tshark.html b/network/tshark.html
index 661bf35..c5c3c41 100644
--- a/network/tshark.html
+++ b/network/tshark.html
@@ -195,7 +195,7 @@ tcp.dstport == 80 Filter for tcp destinatio port.
tcp/udp/ssh/wg/... Filter for protocol.
-&quot;and/or/not/!&quot; and &quot;()&quot; can be used to build filter expressions.
+"and/or/not/!" and "()" can be used to build filter expressions.
</code></pre>
<blockquote>
<p>Use <code>tshak -G</code> to list all fields that can be used in display filters.</p>