mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-01 17:17:56 +01:00
commit
fed6542a0e
1 changed files with 24 additions and 0 deletions
24
pages/linux/ufw.md
Normal file
24
pages/linux/ufw.md
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
# ufw
|
||||||
|
|
||||||
|
> Uncomplicated Firewall.
|
||||||
|
> Frontend for iptables aiming to make configuration of a firewall easier.
|
||||||
|
|
||||||
|
- Enable ufw:
|
||||||
|
|
||||||
|
`ufw enable`
|
||||||
|
|
||||||
|
- Disable ufw:
|
||||||
|
|
||||||
|
`ufw disable`
|
||||||
|
|
||||||
|
- Add ufw allow rule:
|
||||||
|
|
||||||
|
`ufw allow {{port}} {{service_name}}`
|
||||||
|
|
||||||
|
- Add ufw deny rule:
|
||||||
|
|
||||||
|
`ufw deny {{port}} {{service_name}}`
|
||||||
|
|
||||||
|
- Show ufw rules:
|
||||||
|
|
||||||
|
`ufw status`
|
Loading…
Reference in a new issue