User Tools

Site Tools


cheatsheet:ufw

ufw firewall command cheatsheet

allow rules

$ sudo ufw allow 12345/udp
Rules updated
Rules updated (v6)
 
$ sudo ufw allow ssh
Rules updated
Rules updated (v6)

ufw enable / disable

$ sudo ufw enable
Command may disrupt existing ssh connections. Proceed with operation (y|n)? y
Firewall is active and enabled on system startup

ufw status

$ sudo ufw status
Status: active
 
To                         Action      From
--                         ------      ----
12345/udp                  ALLOW       Anywhere
88/tcp                     ALLOW       Anywhere
12345/udp (v6)             ALLOW       Anywhere (v6)
88/tcp (v6)                ALLOW       Anywhere (v6)
cheatsheet/ufw.txt · Last modified: 2023/02/14 10:22 by kamaradski