There are many Open Source Hosting Control Panel comes with predefined firewall. VestaCP uses Iptables+Fail2ban. But sometimes the UFW firewall is the default firewall that ships standard with the Ubuntu Linux Distribution. UFW stands for Uncomplicated Firewall. We are removing ufw because we will use CSF (ConfigServer Security & Firewall :-  requires correct iptables configuration on host server) , So We will not remove default IPtables .
To enable the ufw firewall, open a new Terminal window and execute the following command:# sudo ufw enable# sudo ufw disable# sudo ufw status# sudo apt remove --auto-remove ufw
# sudo apt purge ufw
# sudo apt purge --auto-remove ufw
# sudo apt remove ufw How to remove firewalld from Ubuntu 16.04 (Xenial Xerus)?
Uninstall firewalld
To remove just firewalld package itself from Ubuntu 16.04 (Xenial Xerus) execute on terminal:
# sudo apt remove firewalldTo remove the firewalld package and any other dependant package which are no longer needed from Ubuntu Xenial.
# sudo apt remove --auto-remove firewalldIf you also want to delete configuration and/or data files of firewalld from Ubuntu Xenial then this will work:
# sudo apt purge firewalld# sudo apt purge --auto-remove firewalldMany Cloud provider provided custom OS with predefined firewall . So If you also want to remove fail2ban, Just run the following in your ubuntu terminal.
# sudo apt remove fail2ban
# sudo apt remove --auto-remove fail2ban
# sudo apt purge fail2ban
# sudo apt purge --auto-remove fail2ban 
Comments
Post a Comment
You are always welcome to comment here, but your remarks should be relevant to the conversation. To keep the exchanges focused and engaging, we reserve the right to remove off-topic comments, or self-promoting URLs and vacuous messages.
We will try to reply to your queries as soon as time allows.
Regards,
Admin