Shadowsocks 开启 OTA

    技术教程 Dr.V 1839次浏览 0个评论 扫描二维码

    One Time Auth

    One-time authentication (shortened as OTA) is a new experimental feature designed to improve the security against CCA. You should understand the protocol before reading this document.

    By default, the server that supports OTA should run in the compatible mode. OTA is only applied if the client’s request header has a flag set. However, if the server switch on OTA explicitly, all clients must switch on OTA, otherwise connections will be denied.

    The authentication method is HMAC-SHA1 which has wide supports among all major platforms and fairly good speed.

    服务端

    更新服务端 shadowsocks 版本(debian_shadowsocks_tennfy.sh)

    配置启动参数以开启 OTA:vi /etc/default/shadowsocks-libev

    # Extra command line arguments
    DAEMON_ARGS="-u -A"
     
    

    /etc/init.d/shadowsocks-libev restart

    客户端 Mac

    使用 shadowsocks-libev。

    为安装脚本添加 -A 参数(OTA):brew edit shadowsocks-libev

    plist_options:manual => "#{HOMEBREW_PREFIX}/opt/shadowsocks-libev/bin/ss-local -A -c #{HOMEBREW_PREFIX}/etc/shadowsocks-libev.json"
     
    <span class="tag"><<span class="title">string</span>></span>#{opt_bin}/ss-local<span class="tag"></<span class="title">string</span>></span>
    <span class="tag"><<span class="title">string</span>></span>-A<span class="tag"></<span class="title">string</span>></span>
    <span class="tag"><<span class="title">string</span>></span>-c<span class="tag"></<span class="title">string</span>></span>
    <span class="tag"><<span class="title">string</span>></span>#{etc}/shadowsocks-libev.json<span class="tag"></<span class="title">string</span>></span>
    

    brew install shadowsocks-libev

    配置 config:vi /usr/local/etc/shadowsocks-libev.json

    开机启动:brew services start shadowsocks-libev

    手动启动调试:/usr/local/opt/shadowsocks-libev/bin/ss-local -A -c /usr/local/etc/shadowsocks-libev.json -v

    客户端 iOS

    ShadowRockets:One Time Auth :white_check_mark:

    客户端 Win

    https://github.com/shadowsocks/shadowsocks-windows/releases

    原文  http://itony.me/907.html

    anyShare分享到:

    VPN信息网 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明-VPN信息网-Shadowsocks 开启 OTA
    喜欢 (0)
    发表我的评论
    取消评论

    表情 贴图 加粗 删除线 居中 斜体 签到

    Hi,您需要填写昵称和邮箱!

    • 昵称 (必填)
    • 邮箱 (必填)
    • 网址