emptysuns / hi_hysteria Goto Github PK
View Code? Open in Web Editor NEWHello World!非钟国优化线路使用不佳?不想中转?hysteria一键搞定。
License: GNU General Public License v3.0
Hello World!非钟国优化线路使用不佳?不想中转?hysteria一键搞定。
License: GNU General Public License v3.0
按照步骤我输入域名后,没有出现提示域名绑定IP的提示,直接到端口设置了,输入完配置最后提示申请证书失败。端口还有IP解析都是没有问题的,我之前安装xui申请证书都是可以成功的,这次换的别的二级域名就出现了这种情况。
我有个VPS,用谷歌搜索时会跳出人机验证。
我想把谷歌流量分流到其他服务器。该如何设置?谢谢你。
目前测试tcp正常,客户端udp似乎不通
现在甲骨文VPS已经安装了其他的XRAY XTLS一键脚本,可以直接安装这个Hysteria脚本共存吗?
这个脚本能支持几个配置?
因为公司和家里的带宽不一样,我配置了两个端口,是都可以使用吗?但是查看配置好像只能看到最新配置的那个
vps网络安全组打开了udp的对应端口(不知是不是这里错了),可确实应该是udp协议啊,
安装时选择的协议类型是:1、udp(QUIC)。
默认的就是IPV4优先,不知为何lsof 显示的TYPE是IPV6
stash 配置如下(auth就是自己的设置的口令字符型吧,Stash官方示例的注释没看明白):
- name: "VPS.XX"
type: hysteria
server: xxx.mydomain.com
port: myport
up-speed: 100 # 上传带宽(单位:Mbps)
down-speed: 312 # 下载带宽(单位:Mbps)
auth: xxxxxxxxxxxx # bytes encoded in base64
alpn:
- h3
安装完,检测运行状态,显示dead!未正常运行。
重新启动hysteria,然后又正常运行,再测试一下又未正常运行
协议类型: udp
其余设置默认
root@16328hax:~# systemctl status hihy
● hihy.service - hysteria:Hello World!
Loaded: loaded (/etc/systemd/system/hihy.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2022-04-03 20:04:15 CEST; 1min 49s ago
Process: 17751 ExecStart=/etc/hihy/bin/appS --log-level warn -c /etc/hihy/conf/hihyServer.js>
Main PID: 17751 (code=exited, status=1/FAILURE)
Apr 03 20:04:14 16328hax.localdomain systemd[1]: Started hysteria:Hello World!.
Apr 03 20:04:15 16328hax.localdomain appS[17751]: 2022-04-03T20:04:15+02:00 [FATA] [error:h>
Apr 03 20:04:15 16328hax.localdomain systemd[1]: hihy.service: Main process exited, code=ex>
Apr 03 20:04:15 16328hax.localdomain systemd[1]: hihy.service: Failed with result 'exit-cod>
配置完服务端后怎么搞passwall都不通,不知道那里出错
麻烦作者更新一下hysteria 1.0.3
2022年3月3日晚,cloudflare开始对warp第三方客户端进行限制,只有官方客户端可以幸存,但是官方客户端只有sock5入口。设想的逻辑:询问是否指定服务器流量出口:是,输入指定端口;否,继续安装。
2
[FATA] [file:acl/routes.acl] [error:invalid condition type country] Failed to parse ACL
要怎么修改呀
大佬,比较好的一个项目,可以省去使用第三方客户端组合的繁琐
有几个问题“
quic暴力发包,感觉和kcptun的udp发包差不多,区别在于协议不同,kcptun如果合理设置带宽,在没有运营商干扰的情况下,可以有效利用本地带宽的60%——70%,Hysteria的带宽利用率大概是多少,不知道作者有测试过么
另外,youtube测试图的drop不一定准确,因为如果本地显卡和CPU烂的话,跑4K的frame会drop掉很多
协议选择的是第一个UDP,换了两个端口了。。。
使用Nat机或者ipv6 only的机器会遇到无法自动申请证书的情况,这个时候只能通过手动用acme的DNS验证方式申请证书,然而这个脚本只要申请失败直接把配置文件都删了,想在配置文件里改证书地址都做不到,所以希望可以在申请的时候提供类似以下的选项:
1.自动申请证书(需要80/443开放)
2.自定义已存在的其他路径的证书
选2后:
请输入证书cert文件路径(需使用fullchain.cer):
请输入证书key文件路径:
请输入证书域名:
我服务端器生成的conf的socks5居然配置了认证账号和密码,虽然我很快发现了这个问题,但是对许多人来说很可能会摸不着头脑。
Hysteria对丢包线路是否也无能为力啊……
这个甲骨文韩国线路延迟波动很大,低得时候50左右,高得时候200左右,再高就是丢包了。
这个延迟设置得越大是流量消耗越大吗?对于性能有没有什么影响。
用着还行就是acme签不下证书
脚本默认读取在本文件夹下的config.json,当本文件夹下没有时会报错
这个逻辑太蠢了,当时没注意到,应该是直接CV过去的,下个版本修复,呜呜呜呜~~~
Succees!Input 'Enter' to stop me.
2021-11-06T10:43:00+08:00 [INFO] [config:{Server:XXX.XXX.XXX.XXX:1500 UpMbps:100 DownMbps:100 SOCKS5:{Listen: Timeout:0 DisableUDP:false User: Password:} HTTP:{Listen:127.0.0.1:8887 Timeout:300 User: Password: Cert: Key:} TUN:{Name: Timeout:0 Address: Gateway: Mask: DNS:[] Persist:false} TCPRelay:{Listen: Remote: Timeout:0} UDPRelay:{Listen: Remote: Timeout:0} TCPTProxy:{Listen: Timeout:0} UDPTProxy:{Listen: Timeout:0} ACL:acl/routes.acl Obfs:Aalz2000 Auth:[] AuthString:pekopeko ServerName:pan.baidu.com Insecure:true CustomCA: ReceiveWindowConn:33554432 ReceiveWindow:134217728 DisableMTUDiscovery:false}] Client configuration loaded
2021-11-06T10:43:05+08:00 [FATA] [error:timeout: no recent network activity] Failed to initialize client
你是否碰到过以下这些情况,如何排错都无果:
1、服务端hysteria server正常启动,但是client却连不上,timeout?
2、有时能用,有时不能用的玄学?
3、iperf udp能通,但是一用hysteria就无法使用?
对没错,就是这些开IDC的商家为了能让自己的服务正常稳定使用,而通过专业的安全设备精准的限制QUIC/UDP传输,这样做的基本是很小一部分中小型的厂商,一般小厂和大厂不会这样做,可以开心的使用。
通常这种行为用faketcp模式可解,但是对于无法root的用户,可能有些不便。如果不了解为什么这么做请点我查看
此issue长期收集,限制hysteria的各个服务商,给各位提供一些帮助和排雷。
格式:
IDC: DigitalOcean
本地网络运营商:奠信/联通/移动/长城/广电等等
hysteria模式:udp/wechat-video/faketcp
无法使用的现象:timeoutxxxxxxxxxx/有时能用有时不能用/不知道为啥:)等等
运行脚本的时候到了输入端口的那一步提示了一句:/tmp/install.sh: line 241: lsof: command not found
然后果然hysteria启动失败了,我自己用apt install lsof命令安装lsof之后再运行脚本才启动hysteria成功
如何和NGINX兼容? 80和 443被占用了,申请不了证书。
● hysteria.service - hysteria:Hello World!
Loaded: loaded (/etc/systemd/system/hysteria.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2022-03-18 06:29:19 UTC; 8s ago
Process: 12586 ExecStart=/etc/hysteria/hysteria --log-level warn -c /etc/hysteria/config.json server (code=exited, status=1/FAILURE)
Main PID: 12586 (code=exited, status=1/FAILURE)
看之前是说证书问题,我把原来的xray搭建脚本生成的证书填到config.json里,重启hysteria了也不行。
"cert": "/root/.acme.sh/XXXX.tk_ecc/XXXX.tk.cer",
"key": "/root/.acme.sh/XXXX.tk_ecc/XXXX.key"
Error[OS Message]:s390x
请求支持
换了一台机可以正常了,先配置了UDP协议的一个给小火箭,可以正常使用,然后在PASSWALL里面添加完了,显示超时。
又配置了一个FAKETCP,PASSWALL还是不能用。
不管是UDP模式还是FAKETCP都是超时。
修改/etc/hihys/config.json之后,然后hihys 选择5,似乎没有重新加载?
服务器搭建了,客户端用的passwall,可以连上,顺利上了youtube,网页可以打开,视频播放不了,进去就黑屏
这是什么原因?而且访问google也有时访问不了,像p站这样的视频网站却完全没问题
\033[32m下载完成!\033[0m
\033[42;37m开始配置: \033[0m
\033[32m请输入您的域名(不输入回车,则默认自签pan.baidu.com证书,不推荐):\033[0m
grpc..**
\033[32m请输入你想要开启的端口(此端口是server端口,请提前放行防火墙,建议10000-65535,回车随机):\033[0m
2087
\033[32m请输入您到此服务器的平均延迟,关系到转发速度(回车默认200ms):\033[0m
\n期望速度,请如实填写,这是客户端的峰值速度,服务端默认不受限。\033[31m期望过低或者过高会影响转发速度!\033[0m
\033[32m请输入客户端期望的下行速度:\033[0m
\033[32m请输入客户端期望的上行速度:\033[0m
\033[32m请输入混淆口令(相当于连接密钥):\033[0m
potter-grpc
\033[32m配置录入完成!\033[0m
\033[42;37m执行配置...\033[0m
/dev/fd/63: line 62: 200 * 2 * / 1000 * 1024 * 1024: syntax error: operand expected (error token is "/ 1000 * 1024 * 1024")
请问是否支持IPv6的鸡
passwall里有hysteria的插件 但填写IP 端口 密码后连接不上 网上资料太少了
在两台vps上(一台racknerd,一台couldcone)安装了可以正常使用,但是会间歇性出现无法连接的问题。比如油管看评论时,下滑着突然刷不出剩余评论。此时检查连接,客户端显示无法连接,此时测试这台vps上其他协议的节点正常。间隔大概是十几分钟到几十分钟,大概一分钟左右恢复正常。
使用的udp模式,测速能达到100-200mbps,ping延迟200ms左右。在路由器passwall和安卓客户端Sager Net均出现此问题。
请问这是正常的吗,有什么办法优化下吗?速度确实提升明显,但遇到这个问题还是挺影响使用的。
每次都要去改回来,麻烦。
1、passwallquic无效
Wait,test config...
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
未知错误:请手动运行:/etc/hihy/bin/appS -c /etc/hihy/conf/hihyServer.json server
查看错误日志,反馈到issue!
之前用的好好的,我今天手贱重新升级.结果用不了
看过程是东西没有下载完全吗,首先是No packages marked for update,然后又是*netfilter-persistent/Error: Nothing to do
请选择:1
Ready to install.
Update.wait...
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Done.
Install wget curl netfilter-persistent lsof
*wget
Installed.Ignore.
*curl
Installed.Ignore.
*netfilter-persistent
Error: Nothing to do
*lsof
Installed.Ignore.
Done.
The Latest hysteria version:v1.0.3
Download...
Download completed.
开始配置:
请输入您的域名(不输入回车,则默认自签wechat.com证书,不推荐):
emptysuns, 您好.
如题, 想向您请教一下, hysteria 是否像kcptun一样, 靠流量换速度? 我的意思是, 我用过kcptun, 它就是靠大量地发包, 用vps很多流量来换取速度, 那hysteria是不是也用流量换速度?
这是系统生成的配置:
{
"server": "[2a01:4f8:242:4986:face:face:c73:1]:16159",
"protocol": "wechat-video",
"up_mbps": 12,
"down_mbps": 62,
"http": {
"listen": "127.0.0.1:8888",
"timeout" : 300,
"disable_udp": false
},
"socks5": {
"listen": "127.0.0.1:8889",
"timeout": 300,
"disable_udp": false,
"user": "pekora",
"password": "pekopeko"
},
"alpn": "h3",
"acl": "acl/routes.acl",
"mmdb": "acl/Country.mmdb",
"auth_str": "fengguo",
"server_name": "wechat.com",
"insecure": true,
"recv_window_conn": 12320768,
"recv_window": 49283072,
"disable_mtu_discovery": false,
"resolver": "119.29.29.29:53",
"retry": 5,
"retry_interval": 3
}
recv_window_conn 和 recv_window (服务器端是 recv_window_client) 以确保它们至少不低于带宽-延迟的乘积。 比如如果想在一条 RTT 200ms 的线路上达到 500 MB/s 的速度,receive window 至少需要 100 MB (500*0.2)
看了一下你的脚本,官方的说明,没有搞明白。
为什么recv_window=200ms x 2(往反) x 100MB/s(我客户端下行最大带宽) / 1000(请问这除1000是什么原因) x 1024 x 1024
recv_window_conn为什么是 除 4了?
RT
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.