mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-22 21:44:04 +02:00
Reordering the syntax to match with the description
This commit is contained in:
parent
7506047a39
commit
964f07132b
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@
|
|||
|
||||
- Allow only TCP traffic from 192.168.0.4 to any address on this host, on port 22:
|
||||
|
||||
`ufw allow from {{192.168.0.4}} to {{any}} port {{22}} proto {{tcp}}`
|
||||
`ufw allow proto {{tcp}} from {{192.168.0.4}} to {{any}} port {{22}}`
|
||||
|
||||
- Deny traffic on port 80 on this host:
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
|||
|
||||
- Deny all UDP traffic to port 22:
|
||||
|
||||
`ufw deny from {{any}} to {{any}} port {{22}} proto {{udp}}`
|
||||
`ufw deny proto {{udp}} from {{any}} to {{any}} port {{22}}`
|
||||
|
||||
- Remove a particular rule. The rule number can be retrieved from the `ufw status numbered` command:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue