Hysteria使用实例

Hysteria 是一个功能丰富的,专为恶劣网络环境进行优化的网络工具(双边加速),比如卫星网络、拥挤的公共 Wi-Fi、在中国连接国外服务器等。 基于修改版的 QUIC 协议。 SOCKS5 代理 (TCP & UDP) HTTP/HTTPS 代理 TCP/UDP 转发 TCP/UDP TPROXY 透明代理 (Linux) TCP REDIRECT 透明代理 (Linux) TUN (Windows 下为 TAP) 以上是Hysteria官网的介绍,项目地址为https://github.com/HyNetwork/hysteria 最新hysteria2使用方法在这里 https://unixetc.com/post/nekoboxforandroid-hysteria2/ 以下为旧版本v1使用实例 服务端安装配置 服务器是Debian11系统,使用以下命令安装: wget https://raw.githubusercontent.com/HyNetwork/hysteria/master/install_server.sh bash ./install_server.sh 启用服务 systemctl enable hysteria-server systemctl start hysteria-server 自签证书 openssl genrsa -out server.key 1024 openssl req -new -x509 -days 3650 -key server.key -out server.crt -subj "/C=CN/ST=mykey/L=mykey/O=mykey/OU=mykey/CN=domain1/CN=domain2/CN=domain3" 然后新建配置文件vi config.json { "listen": ":39870", "cert": "/root/server.crt", "key": "/root/server.key", "obfs": "fuckgfw2022", "up_mbps": 500, "down_mbps": 500 } 使用screen让hysteria在后台一直运行 ...

七月 11, 2022 · JQX

V2ray配置实例[最新v2fly]

Linux下推使用V2rayA,安装使用可参考V2rayA客户端使用实例 说明: 从V2Ray 4.27.0开始,请使用新版安装脚本,旧版安装配置实例仅供参考。 新版安装配置实例 服务端安装 下载安装脚本 ➜ ~ curl -O https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh 执行安装脚本 ➜ ~ bash ./install-release.sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 98k 100 98k 0 0 495k 0 --:--:-- --:--:-- --:--:-- 495k info: Installing V2Ray v4.27.5 for x86_64 Downloading V2Ray archive: https://github.com/v2fly/v2ray-core/releases/download/v4.27.5/v2ray-linux-64.zip % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 644 100 644 0 0 5457 0 --:--:-- --:--:-- --:--:-- 5457 100 12.6M 100 12.6M 0 0 8316k 0 0:00:01 0:00:01 --:--:-- 10.2M Downloading verification file for V2Ray archive: https://github.com/v2fly/v2ray-core/releases/download/v4.27.5/v2ray-linux-64.zip.dgst % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 649 100 649 0 0 2368 0 --:--:-- --:--:-- --:--:-- 2368 100 590 100 590 0 0 1053 0 --:--:-- --:--:-- --:--:-- 1053 info: Extract the V2Ray package to /tmp/tmp.gWzZRTMMij and prepare it for installation. installed: /usr/local/bin/v2ray installed: /usr/local/bin/v2ctl installed: /usr/local/share/v2ray/geoip.dat installed: /usr/local/share/v2ray/geosite.dat installed: /usr/local/etc/v2ray/config.json installed: /var/log/v2ray/ installed: /var/log/v2ray/access.log installed: /var/log/v2ray/error.log installed: /etc/systemd/system/v2ray.service installed: /etc/systemd/system/[email protected] removed: /tmp/tmp.gWzZRTMMij info: V2Ray v4.27.5 is installed. //安装完成 You may need to execute a command to remove dependent software: dnf remove curl unzip Please execute the command: systemctl enable v2ray; systemctl start v2ray 配置systemd服务 ➜ ~ systemctl enable v2ray //添加systemd服务模块 Created symlink /etc/systemd/system/multi-user.target.wants/v2ray.service → /etc/systemd/system/v2ray.service. ➜ ~ systemctl start v2ray //开启v2ray服务 ➜ ~ service v2ray status //检查v2ray服务状态 Redirecting to /bin/systemctl status v2ray.service ● v2ray.service - V2Ray Service Loaded: loaded (/etc/systemd/system/v2ray.service; enabled; vendor preset: disabled) Active: active (running) since Mon 2020-09-07 11:16:13 CST; 8s ago Main PID: 25897 (v2ray) Tasks: 6 (limit: 4566) Memory: 4.7M CGroup: /system.slice/v2ray.service └─25897 /usr/local/bin/v2ray -config /usr/local/etc/v2ray/config.json Sep 07 11:16:13 bwgcn2 systemd[1]: Started V2Ray Service. Sep 07 11:16:13 bwgcn2 v2ray[25897]: V2Ray 4.27.5 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.14.7 linux/amd64) Sep 07 11:16:13 bwgcn2 v2ray[25897]: A unified platform for anti-censorship. Sep 07 11:16:13 bwgcn2 v2ray[25897]: 2020/09/07 11:16:13 [Info] v2ray.com/core/common/platform/ctlcmd: <v2ctl message> Sep 07 11:16:13 bwgcn2 v2ray[25897]: v2ctl> Read config: /usr/local/etc/v2ray/config.json Sep 07 11:16:13 bwgcn2 v2ray[25897]: 2020/09/07 11:16:13 [Warning] v2ray.com/core: V2Ray 4.27.5 started 服务端配置 默认安装完成后,启用配置文件为/usr/local/etc/v2ray/config.json,但这个默认配置为空,因此需要自定义服务端配置。 ...

九月 7, 2020 · JQX