站点图标 Linux-技术共享

Hysteria2|歇斯底里2快速搭建,给你网速疯狂提速

63a3d86680fe16029a4faa17fad368ff

1.申请一台VPS云服务器:VmShell官网:https://vmshell.com ; ToToTel官网:https://tototel.com;IP地址信息和最新优惠产品信息查询:https://vmshell.com/ip.php 【包括设置好服务器进出站规则 】
2.在namesilo申请一个域名:namesilo官网: https://namesilo.com
3.用cloudflare接管域名,解析域名:cloudflare官网: https://cloudflare.com
4.下载客户端 V2rayN :官方开源地址: https://github.com/2dust/v2rayN/releases
5.Linux管理綠色工具軟體下載:
https://vmshell.com/downloads/Xshell.zip (XSHELL-伺服器連接軟體)
https://vmshell.com/downloads/WinSCP.zip (WinSCP-伺服器檔案傳輸軟體)
6.安装更新服务器软件列表和相关组件工具,重置防火墙规则。
apt -y update && apt -y upgrade && apt install -y curl socat wget screen
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F

7.歇斯底里2| 快速一键安装脚本 Hysteria2:官方开源地址:https://github.com/apernet/hysteria
安装脚本:
bash <(curl -fsSL https://get.hy2.sh/)
systemctl start hysteria-server.service
systemctl restart hysteria-server.service
systemctl enable hysteria-server.service
systemctl status hysteria-server.service
移除脚本:
bash <(curl -fsSL https://get.hy2.sh/) --remove
8.配置服务器端的配置文件。根路径/etc/hysteria/config.yaml
# listen: :443
acme:
domains:
– your.domain.net |*|用你的域名替换|*|
email: your@email.com |*|用你的邮件地址替换|*|
auth:password
password:Se7RAuFZ8Lzg |*|新建一个强密码进行替换|*|
masquerade:
type:proxy
type:
url:https://news.ycombinator.com/ |*|你的伪装网址|*|
rewriteHost:true
9.在客户端的需要的配置文件:
server: your.domain.net:443 |*|用你的域名替换|*|
auth: Se7RAuFZ8Lzg |*|替换为你在服务器短上设置的密码|*|
bandwidth: |*|有关带宽的信息,详见官方说明|*|
up:20 mbps
down:100 mbps
socks5:
listen:127.0.0.1:1080 |*|替换为你希望 SOCKS5 代理监听的地址|*|
http:
listen:127.0.0.1:1080 |*|替换为你希望 HTTP 代理监听的地址|*

 

退出移动版