Shadowsocksx-ng: Mac版 使用pac模式无法连接telegram客户端 全局模式可以。

Created on 25 Mar 2017  ·  61Comments  ·  Source: shadowsocks/ShadowsocksX-NG

System and Shadowsocksx-NG version:

  • macOS 10.??.?? (16E????)
  • Shadowsocksx-NG 1.?

Expected behavior:

Actual behavior:

(N/A for feature requests)

Steps to reproduce:

(N/A for feature requests)

How often does this happen?

(N/A for feature requests)

ss-local.log

Please upload the ss-local.log file here the file is in ~/Library/Logs
1) Open 'Advanced Settings -> enable Verbose Mode'
2) Continue run Shadowsocksx-NG for 5 minutes
3) Upload the ~/Library/Logs/ss-local.log here (with or without compress)

Application log

Open the Console.app and search Shadowsocksx-NG
Copy paste the log here

Crash Log

If the app crashes and pop up a crash log, please copy and paste here

Most helpful comment

port 填你profile里面的port,默认应该是1086

在 2017年5月13日,22:12,Albert Yu notifications@github.com 写道:

@Spacebody https://github.com/spacebody
https://cloud.githubusercontent.com/assets/1104018/26026178/414590bc-3829-11e7-8bab-7a2d90914dfc.png

You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/shadowsocks/ShadowsocksX-NG/issues/290#issuecomment-301250869, or mute the thread https://github.com/notifications/unsubscribe-auth/AF8zUUXfKEFnTpTG8P1DNSoH3pOHDjCvks5r5bpagaJpZM4Mo-I0.

All 61 comments

对tg设置代理即可
127.0.0.1
1080

2017-03-25 13:21 GMT+08:00 zxfccmm4 notifications@github.com:

System and Shadowsocksx-NG version:

  • macOS 10.??.?? (16E????)
  • Shadowsocksx-NG 1.?

Expected behavior:

Actual behavior:

(N/A for feature requests)

Steps to reproduce:

(N/A for feature requests)

How often does this happen?

(N/A for feature requests)

ss-local.log

Please upload the ss-local.log file here the file is in ~/Library/Logs

  1. Open 'Advanced Settings -> enable Verbose Mode'
  2. Continue run Shadowsocksx-NG for 5 minutes
  3. Upload the ~/Library/Logs/ss-local.log here (with or without
    compress)

Application log

Open the Console.app and search Shadowsocksx-NG
Copy paste the log here

Crash Log

If the app crashes and pop up a crash log, please copy and paste here


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/shadowsocks/ShadowsocksX-NG/issues/290, or mute the
thread
https://github.com/notifications/unsubscribe-auth/ATYE32JLglUfQ4gRqjkcXZ7YL15elsaDks5rpKRSgaJpZM4Mo-I0
.

@hellofx 按照你说的设置并不起作用。版本ss版本 1.5.1

@Spacebody

image

port 填你profile里面的port,默认应该是1086

在 2017年5月13日,22:12,Albert Yu notifications@github.com 写道:

@Spacebody https://github.com/spacebody
https://cloud.githubusercontent.com/assets/1104018/26026178/414590bc-3829-11e7-8bab-7a2d90914dfc.png

You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/shadowsocks/ShadowsocksX-NG/issues/290#issuecomment-301250869, or mute the thread https://github.com/notifications/unsubscribe-auth/AF8zUUXfKEFnTpTG8P1DNSoH3pOHDjCvks5r5bpagaJpZM4Mo-I0.

@nightire 我就是这么设置的啊,依旧无法连接。
@qinyuhang 多谢你的解答,1086是可以的。以前用 shadowsocksX 的时候用的是1080的 port。

@Spacebody 我是一直在用 1080,都不知道什么时候默认 1086 的,如果设置代理的时候不管用,首先应该确认的就是地址和端口号。

@nightire 我也不清楚,刚换成 NG 没几天。

@nightire @Spacebody 原版的是1080,为了避免2个版本冲突,所以用不一样的默认端口

@qiuyuzhou 如果文档能够说明一下就好啦。

坑,,,才知道 OO

我的本地socks5端口是1086,pac端口是1089。依旧无法连接telegram

在pac模式下。ss-NG版本是1.5.1

Please try the solution above: In Settings > Connection Type, select socks5-proxy and set the host to 127.0.0.1, port to 1086.

当我打开设置,我发现了,socks5-proxy and set the host to 127.0.0.1, port to 1086 已经是这样的,但是PAC模式下,依旧telegarm无法连接,奇怪,还有其他办法吗

So that means even if socks5-proxy is set, Telegram still suffers connection failure?

PAC mode have nothing to do with this. The whole PAC / Global / Manual thing affects just the Network System Preference, i.e. the system proxy. If you set the proxy of your Telegram, every request it makes should go through the Shadowsocks client regardless of your SSX-NG mode.

Try the following command in your terminal:

curl --socks5 localhost:1086 httpbin.org/ip

Is it showing your SS server IP? If not, what's the output?

