lede icon indicating copy to clipboard operation
lede copied to clipboard

[feature request] luci-ssr-plus: forward dns to ssr server instead of using pdnsd or localhost:5335

Open kmahyyg opened this issue 6 years ago • 9 comments

We use SNI Proxy to unlock the oversea multimedia streaming service, which need the dns resolve process to be done on the remote shadowsocks server instead of any other third-party DNS or client local DNS.

Could you please help me add an option to just forward the dns query to server instead of using any other dns service software? Thanks.

kmahyyg avatar Feb 25 '20 09:02 kmahyyg

it already worked like this way

coolsnowwolf avatar Feb 26 '20 00:02 coolsnowwolf

then how should I set the work_mode and pdnsd_enable ?

kmahyyg avatar Feb 26 '20 01:02 kmahyyg

I have checked about the script... it seems like in mangle chain, the 53 port is return instead of tproxy.

https://github.com/coolsnowwolf/lede/blob/master/package/lean/luci-app-ssr-plus/root/usr/bin/ssr-rules#L188

kmahyyg avatar Feb 26 '20 01:02 kmahyyg

it already worked like this way

z826540272 avatar Feb 26 '20 06:02 z826540272

it already worked like this way

I mean that the domain name which user wanna access to should be sent to remote Shadowsocks server and let the server resolve it. The current behaviour is just resolve using 8.8.8.8 if pdnsd enabled.

kmahyyg avatar Feb 26 '20 10:02 kmahyyg

@kmahyyg would you mind explaining here how you did ? I have exactly the same question. Thanks !

Limezy avatar Mar 05 '20 15:03 Limezy

I just don't want to argue, since I have no choice but this software are proved and tested will not send the DNS request to remote shadowsocks server based on the streaming server is failed to detect correct location when I use this software. And also, the shell script in this software also proved this. So I changed to another router firmware.

Another third party Ref here: https://blog.skk.moe/post/how-proxy-client-cause-netflix-unlock-to-fail/

I do urge the developer fix this problem.

kmahyyg avatar Mar 05 '20 15:03 kmahyyg

I want to have the same request. I agree with kmahyyg that the DNS query is at local openwrt when I use trojan as server. Here is how I identify it:

  1. I set as GLobal Mode in SSR
  2. on the trojan server, I didn't see any request coming to DNS IP
  3. when I browse some webiste having CDN service, checking the server log, it access CDN node with near to my original location instead of near to the trojan server location, make it very slow.

istanleyyaw avatar Nov 26 '20 16:11 istanleyyaw

This issue is closed, please do not reply here, since I won't offer any helpful information here. Currently, I just grab a clash binary from padavan and write init&iptables script myself. All things works fine now.

kmahyyg avatar Nov 26 '20 16:11 kmahyyg