xiaorouji / openwrt-passwall2

1.36k stars 441 forks source link

[Bug]: geositedb is not working with singbox #364

Closed kooroshkdt2 closed 1 year ago

kooroshkdt2 commented 1 year ago

描述您遇到的bug

Hi everthing works like charm except the geosite db feature on sing box

i'm using iran geosite db openwrt x86 passwall2 can you help me ?

{ "outbounds": [ { "tls": { "enabled": true, "utls": { "enabled": false, "fingerprint": "chrome" }, "reality": { "enabled": false }, "insecure": true, "server_name": "xxxxxxxxxxxx", "disable_sni": false }, "type": "vless", "server_port": xxxxxxxxxxxx, "transport": { "type": "xxxxxxxxxxxx", "path": "\/xxxxxxxxxxxx", "headers": { "Host": "xxxxxxxxxxxx" } }, "packet_encoding": "xudp", "uuid": "xxxxxxxxxxxx", "server": "xxxxxxxxxxxx", "tag": "7dz9ZMuJ" }, { "tag": "dns-out", "type": "dns" }, { "domain_strategy": "prefer_ipv6", "type": "direct", "routing_mark": 255, "tag": "direct" }, { "tag": "block", "type": "block" } ], "log": { "timestamp": true, "level": "error", "disabled": false, "output": "\/tmp\/etc\/passwall2\/global.log" }, "dns": { "disable_cache": false, "rules": [ { "disable_cache": false, "domain": [ "xxxxxxxxxxxx", "xxxxxxxxxxxx", "xxxxxxxxxxxx", "xxxxxxxxxxxx" ], "server": "direct" } ], "independent_cache": false, "fakeip": { "enabled": true, "inet6_range": "fc00::\/18", "inet4_range": "198.18.0.0\/16" }, "servers": [ { "address_strategy": "prefer_ipv4", "address": "tcp:\/\/8.8.8.8:53", "strategy": "ipv4_only", "detour": "7dz9ZMuJ", "tag": "remote" }, { "strategy": "ipv4_only", "address": "fakeip", "tag": "remote_fakeip" }, { "address_strategy": "prefer_ipv6", "address": "udp:\/\/127.0.0.1:15355", "strategy": "prefer_ipv6", "detour": "direct", "tag": "direct" }, { "address": "rcode:\/\/refused", "tag": "block" } ], "reverse_mapping": true, "disable_expire": false, "final": "remote" }, "experimental": { "clash_api": { "store_fakeip": true, "cache_file": "\/tmp\/singbox_passwall2_global.db" } }, "route": { "geosite": { "path": "\/usr\/share\/singbox\/geosite.db", "download_url": "https:\/\/github.com\/bootmortis\/iran-hosted-domains\/releases\/latest\/download\/iran-geosite.db" }, "rules": [ { "outbound": "dns-out", "inbound": [ "dns-in" ], "protocol": "dns" } ], "geoip": { "path": "\/usr\/share\/singbox\/geoip.db", "download_url": "https:\/\/github.com\/SagerNet\/sing-geoip\/releases\/latest\/download\/geoip.db" }, "final": "7dz9ZMuJ" }, "inbounds": [ { "type": "socks", "sniff": true, "listen": "0.0.0.0", "listen_port": 1070, "tag": "socks-in" }, { "type": "redirect", "listen": "::", "sniff": true, "sniff_override_destination": true, "listen_port": 1041, "tag": "redirect_tcp" }, { "type": "tproxy", "network": "udp", "listen": "::", "sniff": true, "sniff_override_destination": true, "listen_port": 1041, "tag": "tproxy_udp" }, { "type": "direct", "sniff": true, "listen": "127.0.0.1", "listen_port": 15353, "tag": "dns-in" } ] }

复现此Bug的步骤

just installed fresh openwrt install passwall2 configurated and everything works

add iran geosite not working https://github.com/bootmortis/iran-hosted-domains

您想要实现的目的

bypass iran websites for direct connection

日志信息

no error log what so ever

截图

No response

系统相关信息

openwrt 22.03.05 x86-x64 on kvm fresh install

其他信息

No response

xiaorouji commented 1 year ago

Is the sing-box has running? Is there any error output? Also, please screenshot of your iran shunt rules configuration.

kooroshkdt2 commented 1 year ago

Hi again there is just xray shut there is nothing about sing-box shunt did i miss something ?

logs : 2023-09-08 16:16:06: 删除相关防火墙规则完成。 2023-09-08 16:16:07: 清空并关闭相关程序和缓存完成。 2023-09-08 16:16:07: 127.0.0.1#15353 ( 直连DNS:172.19.24.254,8.8.8.8 远程DNS:8.8.8.8 + FakeDNS ) 2023-09-08 16:16:07: - [0]节点列表中的域名(vpslist):172.19.24.254,8.8.8.8 2023-09-08 16:16:07: - [0]默认:127.0.0.1#15353 2023-09-08 16:16:07: 开始加载防火墙规则... 2023-09-08 16:16:07: 加入负载均衡的节点到ipset[passwall2_vpslist]直连完成 2023-09-08 16:16:07: 加入所有节点到ipset[passwall2_vpslist]直连完成 2023-09-08 16:16:07: 加载路由器自身 TCP 代理... 2023-09-08 16:16:07: 加载路由器自身 UDP 代理... 2023-09-08 16:16:07: TCP默认代理:使用节点[vless] 全局代理代理所有端口 2023-09-08 16:16:07: UDP默认代理:使用节点[vless] 全局代理代理所有端口 2023-09-08 16:16:07: 防火墙规则加载完成! 2023-09-08 16:16:07: 重启 dnsmasq 服务 2023-09-08 16:16:07: 配置定时任务:自动更新规则。 2023-09-08 16:16:07: 运行完成!

Screenshot 1402-06-18 at 2 44 05 AM Screenshot 1402-06-18 at 2 44 43 AM Screenshot 1402-06-18 at 2 44 59 AM

xray shuts on default because i used sing-box didnt put anything in them but even private IPs getting routed into vless server do you need any other screenshots? sorry for disturbing you about this matter

xiaorouji commented 1 year ago

You need create a new node, The type selected the sing-box, protocol selected shunt