Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持 Hysteria1/2 协议 #450

Closed
Zh40Le1ZOOB opened this issue Jan 31, 2024 · 9 comments · Fixed by #533
Closed

支持 Hysteria1/2 协议 #450

Zh40Le1ZOOB opened this issue Jan 31, 2024 · 9 comments · Fixed by #533

Comments

@Zh40Le1ZOOB
Copy link

Zh40Le1ZOOB commented Jan 31, 2024

#48 (comment)

此 Issue 提及的 TUIC 协议已归档,但 Hysteria 仍保持开发,出于兼容性考虑,请求支持 Hysteria1/2 协议

@dae-prow
Copy link
Contributor

dae-prow bot commented Jan 31, 2024

Thanks for opening this issue!

@mzz2017
Copy link
Contributor

mzz2017 commented Jan 31, 2024

@Zh40Le1ZOOB 欢迎 pr

@troubadour-hell
Copy link
Contributor

一个更好的线路,相信比dae支持Hysteria,能为你的网络带来更大提升

@Zh40Le1ZOOB
Copy link
Author

这不是出于性价比考虑的,这是出于兼容性考虑
抱歉本人技术无法实现此目标

@Zh40Le1ZOOB
Copy link
Author

@Zh40Le1ZOOB 欢迎 pr

本人技术无法实现此目标,因此提交此 Issues 来请求开发者在空闲之余支持此协议。如有冒犯,十分抱歉

@MarksonHon
Copy link
Contributor

谈不上冒犯,只是如果没有开发者用对应的协议,那就没什么动力去做

@Zh40Le1ZOOB
Copy link
Author

所以此 Issue 可以放在这里抛砖引玉,期望有兴趣的开发者来做

@hiifeng
Copy link
Contributor

hiifeng commented May 27, 2024

在dae尚未支持hysteria时,可以考虑使用以下两种实现方式。
1、同时安装dae和hysteria客户端,配置文件参考:
dae的配置

# 全局配置
global {
    # 绑定lan网口提供给内网设备,填自己服务器的网口,多个逗号隔开
    lan_interface: eth0
    wan_interface: auto
    log_level: info
    auto_config_kernel_parameter: true
    dial_mode: domain
    allow_insecure: false
    so_mark_from_dae: 1234

    # tls配置
    tls_implementation: utls
    utls_imitate: chrome_auto
}
# 订阅配置
subscription {
}
# 节点配置
node {
    # 节点URI
    US: 'socks5://username:password@localhost:10808'
}
# 分组配置,以下采用固定策略,使用第一个节点
group {
    elden_proxy {
        policy: fixed(0)
    }
}
# dns配置
dns {
  upstream {
    googledns: 'tcp+udp://dns.google.com:53'
    alidns: 'tcp+udp://114.114.114.114:53'
  }
  routing {
    request {
      qname(geosite:cn) -> alidns
      fallback: googledns
    }
    response {
        upstream(googledns) -> accept
        fallback: accept
    }
  }
}
# 路由配置
routing {
    pname(NetworkManager) -> direct
    dip(224.0.0.0/3, 'ff00::/8') -> direct
    dip(geoip:private) -> direct

    ### 以下是自定义规则
    ## 规则
    ip(geoip:cn) -> direct
    domain(geosite:cn) -> direct
    domain(geosite:category-ads) -> block

    ## hysteria 配置
    pname(hysteria) -> must_direct

    # 默认出站分组
    fallback: elden_proxy
}

hysteria客户端的配置

{
  "server": "example.hicairo.com:8443,10000-15000",
  "auth":"password",
   "transport": {
    "type": "udp",
    "udp": {
      "hopInterval": "30s"
    }
  },
  "bandwidth": {
    "up": "1000 mbps",
    "down": "1000 mbps"
  },
  "fastOpen": true,
  "lazy": true,
  "socks5": {
    "listen": "127.0.0.1:10808",
    "username": "username",
    "password": "password"
  },
    "http": {
    "listen": "127.0.0.1:10809",
    "username": "username",
    "password": "password"
  }
}

2、使用hysteria客户端+iptables实现,参考:
https://www.hicairo.com/post/70.html

@mnixry
Copy link
Contributor

mnixry commented Jun 11, 2024

所以此 Issue 可以放在这里抛砖引玉,期望有兴趣的开发者来做

抱歉打扰各位。我在 #533 提交了相关 PR,现在需要使用 Hysteria2 协议的用户来对其稳定性进行测试。
如果有兴趣可以前往该 PR 的最新 GitHub Action 下载。

/cc @xmapst

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants