hysteria一款为恶劣网络进行优化的工具教程
一·简介
Hysteria 是一个功能丰富的,专为恶劣网络环境进行优化的网络工具(双边加速),比如卫星网络、拥挤的公共 Wi-Fi、在中国连接国外服务器等。 基于修改版的 QUIC 协议。
Hysteria这是一款由go编写的非常优秀的“轻量”代理程序,它很好的解决了在搭建富强魔法服务器时最大的痛点——线路拉跨。
在魔法咏唱时最难的不是搭建维护,而是在晚高峰时期的交付质量。当三大运营商晚高变成了:奠信、连不通、移不动时,你我都有感触。 虽然是走的udp但是提供obfs,暂时不会被运营商针对性的QoS(不开obfs也不会被QoS)。
1、原项目提供的bench:
2、50mbps北方电信,北京出口 直连落地vir San Jose机房163线路,22-23点测试YT 1080p60直播流:

190 dropped of 131329
3、无对钟国大陆线路优化,洛杉矶shockhosting机房,1c128m ovznat 4k@p60:

139783 Kbps
该项目仅作学习用途,请查看的访客在5s之内立即删除并停止使用。
由它所引起的任何问题,作者并不承担风险和任何法律责任。
因为脚本现处于0.x的测试版本,可能会有一些bug,如果遇到请发issue,欢迎star,您的⭐是我维护的动力。
适配ubuntu/debian, centos/rhel操作系统,misple/arm/x86/s390x架构。
windows使用请仔细阅读cmd客户端(伪)介绍其他平台看这里。
1. 完善开放防火墙端口的流程,为以后进一步细分端口打基础 2. 加入s390x架构适配 3. 加入v2rayN的说明[TEST]
二·使用
第一次使用?
1. 防火墙问题
2. 自签证书
3. 限制UDP的服务商排雷列表【2022/03/21更新】
4. hysteria各个协议介绍
5. cmd客户端(伪)介绍
6. 部分其他平台?
7. 如何设置我的延迟、上行/下行速度?
8. 图形UI,v2rayN
拉取安装
su - root #Change to root bash <(curl -fsSL https://git.io/hysteria.sh)
配置过程
首次安装后: hihy命令调出菜单,如更新了hihy脚本,请执行选项9或者12,获得最新的配置
------------------------------------------- |********** Hi Hysteria **********| |********** Author: emptysuns ************| |********** Version: 0.3.7 **********| ------------------------------------------- Tips:hihy 命令再次运行本脚本. ............................................. ############################### ..................... 1) 安装 hysteria 2) 卸载 hysteria ..................... 3) 启动 hysteria 4) 暂停 hysteria 5) 重新启动 hysteria 6) 运行状态 ..................... 7) 更新hysteria core 8) 查看当前配置 9) 重新配置hysteria 10) 切换ipv4/ipv6优先级 11) 更新hihy 12) 完全重置所有配置 13) 修改当前协议类型 ############################### 0)退出 ............................................. 请选择:1
脚本每次更新都可能会发生改变,请一定要展开并仔细参考演示过程,避免发生不必要的错误!
请选择:1
Ready to install.
Update.wait...
Hit:1 <https://pkg.cloudflareclient.com> bionic InRelease
Hit:2 <http://archive.ubuntu.com/ubuntu> bionic InRelease
Hit:3 <http://archive.ubuntu.com/ubuntu> bionic-updates InRelease
Hit:5 <http://security.ubuntu.com/ubuntu> bionic-security InRelease
Hit:6 <http://archive.ubuntu.com/ubuntu> bionic-backports InRelease
Hit:4 <https://packagecloud.io/ookla/speedtest-cli/ubuntu> bionic InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
78 packages can be upgraded. Run 'apt list --upgradable' to see them.
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository '<http://pkg.cloudflareclient.com> bionic InRelease' doesn't support architecture 'i386'
Done.
Install wget curl lsof
*wget
Installed.Ignore.
*curl
Installed.Ignore.
*lsof
Installed.Ignore.
Done.
The Latest hysteria version:v1.0.4
Download...
Download completed.
开始配置:
请选择证书申请方式:
1、使用ACME申请(推荐,需打开tcp 80/443)
2、使用本地证书文件
3、自签证书
输入序号:
3
请输入自签证书的域名(默认:wechat.com):
www.whitehouse.gov
您已选择自签www.whitehouse.gov证书加密.公网ip:1.2.3.4
请输入你想要开启的端口,此端口是server端口,建议10000-65535.(默认随机)
随机端口:37575
选择协议类型:
1、udp(QUIC)
2、faketcp
3、wechat-video(回车默认)
输入序号:
1
传输协议:udp
请输入您到此服务器的平均延迟,关系到转发速度(默认200,单位:ms):
60
期望速度,这是客户端的峰值速度,服务端默认不受限。Tips:脚本会自动*1.25做冗余,您期望过低或者过高会影响转发效率,请如实填写!
请输入客户端期望的下行速度:(默认50,单位:mbps):
100
请输入客户端期望的上行速度(默认10,单位:mbps):
20
请输入认证口令:
pekopeko
配置录入完成!
执行配置...
IPTABLES OPEN: udp/37575
SIGN...
SUCCESS.
Wait,test config...
Test success.
net.core.rmem_max = 8000000
hysteria.sh: line 630: 22019 Killed /etc/hihy/bin/appS -c /etc/hihy/conf/hihyServer.json server > /tmp/hihy_debug.info 2>&1
Created symlink /etc/systemd/system/multi-user.target.wants/hihy.service -> /etc/systemd/system/hihy.service.
配置文件输出如下且已经在本目录生成(直接下载本目录生成的config.json[推荐]/自行复制粘贴到本地)
Tips:客户端默认只开启http(8888)、socks5(8889)代理!其他方式请参照hysteria文档自行修改客户端config.json
***********************************↓↓↓copy↓↓↓*******************************↓
{
"server": "1.2.3.4:37575",
"protocol": "udp",
"up_mbps": 25,
"down_mbps": 125,
"http": {
"listen": "127.0.0.1:10809",
"timeout" : 300,
"disable_udp": false
},
"socks5": {
"listen": "127.0.0.1:10808",
"timeout": 300,
"disable_udp": false
},
"alpn": "h3",
"acl": "acl/routes.acl",
"mmdb": "acl/Country.mmdb",
"auth_str": "pekopeko",
"server_name": "www.whitehouse.gov",
"insecure": true,
"recv_window_conn": 3932160,
"recv_window": 15728640,
"disable_mtu_discovery": true,
"resolver": "119.29.29.29:53",
"retry": 3,
"retry_interval": 3
}
↑***********************************↑↑↑copy↑↑↑*******************************↑
Shadowrocket/Sagernet/Passwall一键链接:
hysteria://1.2.3.4:37575?protocol=udp&auth=pekopeko&peer=www.whitehouse.gov&insecure=1&upmbps=25&downmbps=125&alpn=h3#Hys-1.2.3.4
安装完毕
三·高级玩法(伪
1. 借用其他支持Socks5的GUI,来获得一个图形界面
四·Todo
如果您有好的功能建议,请不要忘记开个issue提出来欧~~~欢迎PR来完成Todo或者给我纠正我的渣代码
- 检测端口是否被占用
- 利用xray s5 inbound来支持按域名分流(warp)
- 生成分享链接
- 客户端自动更新
- hihy替换掉hysteria
- 规范化脚本代码
- 利用docker安装?(不知道是否有必要)
- 多密码支持
- 利用base64加密替换原来的auth_str
- 兼容v2rayN,放弃cmd的更新
五·结语
魔改UDP的QUIC协议,加了tls和混淆的话,个人跑了一段时间大流量,未被运营商QoS,落地ip并没有被墙,也不知道什么时候被针对,大家且用且珍惜吧。

This message is used to verify that this feed (feedId:73993433748742144) belongs to me (userId:73993098928280576). Join me in enjoying the next generation information browser https://follow.is.
I blog often and I really thank you forr your content.
This great article has truly peaked my interest. I’m gong tto
bookmark your blog and keep checking for new information abou once a
week. I subscribe to your RSS feed as well. https://W4i9o.mssg.me/
I would like to thank you for the efforts you’ve put in writing this website.
I really hope to view tthe same high-grade blog posts from youu in the futre as
well. In truth, your creative writing abilities has inspired me to get my own, personal wdbsite now ;
) https://YV6Bg.Mssg.me/
Thank you for some other informative blog. The
place else may I am getting that kind of information written in such a perfect way?
I have a challenge that I am simply now working on, and I’ve been at the look oout for such information. https://www.Canadiannewcomerjobs.ca/companies/tonybet/
best paying poker machines united states, free poker chips no deposit uk
and low playthrough ip casino biloxi free Play
bonus australia, or minimum dollar 5 deposit casino australia
best canadian casino sites, new casino non uk and online casino southend
(http://Rocks.rsf.hu/) available in australia, or best slot sites for winning usa
united states online live casino, united
kingdom online casino accepts poli and download poker stars uk mac,
or online casino australia best payout
my blog is gambling unhealthy
best online poker sites for australia, united statesn bingo journey cheats iphone rules and united kingdom online poker news, or new casino slot
sites usa
free fishing freuky slots, how much does united statesn roulette
pay and free spins bonus usa, or 2021 no deposit rock n’ cash casino cheat engine usa
casino amusements united kingdom, free pokies 4u canada and free no deposit spins usa, or online blackjack canada paypal
Take a look at my page: Goplayslots.net
bonus code Ecken Wetten anbieter (http://162.214.217.34/)
doppelte chance wetten
Look at my web-site: online wettseite (Gerard)
sportwetten gratis guthaben ohne einzahlung
My page :: basketball wetten ab punktevorsprung sieg tippen (Lizette)
professionelle wett tipps
Also visit my web page; wetten kein sport
geburtstermin wette gewinn
Here is my homepage; Deutsche lizenz sportwetten
Sportwetten Live tipps experten tipps
tipps für sportwetten heute (Florrie)
quoten vergleichen
pferderennen mannheim wetten
Here is my blog post Sichere Tipps Sportwetten
sportwetten strategie
my website – wettbüro mainz (Leora)
live Wetten Prognose schweiz
wetten ohne einzahlung
my web blog – wett Tipps Wochenende
sportwetten online wetten Anbieter bonus
was ist die beste top sportwetten Anbieter – https://servaco.com.br, app
alle wettanbieter deutschland
Here is my web-site – Sportwetten paysafecard (nejlevnejsi-hosting.cz)
wett tipps vorhersagen heute
Have a look at my web site – wettanbieter ohne lizenz [events.krossmedia.at]
beste wettseiten österreich
Here is my page :: wettrechner kombiwette (Audrey)
gute sportwetten tipps
Feel free to surf to my site … über unter wette strategie (Chante)
sportwetten
my page; Wo am besten wetten
gute wettseiten
My site – wettquote bielefeld leverkusen (Homer)
wett tipps ai kündigen
Also visit my web-site – beste biathlon wettanbieter – adhviet.com –
was heißt quote bei wetten
Also visit my site: deutsche lizenz Sportwetten
top Sportwetten Vorhersage heute quoten
online wetten mit startguthaben ohne einzahlung
Here is my web-site; WettbüRo Berlin
sichere wetten für heute
my web site :: was Ist eine kombiwette
online live wetten Im internet (phonexshop.com) gutschein ohne einzahlung
beste wettanbieter cash out
Also visit my web blog: ecopayz Buchmacher – http://www.sportytrader.info
–
asiatische buchmacher deutschland
Also visit my page deutscher Meister Wettquoten
test wettanbieter
Feel free to surf to my blog … Beste Bonus Sportwetten
bild wett tipps
Feel free to surf to my site; spiele wetten;
Philomena,
wetten dass unfall samuel koch heute
Feel free to visit my web blog – wettanbieter lizenz deutschland
pferderennen wetten gewinn
Feel free to visit my web-site :: buchmacher Bonus
wetten deutschland italien
Here is my web site; sportwetten Mit bonus
sportwetten tipps
My web-site … pferderennen wetten quoten
wettbüro bremen
Have a look at my site; Spiele Wetten
wettanbieter im vergleich
Feel free to visit my web page :: öSterreich wetten online
besten sportwetten anbieter profi tipps
quote von wetten dass
Here is my web blog – tipster wettbüro (Elma)
sportwetten online wetten ohne einzahlung vergleich
wettanbieter beste
Also visit my web blog; live wetten quoten
bester bonus sportwetten
Stop by my web-site … wetten mit Gratis guthaben
Simply desire to say your article is as astounding. The clearness in your post is just
nice and i can assume you’re an expert on this subject. Fine
with your permission allow me to grab your feed to keep updated with forthcoming post.
Thanks a million and please keep up the gratifying work.
my website; Rules Of Mini Baccarat
casino in quebec canada, slot machines canada for sale and best free
slots united states, or free sandia casino open today (Alfonzo) chips
usa
seriöse sportwetten beste quoten (Dean) online
Sportwetten tipps strategien [https://Thesoccersport.com/] österreich anbieter
Hi How many casinos are there worldwide
i am kavin, its my first time to commenting anywhere,
when i read this post i thought i could also create comment due
to this good paragraph.
wetten mit gratis guthaben
My web-site – Bester wettanbieter öSterreich
beste online wettanbieter
Also visit my blog post; südamerika strategie sportwetten
wettstrategie mit erfolg
Look at my blog: beste wettbüro [https://old.tags78.Es/mma-wetten-gratiswette/]
esport wetten deutschland
Here is my page; Wette Spielen
ohne oasis sportwetten
my web-site :: WettbüRo Mannheim
sportwetten tipps anbieter
my webpage … wettseiten bonus ohne einzahlung
pferderennen münchen wetten
my web blog … eine wettprognose
wetten bonus code
Stop by my webpage; sportwetten paysafecard ohne oasis