User-Profile-Image
hankin
  • 5
  • 关于
  • 分类
    • 路由器
    • 电脑相关
    • 游戏相关
    • 未分类
    • 服务器相关
    • 数据库
  • 页面
    • 关于
  • 友链
    • 华夏网盟
Help?

Please contact us on our email for need any support

Support
  • 关于
    首页   ›   电脑相关   ›   正文
电脑相关

使用GOST通过隧道进行端口转发

2023-10-12 09:38:00
859  0 0

落地机、中转机安装 gost

使用下方命令下载64位版本。

wget -N --no-check-certificate https://github.com/ginuerzh/gost/releases/download/v2.11.0/gost-linux-amd64-2.11.1.gz && gzip -d gost-linux-amd64-2.11.1.gz
mv gost-linux-amd64-2.11.1 gost
chmod +x gost

1.UDP+TCP加密转发。

客户端

gost -L udp://:8443 -L tcp://:8443 -F relay+mtls://1.2.3.4:9443

监听本机 8433 端口的 TCP、UDP 连接,使用relay协议并开启多路复用与TLS连接 1.2.3.4:9443 端口。

服务器端

gost -L relay+mtls://:9443/127.0.0.1:443

监听本机的 9443 端口,接收转发过来的连接,再转给本地的 443 端口。

2.TCP中转

落地机命令(不用修改)

./gost -D -L "ws://:8080?path=/ws&rbuf=4096&wbuf=4096&compression=false"

中转机命令

./gost -L=:本地端口/落地IP:落地端口 -F=ws://落地IP:8080/ws

(PS:本地端口为中转机可以使用的端口)

评论 (0)

Click here to cancel reply.

欢迎您 游客  

近期文章

  • 用于网速测试的下载测速文件合集
  • docker构建SB镜像
  • pterodactl docker install
  • OpenWRT流量实时监控插件
  • docker部署dify

近期评论

No comments to show.

归档

  • 1 月 2026
  • 8 月 2025
  • 5 月 2025
  • 4 月 2025
  • 3 月 2025
  • 2 月 2025
  • 12 月 2024
  • 4 月 2024
  • 10 月 2023
  • 8 月 2023
  • 4 月 2023
  • 3 月 2023
  • 2 月 2023
  • 10 月 2021
  • 5 月 2021
  • 3 月 2021
  • 2 月 2021

分类

  • 数据库
  • 服务器相关
  • 未分类
  • 游戏相关
  • 电脑相关
  • 路由器
Copyright © 2026
smarty_hankin 主题. Designed by hankin
主页
页面
  • 关于
博主
hkthomas 管理员
136 文章 0 评论 18328 浏览
测试
测试