本帖最后由 WeberCai 于 2025-1-17 14:42 编辑
为了能快速了解并处理您的问题,请提供以下基础信息:
问题描述:Docker安装Ubuntu24安装了宝塔面板后防火墙和SSH开关无法打开,用命令行操作也提示权限受限。
打开防火墙时提示:
启动防火墙失败: ERROR: problem running ufw-init iptables-restore v1.8.10 (nf_tables): Could not fetch rule set generation id: Permission denied (you must be root) iptables-restore v1.8.10 (nf_tables): Could not fetch rule set generation id: Permission denied (you must be root) iptables-restore v1.8.10 (nf_tables): Could not fetch rule set generation id: Permission denied (you must be root) iptables-restore v1.8.10 (nf_tables): Could not fetch rule set generation id: Permission denied (you must be root) iptables-restore v1.8.10 (nf_tables): Could not fetch rule set generation id: Permission denied (you must be root) iptables-restore v1.8.10 (nf_tables): Could not fetch rule set generation id: Permission denied (you must be root) iptables-restore v1.8.10 (nf_tables): Could not fetch rule set generation id: Permission denied (you must be root) iptables-restore v1.8.10 (nf_tables): Could not fetch rule set generation id: Permission denied (you must be root) iptables-restore v1.8.10 (nf_tables): Could not fetch rule set generation id: Permission denied (you must be root) iptables-restore v1.8.10 (nf_tables): Could not fetch rule set generation id: Permission denied (you must be root) sysctl: setting key "net.ipv4.conf.all.accept_redirects", ignoring: Read-only file system sysctl: setting key "net.ipv4.conf.default.accept_redirects", ignoring: Read-only file system sysctl: setting key "net.ipv6.conf.all.accept_redirects", ignoring: Read-only file system sysctl: setting key "net.ipv6.conf.default.accept_redirects", ignoring: Read-only file system sysctl: setting key "net.ipv4.icmp_echo_ignore_broadcasts", ignoring: Read-only file system sysctl: setting key "net.ipv4.icmp_ignore_bogus_error_responses", ignoring: Read-only file system sysctl: setting key "net.ipv4.icmp_echo_ignore_all", ignoring: Read-only file system sysctl: setting key "net.ipv4.conf.all.log_martians", ignoring: Read-only file system sysctl: setting key "net.ipv4.conf.default.log_martians", ignoring: Read-only file system Problem loading ipv6 (skipping) Problem running '/etc/ufw/before.rules' Problem running '/etc/ufw/after.rules' Problem running '/etc/ufw/user.rules'
打开SSH时提示-错误:sshd_config配置文件不存在,无法继续! |
|