gatewaysentry的鸡不能DD嘛

胡图啊你 2026-08-14 00:50 1

rt,这家的鸡DD不了,商家工单也不回复,服了

最新回复 (13)
  • 小柒 08-14 00:56
    1

    dd啥 他不是有win系统吗

  • 胡图啊你 楼主 08-14 00:57
    2

    @小柒 #1 跑服务环境要求centos8, ^-^

  • 小柒 08-14 00:58
    3

    让codex装看看

  • mouwen 08-14 01:02
    4

    换个脚本试试,我d成debian成功了

  • 胡图啊你 楼主 08-14 01:03
    5

    @mouwen #4 你用的什么脚本,我用的https://github.com/bin456789/reinstall

  • 胡图啊你 楼主 08-14 01:04
    6

    @mouwen #4 这个不行呀,提示要关闭安全启动

  • shuai 08-14 01:05
    7

    可以DD,但是有坑:


    GatewaySentry Debian 安装避坑教程


    核心坑点


    GatewaySentry 的公网 IP 不是直接绑在 VPS 网卡上,而是映射到一个内网 IP。


    例如你的面板是:


    公网 IP: 157.254.xx.xx
    Destination IP: 100.105.1.x
    Gateway: 100.105.105.105

    但是 Debian Installer / 新系统 DHCP 自动拿到的可能是:


    100.105.1.x
    100.105.1.x

    这些 IP 能 ping 通网关,但不能出公网,公网 SSH 也连不上。


    所以重点是:


    必须手动把 eth0 改成面板里的 Destination IP。




    1. 不建议直接用普通 InstallNET.sh


    普通脚本可能会让机器一直进 Debian Installer / PXE,甚至卡在镜像检测。


    如果进了 Boot Manager,不要选:


    UEFI PXEv4
    UEFI PXEv6
    UEFI HTTPv4
    UEFI HTTPv6

    要选:


    UEFI QEMU QEMU HARDDISK



    2. Debian Installer 里修网络


    进入安装器 shell 后执行:


    ip addr flush dev eth0
    ip link set eth0 up
    ip addr add 100.105.1.x/16 dev eth0
    ip route replace default via 100.105.105.105 dev eth0 src 100.105.1.x
    printf "nameserver 1.1.1.1\nnameserver 8.8.8.8\n" > /etc/resolv.conf

    测试:


    ping -c 4 1.1.1.1
    ping -c 4 deb.debian.org

    通了以后,再回安装器继续。


    镜像填:


    deb.debian.org

    目录:


    /debian/

    HTTP proxy 留空。




    4. 把网络配置改成永久


    连接上 SSH 后,立刻改永久配置,不然重启又可能 DHCP 到错误 IP。


    备份:


    cp /etc/network/interfaces /etc/network/interfaces.bak

    写入静态 IP:


    cat > /etc/network/interfaces <<'EOF'
    auto lo
    iface lo inet loopback

    auto eth0
    iface eth0 inet static
    address 100.105.1.x/16
    gateway 100.105.105.105
    dns-nameservers 1.1.1.1 8.8.8.8
    EOF

    重启网络或直接重启:


    reboot

    重启后再确认:


    ip addr
    ip route
    ping -c 4 1.1.1.1



    这次踩的坑总结



    1. Bad archive mirror 不是镜像坏了,是网络没出公网。

    2. DHCP 给的 IP 不一定能用,必须用面板里的 Destination IP。

    3. 100.105.105.105 网关能通,不代表公网通。

    4. ping 1.1.1.1 不通时,换清华源、中科大源都没用。

    5. Debian Installer 里很多命令没有,比如 lsblkclear,正常。

    6. VNC 不能粘贴时,可以用油猴脚本模拟键盘慢速输入。

    7. SSH 超时大概率不是 SSH 坏了,而是系统 IP 和公网映射 IP 不一致。

    8. GatewaySentry 这类 GRE/映射网络 VPS,装系统后第一件事就是固定内网 IP。

  • mouwen 08-14 01:16
    8

    @胡图啊你 #5

    我的机器默认就是关了安全启动的

    你从后台进 vnc 自己关掉 secure boot 应该就行了

  • gatewaysentry 08-14 01:22
    9

    @shuai #7


    Do not set IP address to static, it must be DHCP or else if internal IP map or route changes your service will not have internet.

  • gatewaysentry 08-14 01:22
    10

    @胡图啊你 #0


    Give our team time to respond, they are super busy with lots of upcoming updates and tickets they must handle.

  • 胡图啊你 楼主 08-14 01:48
    11

    @mouwen #8 牛的,成功了 ^-^

  • 涤尘 08-14 01:55
    12

    @shuai #7


    我靠 6 ^-^

  • sudoerx 08-14 02:29
    13

    @shuai #7 牛的 我是用netboot装 选dhcp获得内网地址 进去就是通的

* 帖子来源NodeSeek
返回