Skip to content

Commit

Permalink
docs: add protocols to rich and zones
Browse files Browse the repository at this point in the history
  • Loading branch information
TorontoMedia committed Jul 17, 2022
1 parent e1aacbf commit 3aa5f0c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions doc/xml/firewalld.richlanguage.xml
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,12 @@ service name="service name"
<title>Port</title>
<para>
<programlisting>
port port="port value" protocol="tcp|udp"
port port="port value" protocol="tcp|udp|sctp|dccp"
</programlisting>
</para>
<para>
The port <replaceable>port value</replaceable> can either be a single port number <replaceable>portid</replaceable> or a port range <replaceable>portid</replaceable>-<replaceable>portid</replaceable>. The protocol can either be <replaceable>tcp</replaceable> or <replaceable>udp</replaceable>.
The port <replaceable>port value</replaceable> can either be a single port number <replaceable>portid</replaceable> or a port range <replaceable>portid</replaceable>-<replaceable>portid</replaceable>.
The protocol can either be <literal>tcp</literal>, <literal>udp</literal>, <literal>sctp</literal> or <literal>dccp</literal>.
</para>
</refsect2>

Expand Down Expand Up @@ -242,14 +243,15 @@ icmp-type name="icmptype name"
<title>Forward-Port</title>
<para>
<programlisting>
forward-port port="port value" protocol="tcp|udp" to-port="port value" to-addr="address"
forward-port port="port value" protocol="tcp|udp|sctp|dccp" to-port="port value" to-addr="address"
</programlisting>
</para>
<para>
Forward port/packets from local port value with protocol "tcp" or "udp" to either another port locally or to another machine or to another port on another machine.
</para>
<para>
The port value can either be a single port number or a port range <replaceable>portid-portid</replaceable>. The <option>to-addr</option> is an IP address.
The port value can either be a single port number or a port range <replaceable>portid-portid</replaceable>. The <option>to-addr</option> is an IP address.
The protocol can either be <literal>tcp</literal>, <literal>udp</literal>, <literal>sctp</literal> or <literal>dccp</literal>.
</para>
<para>
It is not allowed to specify an action here. forward-port uses the action accept internally.
Expand All @@ -263,11 +265,12 @@ forward-port port="port value" protocol="tcp|udp" to-port="port value" to-addr="
<title>Source-Port</title>
<para>
<programlisting>
source-port port="port value" protocol="tcp|udp"
source-port port="port value" protocol="tcp|udp|sctp|dccp"
</programlisting>
</para>
<para>
The source-port <replaceable>port value</replaceable> can either be a single port number <replaceable>portid</replaceable> or a port range <replaceable>portid</replaceable>-<replaceable>portid</replaceable>. The protocol can either be <replaceable>tcp</replaceable> or <replaceable>udp</replaceable>.
The source-port <replaceable>port value</replaceable> can either be a single port number <replaceable>portid</replaceable> or a port range <replaceable>portid</replaceable>-<replaceable>portid</replaceable>.
The protocol can either be <literal>tcp</literal>, <literal>udp</literal>, <literal>sctp</literal> or <literal>dccp</literal>.
</para>
</refsect2>

Expand Down
2 changes: 1 addition & 1 deletion doc/xml/firewalld.zones.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
<refsect3>
<title>Ports and protocols</title>
<para>
Definition of <literal>tcp</literal> or <literal>udp</literal> ports, where ports can be a single port or a port range.
Definition of <literal>tcp</literal>, <literal>udp</literal>, <literal>sctp</literal> or <literal>dccp</literal> ports, where ports can be a single port or a port range.
</para>
</refsect3>

Expand Down

0 comments on commit 3aa5f0c

Please sign in to comment.