Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎么做到过滤PAC代理流量的? #33

Open
a442509097 opened this issue Jul 11, 2022 · 1 comment
Open

怎么做到过滤PAC代理流量的? #33

a442509097 opened this issue Jul 11, 2022 · 1 comment

Comments

@a442509097
Copy link

我看了系统的资源监视器, 浏览器走的是代理流量或非代理通道时, chrome和ShadowsocksR都会显示有流量在走.
但我看到作者的这个, 可以做到, 访问的是国内网站时, 只显示chrome的网速, 反之国外网站时, 只显示ShadowsocksR的网速.
这是怎么做到的, 过滤127.0.0.1行不通, 因为ShadowsocksR的PAC模式应该是把所有网络数据通过软件代理, 再经过pac脚本区分是国内还是国外网站.

@a442509097
Copy link
Author

我搞明白了, 127.0.0.1这是chrome和ssr之间的数据通道, 所以只要两者的来自这个ip的流量过滤掉就行, 因为它们真正的流量其实是来自各自的实际ip访问.
另外一个网站可能同时包含了tdp和udp, 所以要两者相加.

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

No branches or pull requests

1 participant