迪巴拉 发表于 2024-6-17 20:44:23

玛德,终于找到原因了,有大神知道这个怎么修复吗

具体问题就是小鸡重启后网络出问题了,上午我发了帖子https://loc.xiu.ee/thread-1317902-1-1.html

经过vnc和gpt的一番交流,我终于复现了问题

首先安装debian12(我是用https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh安装),然后装aria2(wget -N git.io/aria2.sh && chmod +x aria2.sh安装),然后重启小鸡网络就丢了我折腾半天,只能找到这个报错/etc/network/if-pre-up.d/iptables:-pre-up.d/ iptables: line 2: /sbin/iptables-restore: No such file or director尝试 mv /etc/network/if-pre-up.d/iptables /root/iptables.bak,但是网络还是不行


现在的问题大概就是装aria2的脚本给系统加了个什么iptable规则,但是在debian12这里出问题了,我也不知道怎么修复


我跟着gpt操作了半小时,还是没恢复好{:2_30:}

浅生 发表于 2024-6-17 20:44:52

举个例子,有次修改 /etc/networking/interfaces 文件后想要重启 networking 服务或是 ifup eth0 或是 reboot 都无法奏效,查看日志后意外发现 iptables 工具消失了,无法找到该命令。无法联网的情况下,是无法 apt-get install -y iptables 下载安装 iptables,之后 find / -name iptables 找到 /etc/network/if-pre-up.d/iptables 注释后重启解决了联网的问题

IT618发布 发表于 2024-6-17 20:45:28

apt install iptables

拾光 发表于 2024-6-17 20:46:06

现在没网,这是个问题:lol

独家记忆 发表于 2024-6-17 20:46:40

我的这个debian12没装过iptables,这好想要完犊子了:lol

复现时候提示如下
[信息] Aria2服务 管理脚本下载完成 ![信息] 开始设置 iptables 防火墙..../aria2.sh: line 654: iptables-save: command not found[信息] 开始添加 iptables 防火墙规则..../aria2.sh: line 633: iptables: command not found./aria2.sh: line 634: iptables: command not found./aria2.sh: line 635: iptables: command not found[信息] 开始保存 iptables 防火墙规则..../aria2.sh: line 646: iptables-save: command not found[信息] 开始创建 下载目录...[信息] 所有步骤 安装完毕,开始启动...[信息] Aria2 启动中...

Crystαl 发表于 2024-6-17 20:47:08

联合国秘书长 发表于 2024-6-17 20:28
我的这个debian12没装过iptables,这好想要完犊子了

复现时候提示如下
没记错的话注释掉然后 reboot

页: [1]
查看完整版本: 玛德,终于找到原因了,有大神知道这个怎么修复吗

创宇盾启航版免费网站防御网站加速服务