Recommended Services
› Amazon Web Services
› LeanCloud
› New Relic
› ClearDB
idragonet
V2EX  ›  云计算

请教: HaProxy 如何中转 Trojan?

  •  
  •   idragonet · Mar 4, 2020 · 1942 views
    This topic created in 2447 days ago, the information mentioned may be changed or developed.
    晚上公司电信爆卡通过梯子只能 20-30kb,想通过境内 VPS 安装 HaProxy 如何中转 Trojan
    7 replies  •  2020-03-10 11:43:45 +08:00
    learningman
    learningman
    Mar 4, 2020
    1
    Trojan 貌似可以直接用 nginx 代理
    其实是我不会配 HaProxy)
    idragonet
    idragonet
    OP
    Mar 4, 2020
    2
    @learningman nginx 做 TCP 转发?
    klh
    klh
    Mar 4, 2020
    3
    frontend v2ray-in
    bind *:12000
    default_backend v2ray-out

    backend v2ray-out
    server server1 172.18.x.x:12000 maxconn 20480

    没用过 Trojan 应该差不多
    learningman
    learningman
    Mar 4, 2020
    4
    @idragonet ssl_preread
    yulihao
    yulihao
    Mar 4, 2020
    5
    @hiplon 有 SSL 的,不能这样
    tvirus
    tvirus
    Mar 5, 2020
    6
    backend trojan
    server trojan xxxx.com:443 check-ssl verify none
    whitegerry
    whitegerry
    Mar 10, 2020 via iPhone
    7
    frontend ssl
    mode tcp
    bind *:443
    tcp-request inspect-delay 5s
    tcp-request content accept if { req.ssl_hello_type 1 }

    acl trojan req_ssl_sni -i abc.com

    use_backend trojan if trojan
    use_backend nginx if !trojan

    backend trojan
    mode tcp
    server trojan 127.0.0.1:3443

    backend nginx
    mode tcp
    option ssl-hello-chk
    server nginx 127.0.0.1:4443
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2110 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 13:57 · PVG 21:57 · LAX 05:57 · JFK 08:57
    ♥ Do have faith in what you're doing.