mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
ufw: refresh page (#23095)
* ufw: refresh page * ufw: fix typo * Update pages/linux/ufw.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> * Update pages/linux/ufw.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> * Update pages/linux/ufw.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> * Update pages/linux/ufw.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> * Update pages/linux/ufw.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> * Update pages/linux/ufw.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> --------- Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
This commit is contained in:
+7
-7
@@ -2,15 +2,11 @@
|
||||
|
||||
> Uncomplicated Firewall.
|
||||
> Frontend for `iptables` aiming to make configuration of a firewall easier.
|
||||
> More information: <https://wiki.ubuntu.com/UncomplicatedFirewall>.
|
||||
> More information: <https://manned.org/ufw>.
|
||||
|
||||
- Enable `ufw`:
|
||||
- Enable/Disable `ufw`:
|
||||
|
||||
`sudo ufw enable`
|
||||
|
||||
- Disable `ufw`:
|
||||
|
||||
`sudo ufw disable`
|
||||
`sudo ufw {{enable|disable}}`
|
||||
|
||||
- Show `ufw` rules, along with their numbers:
|
||||
|
||||
@@ -24,6 +20,10 @@
|
||||
|
||||
`sudo ufw allow proto tcp from 192.168.0.4 to any port 22`
|
||||
|
||||
- Allow traffic from any IP on the 192.168.0/24 subnet on this host, through port 53, only on the eth0 interface:
|
||||
|
||||
`sudo ufw allow in on eth0 from 192.168.0.0/24 to any port 53`
|
||||
|
||||
- Deny traffic on port 80 on this host:
|
||||
|
||||
`sudo ufw deny 80`
|
||||
|
||||
Reference in New Issue
Block a user