16.8 Configuring the Firewall from the Command Line using ufw
All of the firewall configuration options available through the graphical gufw tool are also available from the underlying command line using ufw command.
To enable or disable the firewall:
# ufw enable
# ufw disable
The current status of the firewall may be obtained using the status option:
# ufw status
Status: active
To Action From
-- ------ ----
22 ALLOW 192.168.86.30
For more details status information, combine the above command with the verbose option:
# ufw status verbose
Status: active
Logging: on (full)
Default: deny (incoming), allow (outgoing), deny (routed)
New profiles: skip
To Action From
-- ------ ----
22 ALLOW IN 192.168.86.30
The output in the above example...