In Ubuntu 16.04, can we install firewalld services?
1 Answer
To switch do the following:
Stop iptables if in use:
sudo systemctl stop iptables
Make sure iptables are not used by your system anymore:
sudo systemctl mask iptables
Check its status:
sudo systemctl status iptables
Remove UFW if installed:
sudo apt-get remove ufw
Firewalld - Dynamic Firewall Manager
This replaces iptable as the preferred way to manage your firewall. Commands to use with firewalld includes:
Install
firewalld
:sudo apt install firewalld
Check its status:
sudo systemctl status firewalld
Enable or disable firewalld:
sudo systemctl [enable | disable ] firewalld
Starting and stoping it:
sudo systemctl [ start | stop ] firewalld
So to use it is simply to enable it as in steps 2, then use the man pages to get more information.
See here for more information on how to use firewalld
-
You left out "apt install firewalld" in the Firewalld section - it's not included in Ubuntu 16.04 by default Apr 7, 2018 at 4:04