本文最后更新于 492 天前,其中的信息可能已经有所发展或是发生改变。
介绍
hysteria是一款通过udp来进行代理的软件
实测在晚高峰(22时),同一个位于芝加哥垃圾线路的服务器
通过 cf反代 + 优选节点 + vless ,打开youtube 4k 视频缓冲时间12s左右
通过 hysteria,打开youtube 4k 视频缓冲时间4s左右
服务器配置
1、下载安装脚本
mkdir /usr/hysteria
cd /usr/hysteria
wget https://raw.githubusercontent.com/apernet/hysteria/master/install_server.sh
chmod 777 install_server.sh
./install_server.sh
2、导入配置文件
进入/etc/hysteria,修改config.json文件(此步骤需要一个指向本服务器的域名,且暂时放开80端口,hysteria会自动生成证书)
{
"listen": ":56712",
"acme": {
"domains": [
"hy.us.sanqi.one"
],
"email": "[email protected]"
},
"obfs": "99xxssssaassafasdfas"
}
{
"listen": ":56712",
"acme": {
"domains": [
"hy.us.sanqi.one"
],
"email": "[email protected]"
},
"obfs": "8ZuA2Zpqaxxsd123asdfMjDqEXBwY",
"socks5_outbound": {
"server": "127.0.0.1:20002",
"user": "zzh",
"password": "Zzh125475"
}
}
3、启动服务
systemctl enable hysteria-server
systemctl start hysteria-server
systemctl status hysteria-server
4、端口跳跃
以 Linux 为例,将 eth0 上的 UDP 40000-50000 端口转发到 56712 端口:
iptables -t nat -A PREROUTING -i eth0 -p udp --dport 40000:50000 -j DNAT --to-destination :56712
客户端
v2rayN(windows)
添加自定义配置服务器
随便导入一个config.json
编辑:
{
"server": "hy.us.sanqi.one:40000-50000",
"obfs": "99xxssssaassafasdfas",
"up_mbps": 20,
"down_mbps": 100,
"insecure": true,
"socks5": {
"listen": "127.0.0.1:10808"
},
"http": {
"listen": "127.0.0.1:10809"
}
}
core类型选hysteria
clash-meta(Android)
新建config.yaml配置文件
port: 7890
socks-port: 1080
proxies:
- name: "hysteria"
type: hysteria
server: 192.3.128.27
sni: hy.us.sanqi.one
port: 40000
obfs: 99xxssssaassafasdfas
up: 20
down: 50
proxy-groups:
- name: PROXY
type: select
proxies:
- hysteria
rule-providers:
reject:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/reject.txt"
path: ./ruleset/reject.yaml
interval: 86400
icloud:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/icloud.txt"
path: ./ruleset/icloud.yaml
interval: 86400
apple:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/apple.txt"
path: ./ruleset/apple.yaml
interval: 86400
google:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/google.txt"
path: ./ruleset/google.yaml
interval: 86400
proxy:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/proxy.txt"
path: ./ruleset/proxy.yaml
interval: 86400
direct:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/direct.txt"
path: ./ruleset/direct.yaml
interval: 86400
private:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/private.txt"
path: ./ruleset/private.yaml
interval: 86400
gfw:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/gfw.txt"
path: ./ruleset/gfw.yaml
interval: 86400
tld-not-cn:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/tld-not-cn.txt"
path: ./ruleset/tld-not-cn.yaml
interval: 86400
telegramcidr:
type: http
behavior: ipcidr
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/telegramcidr.txt"
path: ./ruleset/telegramcidr.yaml
interval: 86400
cncidr:
type: http
behavior: ipcidr
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/cncidr.txt"
path: ./ruleset/cncidr.yaml
interval: 86400
lancidr:
type: http
behavior: ipcidr
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/lancidr.txt"
path: ./ruleset/lancidr.yaml
interval: 86400
applications:
type: http
behavior: classical
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/applications.txt"
path: ./ruleset/applications.yaml
interval: 86400
rules:
- RULE-SET,applications,DIRECT
- DOMAIN,clash.razord.top,DIRECT
- DOMAIN,yacd.haishan.me,DIRECT
- RULE-SET,private,DIRECT
- RULE-SET,reject,REJECT
- RULE-SET,icloud,DIRECT
- RULE-SET,apple,DIRECT
- RULE-SET,google,DIRECT
- RULE-SET,proxy,PROXY
- RULE-SET,direct,DIRECT
- RULE-SET,lancidr,DIRECT
- RULE-SET,cncidr,DIRECT
- RULE-SET,telegramcidr,PROXY
- GEOIP,LAN,DIRECT
- GEOIP,CN,DIRECT
- MATCH,PROXY
在手机上导入配置文件即可