残浔的小窝 残浔的小窝
  • 首页
  • 日常
  • 折腾
  • Centos
  • C语言
  • 网工
  • Python
  • 娱乐
  • 工具
  • 邻居
  • 服务器运行状态
  • 关于我

国外服务器便宜但线路差,使用优化线路服务器做中转

残浔
2 月前

OVH服务器配置高,但是到国内线路不怎么好。

在法国KS-LE-2 在上面搭了个我的世界服务器,嘎嘎卡。
然后买了台德国9929VPS 装了个NGINX 然后配置代理 转发流量 瞬间嘎嘎流畅。

网络对比:

在德国9929VPS上面安装一个NGINX

编辑NGINX文件 在


events
    {
        use epoll;
        worker_connections 51200;
        multi_accept on;
    }

这里添加

http
    {
        include       mime.types;
		#include luawaf.conf;

		include proxy.conf;
        lua_package_path "/www/server/nginx/lib/lua/?.lua;;";

        default_type  application/octet-stream;

如下


stream {
    log_format tcp_format '$time_local|$remote_addr|$protocol|$status|$bytes_sent|$bytes_received|$session_time|$upstream_addr|$upstream_bytes_sent|$upstream_bytes_received|$upstream_connect_time';
  
    access_log /www/wwwlogs/tcp-access.log tcp_format;
    error_log /www/wwwlogs/tcp-error.log;
    include /www/server/panel/vhost/nginx/tcp/*.conf;
    
    upstream minecraft_backend {
        server X.X.X.X:25565; 
    }
    
    upstream rdp_backend {
        server X.X.X.X:3389;
    }
    
    server {
        listen 25565;
        proxy_pass minecraft_backend;
        proxy_timeout 1h;
        proxy_connect_timeout 10s;
    }
    
    server {
        listen 3389;
        proxy_pass rdp_backend;
        proxy_timeout 1h;
        proxy_connect_timeout 10s;
    }
    
}

直接RDP+MC 从此流畅无忧。

0
残浔
何以解忧,唯有暴富!

评论 (0)

取消
    发表评论

残浔

何以解忧,唯有暴富!
193
文章
31
评论
1
获赞

热门文章

TOP1
HK1 Box刷入openwrt教程+改良散热|性能远超N1盒子
4 年前
TOP2
YubiKey使用教程
3 年前
TOP3
LNMP安装以及设置防CC 防火墙
4 年前
  • 本站由暗云提供技术支持
  • 邻居
  • 服务器状态监控
Copyright © 2022-2026 残浔的小窝. 鄂ICP备20012530号-3 鄂公网安备42092302000067号
  • 服务器4
  • 搭建4
  • 威联通4
  • NAS4
  • V44
  • 首页
  • 日常
  • 折腾
  • Centos
  • C语言
  • 网工
  • Python
  • 娱乐
  • 工具
  • 邻居
  • 服务器运行状态
  • 关于我