YES,I use SS lines,But the problem still exits, Can you send me a SS-NG that allows telegarm to connect? My email [email protected]

我用的是ShadowsocksX-NG 1.4.1,把代理调成127.0.0.1:1086 后就可以连接telegram了

我可以很负责的告诉大家,并不起作用,尝试更换其他端口也不行,但是利用meow开启的pac却可以,我不懂ss的pac的原理

在前面的截图已经回答了 使用 telegram desktop 设置代理即可。

在 2017年8月4日,10:32,aishuidedabai notifications@github.com 写道:

我可以很负责的告诉大家,并不起作用,尝试更换其他端口也不行,但是利用meow开启的pac却可以,我不懂ss的pac的原理


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/shadowsocks/ShadowsocksX-NG/issues/290#issuecomment-320140289, or mute the thread https://github.com/notifications/unsubscribe-auth/AF8zUda0IFYxQB0sLiqjTXFzntdlRH1iks5sUoKsgaJpZM4Mo-I0.

我明白了,你的意思的修改telegram的代理模式,我的意思是能否不通过修改telegarm,利用ss-ng直接运行

ss-NG 应该可以在全局模式下进行分流吧,求一个例子

PAC mode is essentially Global mode plus filtering requests by PAC. And PAC is essentially a blacklist of URL patterns. Requests go through the proxy if its URL matches the pattern.

Possible reasons why PAC mode is not working:

  • Telegram's host is neither in GFW List nor in your custom rules
  • Telegram is using IP addresses instead of domain names, which is currently not supported by SSX-NG's PAC

I believe that the latter is the reason. So, PAC mode won't help, it'll always let Telegram requests go directly. I'm afraid you have to set the proxy settings in Telegram currently, or use some other apps like SSX-NG-R that supports IP whitelist / blacklist.

我觉得可以尝试写入telegarm的污染ip在proxy代理文件里

image
This works.The port is what your SSX-NG's Sock5 port.

Environment

  • OSX

How to setup proxy for telegram only

Setting Icon --> Privacy and Security --> Choose Sock5 method --> (then you know :smile: )

对tg设置代理
127.0.0.1
1086 已解决问题

image
image

@kingzez 我一直不明白1086个1089这两个端口的区别??可以帮忙解释下吗?我本来以为PAC端口是可以自动分流的,然而发现1089端口pac模式并不能使用代理。

