mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-04 23:35:52 +02:00
ufw: use range in deny port example (#7881)
This commit is contained in:
parent
413c75950f
commit
dba098e925
1 changed files with 2 additions and 2 deletions
|
@ -28,9 +28,9 @@
|
||||||
|
|
||||||
`ufw deny {{80}}`
|
`ufw deny {{80}}`
|
||||||
|
|
||||||
- Deny all UDP traffic to port 22:
|
- Deny all UDP traffic to ports in range 8412:8500:
|
||||||
|
|
||||||
`ufw deny proto {{udp}} from {{any}} to {{any}} port {{22}}`
|
`ufw deny proto {{udp}} from {{any}} to {{any}} port {{8412:8500}}`
|
||||||
|
|
||||||
- Delete a particular rule. The rule number can be retrieved from the `ufw status numbered` command:
|
- Delete a particular rule. The rule number can be retrieved from the `ufw status numbered` command:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue