问题描述
已经为ufw启用了自动重启功能,以前运行良好,但是我无法理解出了什么问题...
用例:
当我检查sudo ufw status
时
它显示-> Status: inactive
然后我启用它sudo ufw enable
它显示-> Command may disrupt existing ssh connections. Proceed with operation (y|n)?
我命中了-> y
它显示-> Firewall is active and enabled on system startup
然后我重新启动sudo reboot
重启后,当我再次检查ufw状态时,它显示为非活动状态。
尝试了以下操作:
-
在文件
lib/systemd/system/uwf.service
中 添加了行After=netfilter-persistent.service
-
在文件
etc/rc.local
中 添加了以下几行:ufw enable
exit 0
-
在文件
etc/ufw/ufw.conf
中 已启用ENABLED=yes
以前有人遇到过类似的问题吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)