node.js - socks代理的身份验证怎么做?
PHP中文网
PHP中文网 2017-04-17 13:58:32
0
1
1203

搭了一个ss服务器,已经可以跑通了,更近一步,我想将它用在我的iphone手机上,于是就研究了一下pac自动代理,并且也跑通了,但这样的代理,任意一个人只要扫一下端口就可以使用了,这中间应该怎样加一层身份验证呢?

// pac
function FindProxyForURL(url, host) {
    return 'SOCKS5 xxx.xxx.xxx.xxx:1080; SOCKS xxx.xxx.xxx.xxx:1080'
}
PHP中文网
PHP中文网

认证高级PHP讲师

reply all(1)
小葫芦

Does socks5 authentication be supported on iPhone?

You can deploy socks5 on the local machine, deploy ss on the remote server, and then the local machine connects to ss and acts as a proxy for socks5. Access the proxy service provided by the local machine on the iPhone.

pac generation, you can use: http://pac.sjz.io/

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template