UFW is an interface of iptables, the underlying Linux firewall ... can handle outside connections, such as a web server, you will require a firewall to be active to improve security.