小编Mat*_*ell的帖子

如何让 ufw 在启动时启动?

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)

如果我强制重新加载它会正常工作: …

firewall ufw systemd

10
推荐指数
1
解决办法
2万
查看次数

损坏的 /etc/adduser.conf

我的 /etc/adduser.conf 文件已损坏:

$ less /etc/adduser.conf
"/etc/adduser.conf" may be a binary file.  See it anyway? 
Run Code Online (Sandbox Code Playgroud)

如何重新安装新副本?

adduser

6
推荐指数
2
解决办法
923
查看次数

标签 统计

adduser ×1

firewall ×1

systemd ×1

ufw ×1