@coderbean The PAC port is used to provide the PAC file (try http://127.0.0.1:1089/proxy.pac) for the system wide "Proxy Auto-Config" network configuration.

The PAC file is basically a piece of Javascript file containing a function FindProxyForURL(url, host) for the operating system to call. The function takes the URL / host the operating system is going to visit in, and tell the system whether to connect directly or use the SOCKS5 proxy at port 1086.

  • The "Global Mode" sets the system wide SOCKS5 proxy to 127.0.0.1:1086
  • The "PAC Auto Mode" sets the system wide Proxy Auto-Config URL to http://127.0.0.1:1089/proxy.pac, which will tell the system to use SOCKS5 proxy 127.0.0.1:1086 if the URL / host matches.

414590bc-3829-11e7-8bab-7a2d90914dfc
如果你使用的是Shadowsocksx-NG,仅仅这样的设置是不行的。
墙也在不断的进化,
在MAC的顶栏点击Shadowsocksx-NG图标,光标放置在 《代理设置》点击从GFW List更新PAC,当然我的代理模式为 PAC自动模式!
000

设置代理为127.0.0.1 1086已经解决该问题,不过之前没有设置代理也可以登录,是不是墙发生了变化。
用的是自己搭建的gce,同样的服务器在手机端可以连接tg。
P.S ssr的最新版本可以从哪里下载

IOS最新版无法上网,ss全局,设置soket5代理也没用
解决方案

@Newchensheng 原生的TG for Mac还不行的,必须使用TG Desktop 才可以设置成功。

image
设置两个端口都不行啊!!!

移动端的telegram不用设置代理的。只要你把移动端VPN打开即可。我们讨论的是MAC上Telegram,请确认。

linkstar notifications@github.com 于2018年8月25日周六 下午6:35写道:

[image: image]
https://user-images.githubusercontent.com/9080789/44617479-9cdb2080-a895-11e8-97cc-010faf10e2ff.png
设置两个端口都不行啊!!!


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/shadowsocks/ShadowsocksX-NG/issues/290#issuecomment-415959959,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ARrXMujXy9id9BHXNWqTOBlKsK19JKyvks5uUSh9gaJpZM4Mo-I0
.

port 填你profile里面的port,默认应该是1086

在 2017年5月13日,22:12,Albert Yu @.*> 写道: @Spacebody https://github.com/spacebody https://cloud.githubusercontent.com/assets/1104018/26026178/414590bc-3829-11e7-8bab-7a2d90914dfc.png — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#290 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AF8zUUXfKEFnTpTG8P1DNSoH3pOHDjCvks5r5bpagaJpZM4Mo-I0.

实测可用!感恩❤️

我的是shadow-ng144,我通过将代理设置为acl自动(记得访问下外网试试能不能联网),然后把代理端口改为127.0.0.1:1086,就可以了

just for mac download desktop version and see image:

image
image
image

官网下载的telegram,ShadowsocksX-NG 版本 1.4.4-R8 (1),无论如何无法配置成功。
telegram提示更新,更新后使用:

127.0.0.1:1086
连接成功。

image
我从官网下载的最新的telegram,然后设置了socks5,但是一直connecting,,。我ssr的节点测试了是没问题的

image
我从官网下载的最新的telegram,然后设置了socks5,但是一直connecting,,。我ssr的节点测试了是没问题的

我也是同样的问题,你最后解决了吗?

image
我从官网下载的最新的telegram,然后设置了socks5,但是一直connecting,,。我ssr的节点测试了是没问题的

我也是同样的问题,你最后解决了吗?

我解决了。我直接换成从AppStore里面下载的版本然后ssr直接开全局就可以了。之前这个是下载的macOS版本,你试试直接从AppStore里面下载,然后直接ssr全局就可以了。祝你好运

我的问题是,在 自动模式 下使用 TG 机器人 自动给我发信息,api 接口 差不多是这样样子 https://api.telegram.org/ 我修改 PAC https://*.telegram.org/ 但是 却报 The server couldn't send a respons,全局模式下接口是 ok的

image
我从官网下载的最新的telegram,然后设置了socks5,但是一直connecting,,。我ssr的节点测试了是没问题的

我也是同样的问题,你最后解决了吗?

我解决了。我直接换成从AppStore里面下载的版本然后ssr直接开全局就可以了。之前这个是下载的macOS版本,你试试直接从AppStore里面下载,然后直接ssr全局就可以了。祝你好运

这个方法有效

image
我从官网下载的最新的telegram,然后设置了socks5,但是一直connecting,,。我ssr的节点测试了是没问题的

我也是同样的问题,你最后解决了吗?

我解决了。我直接换成从AppStore里面下载的版本然后ssr直接开全局就可以了。之前这个是下载的macOS版本,你试试直接从AppStore里面下载,然后直接ssr全局就可以了。祝你好运

这个方法有效

不行

下载telegram desktop,设置proxy

image

然后ss开全局就可以了。

在appletStore 下载的telegram无论PAC还是全局加设置telegram代理都不行,然后下载另一个telegram desktop竟然好了.

在appletStore 下载的telegram无论PAC还是全局加设置telegram代理都不行,然后下载另一个telegram desktop竟然好了.

同样的情况,选择https://desktop.telegram.org下载的,就一切OK,但APPSTORE的不行

下载telegram desktop,设置proxy

image

然后ss开全局就可以了。

这个有用,pac模式也可以了

果然如上面说的,不要下官网的那个tg for mac,要去 https://desktop.telegram.org/ 下载desktop版才行

下载telegram desktop,设置proxy

image

然后ss开全局就可以了。

好使

中文:
哈哈,上面的全错,我知道怎么弄了,去“系统偏好设置-》网络设置-》代理” 然后设置 socket5 为 127.0.0.1:1086 然后点击好,返回点击应用。然后打开 Telegram 就可以直接使用了。
English:(Google Translate)
Haha, the whole mistake above, I know how to get it, go to "System Preferences -> Network Settings - "Proxy" and then set socket5 to 127.0.0.1:1086 and click OK, then click on Apply. Then open Telegram and you can use it directly.

我试过了 使用ss NG的话,设置proxy为127.0.0.1:1086 重点是,一定要用telegram desktop这个APP,别用telegram ,不然PAC无法生效

中文:
哈哈,上面的全错,我知道怎么弄了,去“系统偏好设置-》网络设置-》代理” 然后设置 socket5 为 127.0.0.1:1086 然后点击好,返回点击应用。然后打开 Telegram 就可以直接使用了。
English:(Google Translate)
Haha, the whole mistake above, I know how to get it, go to "System Preferences -> Network Settings - "Proxy" and then set socket5 to 127.0.0.1:1086 and click OK, then click on Apply. Then open Telegram and you can use it directly.

Bingo

我也是同样的问题,但是一直无法解决,后来发现mac的应用商店中有两个telegram,换了一个下载然后配置sock5就可以了~认准英文版的那个 telegram desktop

截屏2020-02-21下午12 03 28
截屏2020-02-21下午12 03 47
截屏2020-02-21下午12 04 16

截屏2020-02-21下午12 10 51
试试看,用了速度还可以。
https://www.v2aky.com/#/register?code=XwSE61yR

设置Proxy后,重启TG。

设置Proxy后,重启TG。

It worked to me.

同 Mac 商店里的不能用,直接下 Desktop 版本的就好了

设置Proxy后,重启TG。

It worked to me.

It worked to me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ilovebamboo picture ilovebamboo  ·  4Comments

ghost picture ghost  ·  5Comments

0u0u0 picture 0u0u0  ·  4Comments

nil
aofei picture aofei  ·  4Comments

czhu08 picture czhu08  ·  3Comments