-
Notifications
You must be signed in to change notification settings - Fork 613
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. 支持配置obfs,如果使用自签证书请尽量使用obfs混淆
- Loading branch information
emptysuns
committed
Dec 11, 2022
1 parent
d4d052d
commit 03aecdf
Showing
4 changed files
with
235 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,10 @@ | ||
# Hi Hysteria | ||
|
||
##### (2022/12/04) 0.4.4.m: | ||
##### (2022/12/11) 0.4.5: | ||
|
||
``` | ||
hysteria 1.3.1发布,支持了fast_open加快响应速度和提升了些许性能(目前fast_open仅适用hysteria内核直接运行方式(V2rayN),其他客户端未直接支持) | ||
1. 支持对配置进行备注 | ||
2. 增加对自签证书的提示,最近GFW对自签证书阻断情况严重,不再推荐使用 | ||
3. 增加了一些提示信息方便配置过程 | ||
4. 增加随机密码功能 | ||
5. 完善对PortHopping的支持,修复重启系统后iptables规则消失的bug | ||
6. 修复ip被github拉黑无法获得hysteria core时下载为空的bug | ||
7. 增加重启hysteria后的检测,修复重启失败时提示成功的bug | ||
8. 修复netfilter-persistent规则无法删除的bug | ||
9. 一些其它bug修复 | ||
10.支持fast_open | ||
11.在release上增加其他客户端下载方便直接取得 | ||
12.修复lsof不区分端口类型和监听状态的bug | ||
13.完善对端口合法性的判断,引导用户尽可能输入正确的端口 | ||
14.修改测试配置的方式,加快配置打印时间 | ||
15.修复实时日志打印的方式,使用重定向到cat防止更新不及时 | ||
Q: 为什么0.4.4更新这么频繁,内容这么多? | ||
A: 上个版本为了兼容portHopping动了很多祖传代码,导致一堆bug,所以修复的比较多 | ||
1. 支持配置obfs,如果使用自签证书请尽量使用obfs混淆 | ||
``` | ||
|
||
[历史改进](md/log.md) | ||
|
@@ -77,7 +60,7 @@ Hysteria这是一款由go编写的非常优秀的“轻量”代理程序,它 | |
|
||
#### 6. [支持的客户端](md/client.md) | ||
|
||
#### 7. [常见问题/通知](md/issues.md) | ||
#### 7. [常见问题](md/issues.md) | ||
|
||
#### 8. [[端口跳跃/多端口](Port Hopping)介绍](md/portHopping.md) | ||
|
||
|
@@ -96,7 +79,7 @@ bash <(curl -fsSL https://git.io/hysteria.sh) | |
3 ------------------------------------------- | ||
|********** Hi Hysteria **********| | ||
|********** Author: emptysuns **********| | ||
|********** Version: 0.4.4 **********| | ||
|********** Version: 0.4.5 **********| | ||
------------------------------------------- | ||
Tips:hihy 命令再次运行本脚本. | ||
............................................. | ||
|
@@ -132,107 +115,110 @@ Tips:hihy 命令再次运行本脚本. | |
|
||
<details> | ||
<summary>演示较长,点我查看</summary> | ||
<pre><blockcode> | ||
开始配置: | ||
<pre><blockcode> | ||
开始配置: | ||
请选择证书申请方式: | ||
|
||
1、使用ACME申请(推荐,需打开tcp 80/443) | ||
2、使用本地证书文件 | ||
3、自签证书 | ||
|
||
输入序号: | ||
3 | ||
请输入自签证书的域名(默认:wechat.com): | ||
注意:自签证书近一段时间来遭到大量随机阻断,请谨慎使用(这条提示不消失说明阻断还在继续) | ||
如果一定要使用自签证书,请在下方配置选择使用obfs混淆验证,保证安全性 | ||
fuck.qq.com | ||
判断自签证书,客户端连接所使用的地址是否正确?公网ip:1.2.3.4 | ||
请选择: | ||
|
||
1、正确(默认) | ||
2、不正确,手动输入ip | ||
|
||
输入序号: | ||
1 | ||
请输入域名(需正确解析到本机,关闭CDN): | ||
test.example.com | ||
->检测test.example.com,DNS解析... | ||
|
||
->解析正确,使用hysteria内置ACME申请证书.域名:test.example.com | ||
->您已选择自签fuck.qq.com证书加密.公网ip:1.2.3.4 | ||
|
||
选择协议类型: | ||
|
||
1、udp(QUIC,可启动端口跳跃) | ||
2、faketcp | ||
3、wechat-video(默认) | ||
|
||
输入序号: | ||
1 | ||
->传输协议:udp | ||
3 | ||
|
||
->传输协议:wechat-video | ||
|
||
请输入你想要开启的端口,此端口是server端口,建议10000-65535.(默认随机) | ||
|
||
->使用随机端口:udp/58210 | ||
->使用随机端口:udp/14274 | ||
|
||
->检测到您选择udp协议,可使用[端口跳跃/多端口](Port Hopping)功能 | ||
强烈推荐,但是处于beta测试中,目前hihy对此功能支持尚不完善,后续会慢慢修改更新,如有问题请反馈给作者,谢谢! | ||
请输入您到此服务器的平均延迟,关系到转发速度(默认200,单位:ms): | ||
180 | ||
|
||
Tip: 长时间单端口 UDP 连接容易被运营商封锁/QoS/断流,启动此功能可以有效避免此问题. | ||
更加详细介绍请参考: [https://github.com/emptysuns/Hi_Hysteria/blob/main/md/portHopping.md](https://github.com/emptysuns/Hi_Hysteria/blob/main/md/portHopping.md) | ||
->延迟:180 ms | ||
|
||
选择是否启用: | ||
期望速度,这是客户端的峰值速度,服务端默认不受限。Tips:脚本会自动*1.10做冗余,您期望过低或者过高会影响转发效率,请如实填写! | ||
请输入客户端期望的下行速度:(默认50,单位:mbps): | ||
180 | ||
|
||
1、启用(默认) | ||
2、跳过 | ||
->客户端下行速度:180 mbps | ||
|
||
输入序号: | ||
1 | ||
->您选择启用端口跳跃/多端口(Port Hopping)功能 | ||
端口跳跃/多端口(Port Hopping)功能需要占用多个端口,请保证这些端口没有监听其他服务 | ||
Tip: 端口选择数量不宜过多,推荐1000个左右,范围1-65535,建议选择连续的端口范围. | ||
更多介绍参考: [https://hysteria.network/docs/port-hopping/](https://hysteria.network/docs/port-hopping/) | ||
请输入起始端口(默认47000): | ||
30000 | ||
->起始端口:30000 | ||
请输入客户端期望的上行速度(默认10,单位:mbps): | ||
30 | ||
|
||
请输入结束端口(默认48000): | ||
40000 | ||
->结束端口:40000 | ||
->客户端上行速度:30 mbps | ||
|
||
->您选择的端口跳跃/多端口(Port Hopping)参数为: 30000:40000 | ||
请输入认证口令(默认随机生成,建议20位以上强密码): | ||
|
||
请输入您到此服务器的平均延迟,关系到转发速度(默认200,单位:ms): | ||
350 | ||
->延迟:350 ms | ||
->认证口令:Wvb9NlmWt0BxkJXoLnYKvM0NoOUz6sIgdaWHDr1gMzQGtE8lIs | ||
|
||
期望速度,这是客户端的峰值速度,服务端默认不受限。Tips:脚本会自动*1.10做冗余,您期望过低或者过高会影响转发效率,请如实填写! | ||
请输入客户端期望的下行速度:(默认50,单位:mbps): | ||
130 | ||
->客户端下行速度:130 mbps | ||
Tips: 如果使用obfs混淆加密,抗封锁能力更强,能被识别为未知udp流量,但是会增加cpu负载导致峰值速度下降,如果您追求性能且未被针对封锁建议不使用 | ||
选择验证方式: | ||
|
||
请输入客户端期望的上行速度(默认10,单位:mbps): | ||
20 | ||
->客户端上行速度:20 mbps | ||
1、auth_str(默认) | ||
2、obfs | ||
|
||
请输入认证口令(默认随机生成,建议20位以上强密码): | ||
输入序号: | ||
2 | ||
|
||
->认证口令:vSIalxEIkTlJlkairDbqUdGZLb3EKqeBT1ESirdPSLI8PmgE8i | ||
->您选择的验证方式为:obfs | ||
|
||
请输入客户端名称备注(默认使用域名/IP区分,例如输入test,则名称为Hys-test): | ||
sam | ||
demo | ||
|
||
配置录入完成! | ||
|
||
执行配置... | ||
IPTABLES OPEN: tcp/80 | ||
SIGN... | ||
|
||
Signature ok | ||
subject=C = CN, ST = GuangDong, L = ShenZhen, O = PonyMa, OU = Tecent, emailAddress = [email protected], CN = Tencent Root CA | ||
Getting CA Private Key | ||
rm: cannot remove '/etc/hihy/cert/fuck.qq.com.ca.srl': No such file or directory | ||
SUCCESS. | ||
|
||
net.core.rmem_max = 8000000 | ||
net.ipv4.ip_forward = 1 | ||
net.ipv6.conf.all.forwarding = 1 | ||
|
||
Test config... | ||
|
||
IPTABLES OPEN: udp/58210 | ||
Test success!Generating config... | ||
nezha.sh: line 1242: 65988 Killed /etc/hihy/bin/appS -c /etc/hihy/conf/hihyServer.json server > /tmp/hihy_debug.info 2>&1 | ||
IPTABLES OPEN: udp/14274 | ||
Test success! | ||
Generating config... | ||
安装成功,请查看下方配置详细信息 | ||
------------------------------- | ||
docker.sh: line 877: 27670 Killed /etc/hihy/bin/appS -c /etc/hihy/conf/hihyServer.json server > /tmp/hihy_debug.info 2>&1 | ||
|
||
1* [v2rayN/nekoray] 使用hysteria core直接运行: | ||
客户端配置文件输出至: /root/Hys-sam(v2rayN).json ( 直接下载生成的配置文件[推荐] / 自行复制粘贴下方配置到本地 ) | ||
客户端配置文件输出至: /root/Hys-demo(v2rayN).json ( 直接下载生成的配置文件[推荐] / 自行复制粘贴下方配置到本地 ) | ||
Tips:客户端默认只开启http(8888)、socks5(8889)代理!其他方式请参照hysteria文档自行修改客户端config.json | ||
↓***********************************↓↓↓copy↓↓↓*******************************↓ | ||
{ | ||
"server": "test.example.com:58210,30000-40000", | ||
"protocol": "udp", | ||
"up_mbps": 22, | ||
"down_mbps": 143, | ||
"server": "1.2.3.4:14274", | ||
"protocol": "wechat-video", | ||
"up_mbps": 33, | ||
"down_mbps": 198, | ||
"http": { | ||
"listen": "127.0.0.1:10809", | ||
"timeout" : 300, | ||
|
@@ -243,14 +229,15 @@ Tips:客户端默认只开启http(8888)、socks5(8889)代理!其他方式请参 | |
"timeout": 300, | ||
"disable_udp": false | ||
}, | ||
"obfs": "Wvb9NlmWt0BxkJXoLnYKvM0NoOUz6sIgdaWHDr1gMzQGtE8lIs", | ||
"auth_str": "", | ||
"alpn": "h3", | ||
"acl": "acl/routes.acl", | ||
"mmdb": "acl/Country.mmdb", | ||
"auth_str": "vSIalxEIkTlJlkairDbqUdGZLb3EKqeBT1ESirdPSLI8PmgE8i", | ||
"server_name": "test.example.com", | ||
"insecure": false, | ||
"recv_window_conn": 26214400, | ||
"recv_window": 104857600, | ||
"server_name": "fuck.qq.com", | ||
"insecure": true, | ||
"recv_window_conn": 18612224, | ||
"recv_window": 74448896, | ||
"disable_mtu_discovery": true, | ||
"resolver": "https://223.5.5.5/dns-query", | ||
"retry": 3, | ||
|
@@ -259,16 +246,16 @@ Tips:客户端默认只开启http(8888)、socks5(8889)代理!其他方式请参 | |
"handshake_timeout": 15, | ||
"idle_timeout": 30, | ||
"fast_open": true, | ||
"hop_interval": 180 | ||
"hop_interval": 120 | ||
} | ||
↑***********************************↑↑↑copy↑↑↑*******************************↑ | ||
|
||
2* [Shadowrocket/Sagernet/Passwall] 一键链接: | ||
hysteria://test.example.com:58210?protocol=udp&auth=vSIalxEIkTlJlkairDbqUdGZLb3EKqeBT1ESirdPSLI8PmgE8i&peer=test.example.com&insecure=0&upmbps=22&downmbps=143&alpn=h3#Hys-sam | ||
hysteria://1.2.3.4:14274?protocol=wechat-video&auth=&obfsParam=Wvb9NlmWt0BxkJXoLnYKvM0NoOUz6sIgdaWHDr1gMzQGtE8lIs&peer=fuck.qq.com&insecure=1&upmbps=33&downmbps=198&alpn=h3#Hys-demo | ||
|
||
3* [Clash.Meta] 配置文件已在/root/Hys-sam(clashMeta).yaml输出,请下载至客户端使用(beta) | ||
3* [Clash.Meta] 配置文件已在/root/Hys-demo(clashMeta).yaml输出,请下载至客户端使用(beta) | ||
|
||
</blockcode></pre> | ||
`</blockcode></pre>` | ||
|
||
</details> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.