1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-24 11:35:26 +02:00

ufw: use range in deny port example (#7881)

This commit is contained in:
nicolae-stroncea 2022-03-14 08:45:33 -04:00 committed by GitHub
parent 413c75950f
commit dba098e925
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,9 +28,9 @@
`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: