V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
通过以下 Referral 链接购买 DigitalOcean 主机,你将可以帮助 V2EX 持续发展
DigitalOcean - SSD Cloud Servers
ae3803
V2EX  ›  VPS

请问服务器如何中转 TCP 流量?

  •  
  •   ae3803 · 2019-05-24 19:34:32 +08:00 · 547 次点击
    这是一个创建于 1804 天前的主题,其中的信息可能已经有所发展或是发生改变。

    系统:Debian9 用 Vultr 东京区搭建了 MC 游戏服务器( TCP 协议) 直连延迟和丢包都太高,想用阿里云的香港服务器来中转 方案大概是这样:国内——阿里云香港服务器—— Vultr 东京服务器 请问我该怎么中转,有没有具体的方法? 不想用 iptables,太麻烦...

    第 1 条附言  ·  2019-06-13 23:02:25 +08:00
    我能不能用 A 中转服务器(端口 25565)中转 B 服务器的端口(端口 30525,没有服务器控制权)?
    9 条回复    2019-06-13 23:01:50 +08:00
    DGideas
        1
    DGideas  
       2019-05-24 19:38:01 +08:00
    ae3803
        2
    ae3803  
    OP
       2019-05-24 19:41:11 +08:00
    frp 不是内网穿透的吗?
    tvirus
        3
    tvirus  
       2019-05-24 21:47:33 +08:00
    haproxy, socat 或 nginx
    DGideas
        4
    DGideas  
       2019-05-25 00:36:11 +08:00
    @ae3803 拿阿里云香港做中继啊,反向代理 Vultr 的我的世界服务器端口
    ae3803
        5
    ae3803  
    OP
       2019-05-25 11:06:17 +08:00
    哦,frps 放阿里云香港还是放 Vultr 服务器?
    DGideas
        6
    DGideas  
       2019-05-25 12:55:50 +08:00
    @ae3803 既然你提到国内——阿里云香港服务器—— Vultr 东京服务器 ,那么 frps 放在香港服务器上是合适的
    DGideas
        7
    DGideas  
       2019-05-25 12:56:05 +08:00
    回复时候记得 @我,要不我看不到的
    ae3803
        8
    ae3803  
    OP
       2019-05-25 20:21:29 +08:00
    嗯,谢谢了,已经弄好了!
    ae3803
        9
    ae3803  
    OP
       2019-06-13 23:01:50 +08:00
    另外再问下我能不能用 A 中转服务器(端口 25565)中转 B 服务器的端口(端口 30525,没有服务器控制权)?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   852 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 19:30 · PVG 03:30 · LAX 12:30 · JFK 15:30
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.