I am currently studying iptables and ufw on Ubuntu server. While playing with them I came across an ambiguity about the true nature of the ufw.
Here is the problem:
When I run
sudo ufw statusin terminal, the output is
But when I run
sudo service ufw statusthe output is
Also ufw does not appear in the services list when I run
So my questions are:
- Is ufw a service?
- If yes, why it does not appear in the services list?
- If no, why the terminal answers when I ask about it's status as a service?
- What is the difference between
sudo ufw statusand
sudo service ufw status? And why I get different outputs for them?