재부팅 후 ufw 방화벽이 비활성화됨

재부팅 후 ufw 방화벽이 비활성화됨

Debian Buster에 UFW 방화벽을 설치했습니다.

그러나 활성화한 후에는

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

재부팅 후 방화벽이 비활성화됩니다.

$ ufw status
Status: inactive

구성 파일은 다음과 같습니다.

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

도움이 매우 필요합니다!

답변1

서비스 관리자를 통해 서비스를 활성화해야 합니다.

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

답변2

ufw enable똑같이해야합니다. 첫 번째 출력을 참조하세요.

Firewall is active and enabled on system startup

그러나 귀하의 제안은 다음과 같습니다.

$ 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

효과가 없습니다:

$ ufw status
Status: inactive

관련 정보