Youtube视频
相关链接
基本环境
确定内核版本在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
文件处理
配置文件
# 创建配置目录 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
Geo数据库文件
# 创建数据目录 mkdir -p /usr/local/share/dae/ # 将geo数据库文件移动到数据目录 mv geoip.dat geosite.dat /usr/local/share/dae/
主程序文件
# 添加可执行权限 *文件名不同架构不一样 sudo chmod +x dae-linux-x86_64 # 将主程序文件安装到用户bin目录 sudo install -Dm755 dae-linux-x86_64 /usr/bin/dae
服务文件
# 将服务文件移动到systemd目录 mv dae.service /etc/systemd/system/ # 刷新配置 sudo systemctl daemon-reload
服务管理
启动+自启
sudo systemctl enable dae.service --now
状态
sudo systemctl status dae.service
重启
sudo systemctl restart dae.service
重载配置
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
- Trojan-gfw
- Trojan-go
- Tuic (v5)
- Juicity
- Proxy chain (flexible protocol)
16 条评论
root@uefi-x86:~# journalctl -xfu dae.service
Sep 23 01:39:04 uefi-x86 systemd[1]: Starting dae.service - dae Service...
░░ Subject: A start job for unit dae.service has begun execution
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit dae.service has begun execution.
░░
░░ The job identifier is 141.
Sep 23 01:39:04 uefi-x86 dae[1606]: failed to parse "global": unexpected key: pprof_port
Sep 23 01:39:04 uefi-x86 systemd[1]: dae.service: Control process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ An ExecStartPre= process belonging to unit dae.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Sep 23 01:39:04 uefi-x86 systemd[1]: dae.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit dae.service has entered the 'failed' state with result 'exit-code'.
Sep 23 01:39:04 uefi-x86 systemd[1]: Failed to start dae.service - dae Service.
░░ Subject: A start job for unit dae.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit dae.service has finished with a failure.
░░
░░ The job identifier is 141 and the job result is failed.
Sep 23 01:39:52 uefi-x86 systemd[1]: Starting dae.service - dae Service...
░░ Subject: A start job for unit dae.service has begun execution
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit dae.service has begun execution.
░░
░░ The job identifier is 661.
Sep 23 01:39:52 uefi-x86 dae[2342]: failed to parse "global": unexpected key: pprof_port
Sep 23 01:39:52 uefi-x86 systemd[1]: dae.service: Control process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ An ExecStartPre= process belonging to unit dae.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Sep 23 01:39:52 uefi-x86 systemd[1]: dae.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit dae.service has entered the 'failed' state with result 'exit-code'.
Sep 23 01:39:52 uefi-x86 systemd[1]: Failed to start dae.service - dae Service.
░░ Subject: A start job for unit dae.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit dae.service has finished with a failure.
░░
░░ The job identifier is 661 and the job result is failed.
求助 求助 看不出问题
root@uefi-x86:~# sudo systemctl restart dae.service
Job for dae.service failed because the control process exited with error code.
See "systemctl status dae.service" and "journalctl -xeu dae.service" for details.
手动安装 一件脚本 都是启动这样提示 头疼啦
root@uefi-x86:~# sudo systemctl restart dae.service
Job for dae.service failed because the control process exited with error code.
See "systemctl status dae.service" and "journalctl -xeu dae.service" for details.
手动安装 一件脚本 都是启动这样提示 头疼啦
root@uefi-x86:~# sudo systemctl restart dae.service
Job for dae.service failed because the control process exited with error code.
See "systemctl status dae.service" and "journalctl -xeu dae.service" for details.
手动安装 一件脚本 都是启动这样提示 头疼啦
大鹅必须作为DNS入口使用吗?可不可以作为mosdns的上游使用呢?
日志中出现这一错误:level=warning msg="handlePkt: failed to read DNS resp payload length: version 72 is not supprted
hey buddy does this with xray-core reality? because i do as you said but its not working and keep giving error "msg="handlePkt: failed to read from: 8.8.4.4:53 (dialer: US): EOF""
or "handlePkt: failed to read from: 8.8.4.4:53 (dialer: US): read tcp 192.168.0.33:33964->MYVPSIP:14443: i/o timeout""
Not Support Vless-Reality now
按照楼主的指导一步一步装完,到启动时错误、显示
root@DietPi:~# systemctl start dae
Job for dae.service failed because the control process exited with error code.
See "systemctl status dae.service" and "journalctl -xeu dae.service" for details.
dietpi系统,nanopi neo2
你提供的并不是日志信息,你先确定系统的内核是否支持bpf以及开启bpf。
在debian12上,安装之后,只能访问国外网站,不能访问国内网站,大佬知道怎么解决吗
可以试试将iptables的FORWARD链流量放开
我按照您这篇文章 https://idev.dev/proxy/dae-problem.html 使用 iptables -t nat -A POSTROUTING 发现还是不能访问国内, 然后我使用了 iptables -t nat -A POSTROUTING -o eno1 -j MASQUERADE 这个,就可以了, 哈哈哈哈哈 我不明白原理ヾ(≧∇≦*)ゝ
我也遇到同样的问题,按你的方式解决。总感觉别扭。感觉做了这个命令之后,像是把客户端的数据表伪装成linux的,这样回程数据包还是通过linux转发给客户端,大鹅的本意是不是解决本地回程的数据包直接发给客户端 ,不用通过linux来提高效率。不知你后来有更好的觉得方式了吗?我的系统是armbian.
作用就是指定出站接口以及设置NAT