安装 nftables 失败,请手动安装 nftables 并重新运行此脚本。
zzp@zzp-fnOS:/$ bash <(curl -sL https://ghfast.top/https://raw.githubusercontent.com/qichiyuhub/sbshell/refs/heads/master/sbshall.sh) 系统为Debian/Ubuntu/Armbian,支持运行此脚本。 nftables 未安装。 是否安装 nftables?(y/n): y Hit:1 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm InRelease Hit:2 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-updates InRelease Hit:3 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-backports InRelease Hit:4 https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security InRelease Hit:5 https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian bookworm InRelease Hit:6 https://pkg.ltec.ch/public focal InRelease Reading package lists... Done Reading package lists... Done Building dependency tree... Done Reading state information... Done nftables is already the newest version (1.0.6-2+deb12u2). 0 upgraded, 0 newly installed, 0 to remove and 206 not upgraded. 安装 nftables 失败,请手动安装 nftables 并重新运行此脚本。
手动检查是否安装成功 ,确实没问题 reboot重启下,再重新跑
重启运行 依旧,是飞牛OS系统
安装 nftables 失败,请手动安装 nftables 并重新运行此脚本。 zzp@zzp-fnOS:/$ uname -r 6.6.38-trim zzp@zzp-fnOS:/$ sudo apt-get update Hit:1 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm InRelease Hit:2 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-updates InRelease Hit:3 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-backports InRelease Hit:4 https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security InRelease Hit:5 https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian bookworm InRelease Hit:6 https://pkg.ltec.ch/public focal InRelease Reading package lists... Done zzp@zzp-fnOS:/$ sudo apt-get install nftables Reading package lists... Done Building dependency tree... Done Reading state information... Done nftables is already the newest version (1.0.6-2+deb12u2). 0 upgraded, 0 newly installed, 0 to remove and 206 not upgraded. zzp@zzp-fnOS:/$ sudo systemctl start nftables zzp@zzp-fnOS:/$ sudo systemctl enable nftables Created symlink /etc/systemd/system/sysinit.target.wants/nftables.service → /lib/systemd/system/nftables.service. zzp@zzp-fnOS:/$ sudo nft list tables table inet filter
查看防火墙规则...
Warning: table ip nat is managed by iptables-nft, do not touch!
table ip nat { chain DOCKER { iifname "docker0" counter packets 0 bytes 0 return iifname "br-de046d7f5c62" counter packets 0 bytes 0 return iifname != "docker0" tcp dport 50002 counter packets 0 bytes 0 dnat to 172.17.0.2:5000 }
chain POSTROUTING {
type nat hook postrouting priority srcnat; policy accept;
oifname != "docker0" ip saddr 172.17.0.0/16 counter packets 0 bytes 0 masquerade
oifname != "br-de046d7f5c62" ip saddr 172.18.0.0/16 counter packets 0 bytes 0 masquerade
ip saddr 172.17.0.2 ip daddr 172.17.0.2 tcp dport 5000 counter packets 0 bytes 0 masquerade
}
chain PREROUTING {
type nat hook prerouting priority dstnat; policy accept;
fib daddr type local counter packets 35 bytes 2224 jump DOCKER
}
chain OUTPUT {
type nat hook output priority -100; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump DOCKER
}
}
Warning: table ip filter is managed by iptables-nft, do not touch!
table ip filter { chain DOCKER { iifname != "docker0" oifname "docker0" ip daddr 172.17.0.2 tcp dport 5000 counter packets 0 bytes 0 accept }
chain DOCKER-ISOLATION-STAGE-1 {
iifname "docker0" oifname != "docker0" counter packets 0 bytes 0 jump DOCKER-ISOLATION-STAGE-2
iifname "br-de046d7f5c62" oifname != "br-de046d7f5c62" counter packets 0 bytes 0 jump DOCKER-ISOLATION-STAGE-2
counter packets 0 bytes 0 return
}
chain DOCKER-ISOLATION-STAGE-2 {
oifname "docker0" counter packets 0 bytes 0 drop
oifname "br-de046d7f5c62" counter packets 0 bytes 0 drop
counter packets 0 bytes 0 return
}
chain FORWARD {
type filter hook forward priority filter; policy accept;
counter packets 0 bytes 0 jump DOCKER-USER
counter packets 0 bytes 0 jump DOCKER-ISOLATION-STAGE-1
oifname "docker0" ct state related,established counter packets 0 bytes 0 accept
oifname "docker0" counter packets 0 bytes 0 jump DOCKER
iifname "docker0" oifname != "docker0" counter packets 0 bytes 0 accept
iifname "docker0" oifname "docker0" counter packets 0 bytes 0 accept
oifname "br-de046d7f5c62" ct state related,established counter packets 0 bytes 0 accept
oifname "br-de046d7f5c62" counter packets 0 bytes 0 jump DOCKER
iifname "br-de046d7f5c62" oifname != "br-de046d7f5c62" counter packets 0 bytes 0 accept
iifname "br-de046d7f5c62" oifname "br-de046d7f5c62" counter packets 0 bytes 0 accept
}
chain DOCKER-USER {
counter packets 0 bytes 0 return
}
} 按回车键返回二级菜单...
请使用正经的linux系统吧
最新版 飞牛OS啊