Linux 系统设置指南
创建文件 /etc/systemd/system/xiexievpn.service,内容如下:
[Unit] Description=xiexievpn Service After=network.target [Service] Type=simple ExecStart=/usr/local/bin/xray # 上面路径替换成你的实际解压路径 Restart=on-failure LimitNOFILE=65535 [Install] WantedBy=multi-user.target
sudo mkdir -p /etc/systemd/resolved.conf.d
sudo tee /etc/systemd/resolved.conf.d/xray.conf << EOF
[Resolve]
DNS=127.0.0.1
DNSStubListener=no
EOF
sudo systemctl restart systemd-resolved systemctl daemon-reload
systemctl start xiexievpn
# 开机自启(可选)
systemctl enable xiexievpn 打开"设置" → "网络",找到"网络代理"或"代理"选项。
选择"手动",然后进行如下配置:
HTTP 代理:127.0.0.1,端口:1080
SOCKS 主机:127.0.0.1:10808(如需要)
如果您想排除本地地址,请将 localhost, 127.0.0.1, ::1 添加到"忽略主机"列表中。