Hello Guys,
As the title does
I am using Ubuntu 20.04 and I would like to use iptables instead of using ufw
So I disable ufw firewall
root@Ubunserver:~# systemctl stop ufw
root@Ubunserver:~# systemctl disable ufw
root@Ubunserver:~# systemctl mask ufw
root@Ubunserver:~# systemctl is-active ufw
inactive
root@Ubunserver:~#
Then I start and enable iptables
root@Ubunserver:~# systemctl start iptables
Failed to start iptables.service: Unit iptables.service not found.
root@Ubunserver:~#
The outcome told me that I need to install iptables.service. So I tried to run
root@Ubunserver:~# apt install iptables.service
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package iptables.service
E: Couldn't find any package by glob 'iptables.service'
root@Ubunserver:~# apt install iptables.services
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package iptables.services
E: Couldn't find any package by glob 'iptables.services'
root@Ubunserver:~# apt install iptables-services
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package iptables-services
root@Ubunserver:~# apt install iptables-service
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package iptables-service
root@Ubunserver:~#
I could not find the iptables.service to install
So how to fix this?
Thanks!