ufw Firewall deshabilitado después del reinicio

ufw Firewall deshabilitado después del reinicio

En Debian Buster he instalado el Firewall UFW

Sin embargo, después de habilitar

$ ufw enable
Command may disrupt existing ssh connections. Proceed with operation (y|n)? y
Firewall is active and enabled on system startup

El Firewall se desactiva después del reinicio

$ ufw status
Status: inactive

El archivo de configuración se ve así:

nano /etc/ufw/ufw.conf
ENABLED=yes

¡Se agradece mucho la ayuda!

Respuesta1

Debe habilitar el servicio con un administrador de servicios.

sudo systemctl start ufw    # starts the service 
sudo systemctl enable ufw   # starts the service on boot

Respuesta2

ufw enabledebería hacer lo mismo. Vea el primer resultado:

Firewall is active and enabled on system startup

Sin embargo, tu sugerencia:

$ sudo systemctl enable ufw
Synchronizing state of ufw.service with SysV service script with /lib/systemd/systemd- 
sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable ufw

No tiene efecto:

$ ufw status
Status: inactive

información relacionada