【以debian为例】IPv6 LXC安装哪咤监控agent的无脑follow教程【wap HK年付一刀适用】 1

效果预览

我的探针:️Arioc's Needle 阿里欧克之针

准备工作

安装各种必备依赖

apt update
apt upgrade -y
apt install -y curl bash wget unzip tar sudo vim

必要步骤:遵照网友Riiina的教程为机器添加warp的ipv4代理出口

安装哪吒agent

第一步最后会报错,不用管他

proxychains4 curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh -o nezha.sh && chmod  x nezha.sh && sudo ./nezha.sh install_agent aaa.com 5555 111111111111111111
proxychains4 wget -t 2 -T 10 -O nezha-agent_linux_amd64.zip https://github.com/nezhahq/agent/releases/download/v0.15.15/nezha-agent_linux_amd64.zip >/dev/null 2>&1
unzip -qo nezha-agent_linux_amd64.zip
mv nezha-agent /opt/nezha/agent
chmod  x /opt/nezha/agent
proxychains4 wget https://raw.githubusercontent.com/naiba/nezha/master/script/nezha-agent.service
mv nezha-agent.service /etc/systemd/system

配置nezha-agent.service

所有汉字部分需要改成你对应的配置

vim /etc/systemd/system/nezha-agent.service
  • dashboard为纯ipv4的修改为
[Unit]
Description=Nezha Agent
After=syslog.target
[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/opt/nezha/agent/
ExecStart=/opt/nezha/agent/nezha-agent -s 哪吒dashboard的裸奔地址:哪吒通讯端口 -p 密钥
Restart=always
Environment="https_proxy=socks5://127.0.0.1:准备工作Riiina的教程里的socks5本地监听端口"
Environment="http_proxy=socks5://127.0.0.1:准备工作Riiina的教程里的socks5本地监听端口"
[Install]
WantedBy=multi-user.target
  • dashboard为ipv4 ipv6双栈或纯ipv6的修改为
[Unit]
Description=Nezha Agent
After=syslog.target
[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/opt/nezha/agent/
ExecStart=/opt/nezha/agent/nezha-agent -s 哪吒dashboard的裸奔地址:哪吒通讯端口 -p 密钥
Restart=always
[Install]
WantedBy=multi-user.target

运行哪吒agent,一切搞定

systemctl enable nezha-agent.service
systemctl start nezha-agent.service

关于某ui的无脑copy设置

传送门:在这里

点赞
  1. xy说道:

    转载:【wap IPv6 Only 安装warp教程】感谢wap群友 - Riiina

    安装官方 Warp 客户端和 proxychains4

    apt update && apt install -y curl gnupg lsb-release proxychains4

    curl -fsSL https://pkg.cloudflareclient.com/pubkey.gpg | gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg

    echo "deb [arch=amd64 signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/cloudflare-client.list

    apt update && apt install -y cloudflare-warp

    注册设备

    warp-cli register # 看提示输入Y
    warp-cli set-mode proxy
    warp-cli set-proxy-port 1835 # 可以自己改本地监听端口
    warp-cli connect
    warp-cli enable-always-on

    修改配置

    nano /etc/proxychains4.conf
    最后一行 socks4 开头的内容改成
    socks5 127.0.0.1 1835 # 上面那个端口
    reboot

    测试

    proxychains4 curl ip.sb

    使用

    支持 socks5 代理的应用直接设置 sock5 代理,不支持的在命令前面加上 proxychains4,v2ray系需要添加一个 socks5 outbound 作为出口

    注意:下面的步骤不做,下面的步骤不做,下面的步骤不做

    # 设置系统代理,下面代码放到/etc/bash.bashrc里面
    all_proxy="socks5://127.0.0.1:1835"
    export http_proxy https_proxy
    
    # 测试
    curl ip.sb # 得到的是cf的v6 ip
    curl ip.sb -4 # 得到的是cf的v4 ip
    
    
  2. xy说道:

    @jiakai #40 哈哈,成功就好,今天又放了一大波,估计这教程又要接受群众检阅了

  3. xy说道:

    @lansepach #42 已私信全套解决方案

发表回复

电子邮件地址不会被公开。必填项已用 * 标注

×
订阅图标按钮