Youtube视频


相关链接

dae官方仓库

基本环境

确定内核版本在5.8或以上

uname -r

启动ip转发

vim /etc/sysctl.conf
net.ipv4.ip_forward=1
net.ipv6.conf.all.forwarding=1
sysctl -p

手动安装

下载

https://github.com/daeuniverse/dae/releases

当前笔记发布时,最新版本为v0.4.0rc1,请留意官方仓库的最新版本
# 下载amd64
wget https://github.com/daeuniverse/dae/releases/download/v0.4.0rc1/dae-linux-x86_64.zip

# 下载arm64
https://github.com/daeuniverse/dae/releases/download/v0.4.0rc1/dae-linux-arm64.zip

# 解压
unzip dae-linux-x86_64.zip

# 进入到解压目录
cd dae-linux-x86_64

文件处理

  1. 配置文件

    # 创建配置目录
    mkdir -p /etc/dae
    
    # 将案例配置文件移动到配置目录
    mv example.dae /etc/dae
    
    # 创建最小配置文件
    cat <<EOF> /etc/dae/config.dae
    global{}
    routing{}
    EOF
    
    # 设置配置文件权限,限制只有配置文件所有者才可以读写。不设置dae无法启动
    chmod 0640 /etc/dae/config.dae
  2. Geo数据库文件

    # 创建数据目录
    mkdir -p /usr/local/share/dae/
    
    # 将geo数据库文件移动到数据目录
    mv geoip.dat geosite.dat /usr/local/share/dae/
  3. 主程序文件

    # 添加可执行权限 *文件名不同架构不一样
    sudo chmod +x dae-linux-x86_64
    
    # 将主程序文件安装到用户bin目录
    sudo install -Dm755 dae-linux-x86_64 /usr/bin/dae
  4. 服务文件

    # 将服务文件移动到systemd目录
    mv dae.service /etc/systemd/system/
    
    # 刷新配置
    sudo systemctl daemon-reload

服务管理

  1. 启动+自启

    sudo systemctl enable dae.service --now
  2. 状态

    sudo systemctl status dae.service
  3. 重启

    sudo systemctl restart dae.service
  4. 重载配置

    sudo systemctl reload dae.service

日志

journalctl -xfu dae.service

手动安装一键

wget -P /tmp/ https://github.com/daeuniverse/dae/releases/download/v0.4.0rc1/dae-linux-x86_64.zip
unzip /tmp/dae-linux-x86_64.zip -d /tmp/dae
cd /tmp/dae
mkdir -p /etc/dae
mv example.dae /etc/dae
cat <<EOF> /etc/dae/config.dae
global{}
routing{}
EOF
chmod 0640 /etc/dae/config.dae
mkdir -p /usr/local/share/dae/
mv geoip.dat geosite.dat /usr/local/share/dae/
sudo chmod +x dae-linux-x86_64
sudo install -Dm755 dae-linux-x86_64 /usr/bin/dae
mv dae.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable dae.service --now
rm -rf /tmp/dae-linux-x86_64.zip
rm -rf /tmp/dae
cd /etc/dae

手动卸载

rm -rf /etc/dae
rm -f /usr/bin/dae
rm -rf /usr/local/share/dae
rm -f /etc/systemd/system/dae.service

官方一键

安装

默认配置目录:/usr/local/etc/dae/
sudo sh -c "$(curl -sL https://github.com/daeuniverse/dae-installer/raw/main/installer.sh)" @ install

卸载

sudo sh -c "$(curl -sL https://raw.githubusercontent.com/daeuniverse/dae-installer/main/uninstaller.sh)"

更新Geo数据库

sudo sh -c "$(curl -sL https://github.com/daeuniverse/dae-installer/raw/main/installer.sh)" @ update-geoip update-geosite

基本配置

# 全局配置
global {
    # 绑定lan网口提供给内网设备,填自己服务器的网口,多个逗号隔开
    lan_interface: eth0
    wan_interface: auto
    log_level: info
    auto_config_kernel_parameter: true
    dial_mode: domain
    allow_insecure: false
    so_mark_from_dae: 1234

    # tls配置
    tls_implementation: utls
    utls_imitate: chrome_auto
}

# 订阅配置
subscription {
}

# 节点配置
node {
    # 节点URI
    HK: 'vless://22e694e4-093d-44bb-8ed2-b0e548c87a2e@idev.example.com:443?type=ws&security=tls&host=idev.example.com&path=%2Fvideo'
}

# 分组配置,以下采用固定策略,使用第一个节点
group {
    elden_proxy {
        policy: fixed(0)
    }
}

# dns配置
dns {
  upstream {
    googledns: 'tcp://dns.google.com:53'
    alidns: 'udp://dns.alidns.com:53'
  }
  routing {
    request {
      qname(geosite:cn) -> alidns
      fallback: googledns
    }
    response {
        upstream(googledns) -> accept
        fallback: accept
    }
  }
}

# 路由配置
routing {
    pname(NetworkManager) -> direct
    dip(224.0.0.0/3, 'ff00::/8') -> direct
    dip(geoip:private) -> direct

    ### 以下是自定义规则
  
    ## 规则
    ip(geoip:cn) -> direct
    domain(geosite:cn) -> direct
    domain(geosite:category-ads) -> block
 
  
    # 默认出站分组
    fallback: elden_proxy
}

支持的代理协议

  • HTTP(S), naiveproxy

Socks

  • Socks4
  • Socks4a
  • Socks5

VMess(AEAD, alterID=0) / VLESS

  • TCP
  • WS
  • TLS
  • gRPC
  • h2
  • Meek

Shadowsocks

  • AEAD Ciphers
  • Stream Ciphers
  • simple-obfs
  • v2ray-plugin
  • ShadowsocksR

Trojan

如果觉得我的文章对你有用,请随意赞赏