ufw
Verify Status
sudo ufw status
#output
Status: inactive
--OR--
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), deny (routed)
New profiles: skipEnable the FW
sudo ufw enable
#output
Firewall is active and enabled on system startupDisable the FW
sudo ufw disableSee FW Rules
sudo ufw status
#output
Status: active
To Action From
-- ------ ----
Anywhere DENY 10.10.10.10 Change the Default Policy
View ufw App List
Block an IP Address/Subnet
Block Incoming Connections to a Network Interface
Allow Incoming Connections to a Network Interface
Allow an IP in
Deleting Rules
Allow by Application
Disable by Application
Credit and Further Reading
https://www.digitalocean.com/community/tutorials/ufw-essentials-common-firewall-rules-and-commands
Last updated