mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-25 04:15:25 +02:00
ufw: Add another example
This commit is contained in:
parent
d2de67f45b
commit
72ce264ee7
1 changed files with 8 additions and 4 deletions
|
@ -11,14 +11,18 @@
|
|||
|
||||
`ufw disable`
|
||||
|
||||
- Show ufw rules:
|
||||
|
||||
`ufw status`
|
||||
|
||||
- Add ufw allow rule:
|
||||
|
||||
`ufw allow {{port}} {{service_name}}`
|
||||
|
||||
- Example: Allow access to port 1337 from IP 1.2.3.4 using udp:
|
||||
|
||||
`ufw allow from 1.2.3.4 to any port 1337 proto udp`
|
||||
|
||||
- Add ufw deny rule:
|
||||
|
||||
`ufw deny {{port}} {{service_name}}`
|
||||
|
||||
- Show ufw rules:
|
||||
|
||||
`ufw status`
|
||||
|
|
Loading…
Add table
Reference in a new issue