Skip to content

Commit

Permalink
docs: add supported protocol options
Browse files Browse the repository at this point in the history
  • Loading branch information
TorontoMedia committed Jul 18, 2022
1 parent 558aa82 commit b1249a5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion documentation/helper/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ The port string can be a single port number or a port range portid-portid or als

protocol="string"

The protocol value can either be tcp or udp.
The protocol value can either be tcp, udp, sctp, or dccp.
4 changes: 2 additions & 2 deletions documentation/service/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ The port string can be a single port number or a port range portid-portid or als

protocol="string"

The protocol value can either be tcp or udp.
The protocol value can either be tcp, udp, sctp, or dccp.

For compatibility with older firewalld versions, it is possible to add protocols with the port option where the port is empty. With the addition of native protocol support in the service, this it not needed anymore. These entries will automatically be converted to protocols. With the next modification of the service file, the entries will be listed as protocols.

Expand All @@ -55,7 +55,7 @@ The port string can be a single port number or a port range portid-portid.

protocol="string"

The protocol value can either be tcp or udp.
The protocol value can either be tcp, udp, sctp, or dccp.

## module

Expand Down
18 changes: 9 additions & 9 deletions documentation/zone/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ Is an optional empty-element tag and can be used several times to have more than

The port can either be a single port number portid or a port range portid-portid.

protocol="tcp|udp"
protocol="tcp|udp|sctp|dccp"

The protocol can either be tcp or udp.
The protocol can either be tcp, udp, sctp, or dccp.

## protocol

Expand Down Expand Up @@ -105,9 +105,9 @@ The local port and protocol to be forwarded.

The port can either be a single port number portid or a port range portid-portid.

protocol="tcp|udp"
protocol="tcp|udp|sctp|dccp"

The protocol can either be tcp or udp.
The protocol can either be tcp, udp, sctp, or dccp.

### Optional attributes:

Expand All @@ -129,9 +129,9 @@ Is an optional empty-element tag and can be used several times to have more than

The port can either be a single port number portid or a port range portid-portid.

protocol="tcp|udp"
protocol="tcp|udp|sctp|dccp"

The protocol can either be tcp or udp.
The protocol can either be tcp, udp, sctp, or dccp.

## rule

Expand All @@ -144,12 +144,12 @@ The general rule structure:
[ <destination address="address[/mask]" [invert="True"]/> ]
[
<service name="string"/> |
<port port="portid[-portid]" protocol="tcp|udp"/> |
<port port="portid[-portid]" protocol="tcp|udp|sctp|dccp"/> |
<protocol value="protocol"/> |
<icmp-block name="icmptype"/> |
<masquerade/> |
<forward-port port="portid[-portid]" protocol="tcp|udp" [to-port="portid[-portid]"] [to-addr="address"]/> |
<source-port port="portid[-portid]" protocol="tcp|udp"/> |
<forward-port port="portid[-portid]" protocol="tcp|udp|sctp|dccp" [to-port="portid[-portid]"] [to-addr="address"]/> |
<source-port port="portid[-portid]" protocol="tcp|udp|sctp|dccp"/> |
]
[
<log [prefix="prefixtext"] [level="emerg|alert|crit|err|warn|notice|info|debug"]/> [<limit value="rate/duration"/>] </log> |
Expand Down
2 changes: 1 addition & 1 deletion documentation/zone/parts.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ A service is a combination of port and/or protocol entries. Optionally netfilter

### Ports, source ports and protocols

Definition of tcp or udp ports, where ports can be a single port or a port range.
Definition of tcp, udp, sctp, or dccp ports, where ports can be a single port or a port range.

### ICMP blocks

Expand Down

0 comments on commit b1249a5

Please sign in to comment.