tldr/pages/linux/ufw.md

29 lines
441 B
Markdown
Raw Normal View History

# ufw
> Uncomplicated Firewall.
> Frontend for iptables aiming to make configuration of a firewall easier.
- Enable ufw:
`ufw enable`
- Disable ufw:
`ufw disable`
2016-05-17 12:31:03 +01:00
- Show ufw rules:
`ufw status`
- Add ufw allow rule:
`ufw allow {{port}} {{service_name}}`
2016-05-17 12:31:03 +01:00
- Example: Allow access to port 1337 from IP 1.2.3.4 using udp:
2016-05-17 12:31:03 +01:00
`ufw allow from 1.2.3.4 to any port 1337 proto udp`
2016-05-17 12:31:03 +01:00
- Add ufw deny rule:
2016-05-17 12:31:03 +01:00
`ufw deny {{port}} {{service_name}}`