Replies: 9 comments 1 reply
-
Thank you for the feedback. I have fixed the issue in the latest code. Please try installing the IPK (built here: https://github.com/douglarek/luci-app-homeproxy/actions/runs/7041341627) using the following method: |
Beta Was this translation helpful? Give feedback.
-
这个问题本身修好了。不过好像还有其他的问题,选择应用之后用top监控,发现singbox的命令出现一瞬间就终止了,网页端也会显示homeproxy未运行。log没有任何内容 目前发现的区别就是我是用root启动的,他是用sing-box用户启动的,我手动用sudo -u sing-box /usr/bin/sing-box run --config /var/run/homeproxy/sing-box-c.json以他的用户启动singbox,log中打出大量error 查看init.d/homeproxy 里面的singbox 不论是做client 还是 server都是写死用singbox用户启动,修改/etc/config/singbox里面的user为root也没有什么意义。 查看/etc/init.d/sing-box,发现里面写明说should be root if use TUN mode,但我不清楚luci是不是工作在tun mode下 这是我本地sing-box用户权限的问题?还是另一个bug? |
Beta Was this translation helpful? Give feedback.
-
也不算写死,是有条件的。如果你是 tun 代理模式那一定是需要 root 的,毕竟需要建立一个虚拟网卡。我的建议是使用 tproxy 模式。 |
Beta Was this translation helpful? Give feedback.
-
我选择的就是Redirect TCP+ TProxy UDP。我似乎没看到都走Tproxy的选项。我用的是release里面的113002ipk |
Beta Was this translation helpful? Give feedback.
-
把 luci 界面上的路由设置以及 homeproxy 的日志的截图一下看看,以及你的 sing-box-c.json 去除敏感信息后贴一下。 另外具体说一下你的openwrt版本,以及用的 firewall 版本 |
Beta Was this translation helpful? Give feedback.
-
root@ImmortalWrt:/var/run/homeproxy# cat homeproxy.log root@ImmortalWrt:/var/run/homeproxy# cat sing-box-c.json SYSTEMINFO FIREWALL |
Beta Was this translation helpful? Give feedback.
-
分别按下面 1, 2 再试试:
|
Beta Was this translation helpful? Give feedback.
-
使用自定义设置确实解决了。可能是某些修改影响到了原版功能 |
Beta Was this translation helpful? Give feedback.
-
网页端目前初代hysteria协议设置项和生成的config不匹配,导致任何服务器都连接不上
生成出来的配置
cat /var/run/homeproxy/sing-box-c.json
{
"log": {
"disabled": false,
"level": "warn",
"output": "/var/run/homeproxy/sing-box-c.log",
"timestamp": true
},
"dns": {
"servers": [
{
"tag": "default-dns",
"address": "223.6.6.6",
"detour": "direct-out"
},
{
"tag": "block-dns",
"address": "rcode://name_error"
},
{
"tag": "main-dns",
"address": "tcp://1.1.1.1",
"strategy": "ipv4_only",
"detour": "main-out"
}
],
"rules": [
{
"domain": ".",
"server": "default-dns"
}
],
"disable_cache": false,
"disable_expire": false,
"final": "main-dns"
},
"inbounds": [
{
"type": "direct",
"tag": "dns-in",
"listen": "::",
"listen_port": 5333
},
{
"type": "redirect",
"tag": "redirect-in",
"listen": "::",
"listen_port": 5331,
"sniff": true,
"sniff_override_destination": true
}
],
"outbounds": [
{
"type": "direct",
"tag": "direct-out",
"routing_mark": 100
},
{
"type": "block",
"tag": "block-out"
},
{
"type": "dns",
"tag": "dns-out"
},
{
"type": "hysteria",
"tag": "main-out",
"routing_mark": 100,
"server": ".",
"server_port": 8588,
"up_mbps": 250,
"down_mbps": 250,
"tls": {
"enabled": true,
"insecure": true
}
}
],
"route": {
"rules": [
{
"inbound": "dns-in",
"outbound": "dns-out"
},
{
"protocol": "dns",
"outbound": "dns-out"
}
],
"auto_detect_interface": true,
"final": "main-out"
}
}
可以看到上下行的速度不正确,且混淆密码消失。
Beta Was this translation helpful? Give feedback.
All reactions