search

Home  >  Q&A  >  body text

node.js - socks代理的身份验证怎么做?

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

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

reply all(1)I'll reply

  • 高洛峰

    高洛峰2017-04-17 14:00:32

    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/

    reply
    0
  • Cancelreply