diff --git a/pages/linux/ufw.md b/pages/linux/ufw.md index 99dbe74425..bc3d8a2711 100644 --- a/pages/linux/ufw.md +++ b/pages/linux/ufw.md @@ -2,15 +2,11 @@ > Uncomplicated Firewall. > Frontend for `iptables` aiming to make configuration of a firewall easier. -> More information: . +> More information: . -- 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`