V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Recommended Services
Amazon Web Services
LeanCloud
New Relic
ClearDB
edsgerlin
V2EX  ›  云计算

UDP 流量中转有没有 pre-shared key encrypted 的方案呢?类似 qtunnel,可惜 qtunnel 只支持 TCP。。。。。。

  •  
  •   edsgerlin · Oct 21, 2015 · 2616 views
    This topic created in 3855 days ago, the information mentioned may be changed or developed.
    如题。
    9 replies    2015-10-23 20:12:19 +08:00
    chinawrj
        1
    chinawrj  
       Oct 21, 2015 via Android
    ss 就可以啊
    edsgerlin
        2
    edsgerlin  
    OP
       Oct 21, 2015
    @chinawrj Shadowsocks 是对外界提供一个 socksv5 接口,而 qtunnel 是无条件将客户端指定端口流量转发到服务端指定端口。比如说 qtunnel 可以用来连接阿里云的 Redis 客户端和 AWS 上的 Redis 服务端,而这个隧道过程对两者透明。 UDP 转发比较常用的一般是 socat 之类的,不过它们不提供加密,而 stunnel 、 qtunnel 不支持 UDP ……
    chinawrj
        3
    chinawrj  
       Oct 21, 2015
    @edsgerlin ss 支持 UDP tunnel
    edsgerlin
        4
    edsgerlin  
    OP
       Oct 23, 2015
    @chinawrj 你没懂我什么意思, SS 对外部提供的接口是 sockv5 proxy ,要应用本身支持 socksv5. 比如说如果我要在墙外服务器跑一个基于 UDP 的语音通讯服务,而客户端要直连该服务,客户端没有内建的 socksv5 支持我也不指望客户自己设置。现在我在阿里云设置一个 UDP 转发,阿里云把流量转发到墙外服务器线路会稳定一点,客户只要连到阿里云就行了,转发的过程对客户是透明的。= =
    chinawrj
        5
    chinawrj  
       Oct 23, 2015 via Android
    @edsgerlin 我懂你意思。你是不明白用 iptables REDIRECT
    edsgerlin
        6
    edsgerlin  
    OP
       Oct 23, 2015
    @chinawrj 请问你是说 ss-redir 还是 ss-tunnel 呢,对这两个不太了解,只在 openwrt 上用过。
    chinawrj
        7
    chinawrj  
       Oct 23, 2015 via Android   ❤️ 1
    @edsgerlin ss-redir 配合 iptables REDIRECT 就行啦
    edsgerlin
        8
    edsgerlin  
    OP
       Oct 23, 2015
    @chinawrj 好的, thanks ,我看看 iptables 的文档试试看吧……感觉 SS 某种意义上是神器= =以前只知道拿来科学上网都没想到可以这样玩。
    chinawrj
        9
    chinawrj  
       Oct 23, 2015 via Android
    @edsgerlin 对了,你只是定点转发的话用 ss tunnel 好了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   6174 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 56ms · UTC 02:38 · PVG 10:38 · LAX 19:38 · JFK 22:38
    ♥ Do have faith in what you're doing.