UFW 不会在启动时为我启动。我的/etc/ufw/ufw.conf文件看起来像这样:
# /etc/ufw/ufw.conf
#
# Set to yes to start on boot. If setting this remotely, be sure to add a rule
# to allow your remote connection before starting ufw. Eg: 'ufw allow 22/tcp'
ENABLED=yes
# Please use the 'ufw' command to set the loglevel. Eg: 'ufw logging medium'.
# See 'man ufw' for details.
LOGLEVEL=low
Run Code Online (Sandbox Code Playgroud)
所以看起来它应该可以正常启动。但是在启动后我总是得到这个:
$ sudo ufw status
Status: inactive
Run Code Online (Sandbox Code Playgroud)
使用“服务”脚本启动它似乎不起作用:
$ sudo service ufw start
$ sudo ufw status
Status: inactive
Run Code Online (Sandbox Code Playgroud)
如果我强制重新加载它会正常工作: …
我的 /etc/adduser.conf 文件已损坏:
$ less /etc/adduser.conf
"/etc/adduser.conf" may be a binary file. See it anyway?
Run Code Online (Sandbox Code Playgroud)
如何重新安装新副本?