Skip to content
This repository has been archived by the owner on Nov 19, 2023. It is now read-only.

proxy 选项不能正常工作? #13

Closed
pexcn opened this issue Aug 9, 2019 · 4 comments
Closed

proxy 选项不能正常工作? #13

pexcn opened this issue Aug 9, 2019 · 4 comments

Comments

@pexcn
Copy link
Contributor

pexcn commented Aug 9, 2019

socks5://127.0.0.1:1080 是 ss-local 提供的,这是我的配置:
1
2

日志里总是显示 timeout, 而且 dig 也无法得到结果。

@GangZhuo
Copy link
Owner

GangZhuo commented Aug 9, 2019

dns server 使用的是 UDP,请确认下代理支持 UDP。或者 dns_server 换用 tcp 模式:tcp://8.8.8.8:53。

@GangZhuo GangZhuo closed this as completed Aug 9, 2019
@pexcn
Copy link
Contributor Author

pexcn commented Aug 9, 2019

tcp://8.8.8.8:53 也试过了,还是不行,路由器的 shadowsocks 代理我在 luci 界面开启了 “代理自身”,请问跟这个有关系吗?会不会导致死循环之类的...?

@pexcn
Copy link
Contributor Author

pexcn commented Aug 9, 2019

顺便一提,好像有个小问题:我的国内 IP 和国外 IP 分别填的是中国大陆和美国洛杉矶,测试了其它网站都没有问题,但是测试 facebook 的时候不知道为什么会返回距离中国大陆位置近的 IP

C:\Users\Administrator>dig www.facebook.com @192.168.1.1 -p 5354

; <<>> DiG 9.14.1 <<>> www.facebook.com @192.168.1.1 -p 5354
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61156
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
; CLIENT-SUBNET: <洛杉矶 VPS 的 IP>/24/0
;; QUESTION SECTION:
;www.facebook.com.              IN      A

;; ANSWER SECTION:
www.facebook.com.       3497    IN      CNAME   star-mini.c10r.facebook.com.
star-mini.c10r.facebook.com. 7  IN      A       31.13.95.36

;; Query time: 16 msec
;; SERVER: 192.168.1.1#5354(192.168.1.1)
;; WHEN: Fri Aug 09 21:21:11 中国标准时间 2019
;; MSG SIZE  rcvd: 156

返回的结果 31.13.95.36 是 facebook 香港 CDN 的 IP, 为什么不是接近洛杉矶的 CDN IP?

EDIT:
似乎是 8.8.8.8:53 的问题,改成 tcp://8.8.8.8:53 再 dig 结果又正常了

@GangZhuo
Copy link
Owner

GangZhuo commented Aug 9, 2019

不确定是不是代理自身的问题,可以关闭试试。

第 2 个问题,未测试,不过有可能:

  1. 规则是:有国内 IP 的,优先选择国内 IP
  2. 有时候虽然设置了 ECS,谷歌服务器返回的却不是离它最近的 IP,这可能和 DNS 解析配置有关系。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants