ufwHow to get open ports
ufw status verbose
ctrl + c
status verbose will return list of current rules, including opened/closed ports |
Usage example
ufw status verbose
output
To Action From
-- ------ ----
80 DENY IN Anywhere
Anywhere ALLOW IN 1.2.3.4
80 (v6) DENY IN Anywhere (v6)