felix-fly / v2ray-padavan-doh

k2p路由器使用padavan(N56U/改华硕)固件安装配置v2ray的进阶流程
111 stars 45 forks source link

请问能不能写个详细一点的配置操作方法? #76

Open 4yt1k opened 5 months ago

4yt1k commented 5 months ago

这个固件就是我梦寐以求的,要求就是想在路由上实现低调上网,然后不吃路由CPU。 可惜小白一个,不懂怎么用啊!

比如这个操作: 配置 xray 将 xray 文件夹里的所有文件上传至路由器 /etc/storage/xray 目录,并添加脚本执行权限 chmod +x /etc/storage/xray/*.sh

我把文件上传之后,不知道在哪里执行脚本? 是在系统管理>控制台里面>拷贝进那个文本框之后点刷新吗?

另外就是,怎么知道xray有没有运行?没有UI,节点在哪里配置?

4yt1k commented 4 months ago

今天又折腾了一次,大概有点明白了,节点信息在config.json里面配置。 我直接在终端里面启动xray,结果不成功,感觉是因为config.json文件的配置不对。 从v2rayN里导出来一个节点的json文件,然后把下面这三项对应的值拷到config.json文件里。 "address": "==YOUR DOMAIN==", "id": "==YOUR USER ID==", "xtlsSettings": {"serverName": "==YOUR DOMAIN=="} 改完保全后通过WinSCP上传到路由器/etc/storage/xray/目录,再执行下面两行命令: K2P:/ # chmod +x /etc/storage/xray/*.sh K2P:/ # /etc/storage/xray/check.sh 报下面的错误信息: K2P:/ # Xray 1.8.6 (Xray, Penetrates Everything.) Custom (go1.21.4 linux/mipsle) A unified platform for anti-censorship. 2024/05/17 15:29:37 [Info] infra/conf/serial: Reading config: /etc/storage/xray/config.json Failed to start: main: failed to load config files: [/etc/storage/xray/config.json] > infra/conf: Please use VLESS flow "xtls-rprx-vision" with TLS or REALITY.

后来把从v2rayN导出来的json文件里整个 "inbounds": [ ......................... ] "outbounds": [ ......................... ] 值拷到config.json文件里,报下面的错: K2P:/ # Xray 1.8.6 (Xray, Penetrates Everything.) Custom (go1.21.4 linux/mipsle) A unified platform for anti-censorship. 2024/05/17 15:37:51 [Info] infra/conf/serial: Reading config: /etc/storage/xray/config.json

==================== 请求指导!!!

felix-fly commented 4 months ago

最后这个日志不是报错,是正常的启动输出

4yt1k commented 4 months ago

最后这个日志不是报错,是正常的启动输出

对小白太不友好了...... 反正我按说明全部配置好了重启,日志里没有任何【xray】关键词有关的信息。 不知道xray有没有启动,打开google验证,那肯定是失败...... 然后直接用SSH再次执行命令》

____            __

/ _ / /_ ____ ___ / /_/ / `/ / `/ | / / `/ \ / __/ // / // / // /| |/ / // / / / / // _,/_,/_,_/ |/\,// //

Version: 3.4.3.9-099_0ef016a

K2P:/home/root # cd / K2P:/ # chmod +x /etc/storage/xray/*.sh K2P:/ # /etc/storage/xray/check.sh K2P:/ #

这回没有出错也没有提示信息,理论上说xray应该是运行了,但仍然打不开google。 到底什么原因判断不出,可能是config.json配置得不对吧,节点本身肯定是没问题的。

对了,通过内存剩余来判断,xray已经在运行了,不过不是自动运行的,还是需要手动执行命令,调度任务不起作用。

算啦,不折腾了,加个N1做旁路由,效果好太多了。