Score:0

What is the behavior of a UFW rule that does not specify a protocol?

km flag

This is such a basic question I was surprised I couldn't find the answer, but here we are.

With the following rule:

22 ALLOW 192.168.1.0/24

Are all protocols allowed or is TCP assumed?

Score:1
us flag

This is directly answered in the manpage:

Users  can  specify rules using either a simple syntax or a full syntax. The simple syntax
only specifies the port and optionally the protocol to be allowed or denied on the host.

[...]

Example rules using the simple syntax:

  ufw allow 53

This  rule  will  allow  tcp  and  udp  port  53 to any address on this host. To specify a
protocol, append '/protocol' to the port. For example:

  ufw allow 25/tcp

This will allow tcp port 25 to any address on this host.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.