Skip to content
This repository has been archived by the owner on Jul 5, 2019. It is now read-only.

Discuss about sock5 proxy and http proxy #96

Open
zhkufish opened this issue Jun 7, 2018 · 2 comments
Open

Discuss about sock5 proxy and http proxy #96

zhkufish opened this issue Jun 7, 2018 · 2 comments

Comments

@zhkufish
Copy link

zhkufish commented Jun 7, 2018

http proxy, It use Privoxy to proxy http request. the rules make the request throw vpn or direct. such as www.baidu.com direct. and www.google.com.hk proxy.

But, I can't understand sock5 proxy. how it distinguish between domestic requests and foreign requests. such as wechat direct. telgram and whatsapp proxy.

英文不好, 附上中文, 有没大神可以解释一下.
http代理好理解, 通过Privoxy配置不同的规则, 可以让国内的请求直连, 国外的请求走代理. 但是像一些聊天软件, 不是走http协议的, 直接tcp的, 这个app是通过什么办法来区分的呢?
Antinat(SOCKS5 proxy),Privoxy(HTTP proxy), shadowsocks-libev, tun2socks 这几个之间是怎么工作的, 看了2天代码, 都没看明白.

@so898
Copy link
Contributor

so898 commented Jun 20, 2018

这里依靠的是 Antinat 这个 Proxy
Antinat 规则会将需要走代理的转发到 ss,不需要直接被处理并发送
tun2sock 是将设备给程序的 tcp IP packet 转换成 sock 包的形式发送给 Antinat

@zhkufish
Copy link
Author

我想实现节点ping检查的功能. 但是发现, 如果是vpn没有连上之前, 是正常的, 连上vpn之后. 结果就都变成0ms的ping值了.不知道这个是不是要在antinat把需要ping检查的ip给过滤掉.

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