Linuxword Global
当前位置: 通信协议 > Debian11搭建Xray多人共享SSL自动更新预防IP被封一键启用CloudFlare拯救被墙IP完美教程(包含常用脚本和一键DD为Windows)

主题:Debian11系统搭建Xray实现多人共享SSL自动更新预防IP被封-一键启用CloudFlare拯救被墙IP的完美教程
系统:Debian11/Debian10/Ubuntu
软件:可视化面板Xray-BBR+FQ-MTP-SmartPing
VPS服务商:VmShell INC  Https://vmshell.com
网络线路:CMI.HONGKONG-1Gbps


第一步:整合系统磁盘 (Debian11和Ubuntu20需要使用) ,设置后可以输入 df-h查看硬盘情况
代码:resize2fs -f /dev/vda1


第二步:安装必要组件:
apt -y update && apt -y install nano socat dnsutils libaio1 libaio-dev build-essential manpages-dev libncurses5 zip gnupg libaio1 wget curl screen unzip vim curl xz-utils openssl gawk file rpm && apt -y upgrade && screen -S setupscreen
第三步:启用BBR+FQ协议(后reboot重启)

wget -O tcp.sh "https://git.io/coolspeeda" && chmod +x tcp.sh && ./tcp.sh

第四步:安装子域名申请SSL文件并设置自动更新:
A-acme证书申请:(证书安装必须在nginx之前,不然nginx会占用80端口,懂得关闭nginx的可以无视),可以创建一个窗口安装: screen -S update 命令后执行:
apt -y install -y openssl cron socat curl unzip vim
下面这个申请代码已经更新,email=后面这里要输入你的一个邮箱要输入一个邮箱,否则会报错

a15e9005e55c32a6b2f847cfdf7d02fa

curl https://get.acme.sh | sh -s email=admin@way-run.com
source ~/.bashrc
.acme.sh/acme.sh --issue -d xray.way-run.com --standalone -k ec-256

680b3dc56a22e67097cba4f7734f753c

我们得到的信息如下请保存好:

Your cert is in: /root/.acme.sh/xray.way-run.com_ecc/xray.way-run.com.cer
Your cert key is in: /root/.acme.sh/xray.way-run.com_ecc/xray.way-run.com.key
The intermediate CA cert is in: /root/.acme.sh/xray.way-run.com_ecc/ca.cer
And the full chain certs is there: /root/.acme.sh/xray.way-run.com_ecc/fullchain.cer

53cfb61aa9edc16f837d160ba7827477
设置对应的SSL目录权限: chmod 777 /root/.acme.sh/xray.way-run.com_ecc/

#(记得cret和key要有777的权限,没有就手动添加,不然启动xray会报错23)
执行更新的命令自动: acme.sh --upgrade --auto-upgrade

如果不能访问需要强制更新SSL文件,请输入命令:
source ~/.bashrc
.acme.sh/acme.sh --renew -d xray.way-run.com --yes-I-know-dns-manual-mode-enough-go-ahead-please --force
然后会更新SSL文件,成功后,请输入reboot 重启服务器即可,如果执行命令一致错误,可以参考:更新所有证书 用法同单独更新某个证书类似,只需将参数名改为--renew-all: acme.sh --renew-all 强制更新: acme.sh --renew-all --force

Github裏的大佬們用Go語言,重新開發了可視化管理面板X-ui,可完全替代V2-ui,可自建SS/V2ray/Xray/Trojan等熱門的協議,並可以實時查看VPS服務器性能狀態和流量的使用狀態。它兼容性更強、更易於維護、性能更好、內存佔用也低。

第五步:安装X-ui面板,通过一键安装脚本;
bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)

07554fe5cbeae845f0ba731aa5fae217
登录后:启动并修改为443端口[选择保存配置,重启面板] ,目前网址: http://xray.way-run.com:54321

16b524c7a898d3997d28cba7a4baa3a1

54095a497ef8722948ddeaa8a3380de4

保存配置后重启面板就可以访问https://xray.way-run.com  直接访问了
节点生成:(Vmess+TSL+WS协议) 现在生成第一个链接设置(很重要 ): 为了防止IP如果被封如何访问的问题,请使用CloudFlare的小云朵开启后能访问特定端口的方式做节点和链接的端口生成,现在将CloudFlare的特定端口列出来给大家分享如下:

6054f7217f09778ac60aa9280090433b
使用方式:如果您IP被封了请登录CloudFlare开启这个子域名的小云朵,等什么时候您IP被解封了之后,您再关闭小云朵取消代理即可,一次设置,终身受益,如果您采用CloudFlare的免费小云朵方式拯救您被中国大陆墙掉的IP,CloudFlare默认可以小云朵访问的端口如下:
HTTP使用的端口:80 、8080、8880、2052、2082、2086、2095
HTTPs使用的端口:443、2053、2083、2087、2096、8443
顺便说一句:Finalshell很垃圾,请用Xshell专业软件
WinSCP绿色软件下载点击此处:https://linuxword.com/wp-content/uploads/2021/11/WinSCP.zip
Xshell绿色破解版下载点击此处:https://linuxword.com/wp-content/uploads/2021/11/Xshell.zip

cbd59b677bf16392ba7e7d8de384c89a

如果你IP被封了的情况下?如何启用CloudFlare解决你IP被墙的问题?等IP放出来了再恢复即可,简单说:解决IP被墙,因为端口号是跟cloudflare一致的,只需要修改启动”小云朵“即可!

c424090b2b7818db5504d71af60f925a
附加题:第六步:选择安装TeleGram的MTP协议,MTP电报代理协议一键安装代码;
mkdir /home/mtproxy && cd /home/mtproxy && curl -s -o mtproxy.sh https://raw.githubusercontent.com/ellermister/mtproxy/master/mtproxy.sh && chmod +x mtproxy.sh && bash mtproxy.sh && bash /home/mtproxy/mtproxy.sh restart
提醒:每一次重启服务器执行(或者自己写入一个自动重启的脚本): bash /home/mtproxy/mtproxy.sh restart

93cb1b6dd37418ac6a82cfd5b643ccf7
附加题:第七步:选择安装Smartping的监控页面:
网络质量检测代码:
mkdir /home/smartping && cd /home/smartping && wget https://github.com/smartping/smartping/releases/download/v0.8.0/smartping-v0.8.0.tar.gz && tar zxvf smartping-v0.8.0.tar.gz && ./control start && bash /home/smartping/control restart
每一次重启服务器执行: bash /home/smartping/control restart

SmartPing | 开源、高效、便捷的网络质量监控神器– Linux-技术共享

进阶题-自动进行内存优化和系统清理请见GitHub开源地址:https://github.com/FoxBary/smallvps    操作如下:

手动安装说明:
第一步:先下载两个文件放入 /opt 文件夹
cd /opt && wget https://linuxword.com/wp-content/uploads/2022/AppStore/script/cron/cleanLog.sh && wget https://linuxword.com/wp-content/uploads/2022/AppStore/script/cron/cleanCache.sh && chmod 777 /opt

f826001135e0d6735f51a5cdbe4fabbc
第二步:将两句执行的话放入到计划启动中:
crontab -e 后输入并保存退出

5f30cf86d452841dba75831183cb5713
*/3 * * * * sh /opt/cleanCache.sh
*/2 * * * * sh /opt/cleanlog.sh

2d1947d009f7cdbb8f4ac48c8d7bf673
contrel+x 保存退出

033b30fc11d617ac1554cf8d96c0763a

常用软件下载地址:
Windows电脑版本下载: v2rayN 下载地址: https://linuxword.com/wp-content/uploads/2022/04/v2rayN.zip
Android(安卓手机)V2RAYN.APK下载地址: v2rayNG 地址: https://linuxword.com/wp-content/uploads/2022/04/V2rayNG.apk
Windows7激活工具: https://linuxword.com/wp-content/uploads/2022/01/KMSpico.exe
运行库下载:https://linuxword.com/wp-content/uploads/2022/01/windell.exe
GooGleChrome下载:https://linuxword.com/wp-content/uploads/2022/01/GooGleChrome.exe
Microsoft .net framework4.0下载:https://linuxword.com/wp-content/uploads/2022/01/dotNetFx40_Full_x86_x64.exe
Windows10激活工具:https://linuxword.com/wp-content/uploads/2021/11/DigitalLicense.zip
WinSCP绿色软件下载点击此处:https://linuxword.com/wp-content/uploads/2021/11/WinSCP.zip
Xshell绿色破解版下载点击此处:https://linuxword.com/wp-content/uploads/2021/11/Xshell.zip
Disney+的安卓APP下载地址: https://linuxword.com/wp-content/uploads/2022/AppStore/Disney+.apk
GooGle的安卓APP下载地址: https://linuxword.com/wp-content/uploads/2022/AppStore/Google.apk
GooGleVoice的安卓APP下载地址: https://linuxword.com/wp-content/uploads/2022/AppStore/GoogleVoice.apk
Netflix的安卓APP下载地址: https://linuxword.com/wp-content/uploads/2022/AppStore/Netflix.apk
TeleGram的安卓APP下载地址: https://linuxword.com/wp-content/uploads/2022/AppStore/Telegram.apk
Twitter的安卓APP下载地址: https://linuxword.com/wp-content/uploads/2022/AppStore/Twitter.apk
Youtube的安卓APP下载地址: https://linuxword.com/wp-content/uploads/2022/AppStore/Youtube.apk

de2961a76e28493

如何把Linux的VPS通过DD变一台Windows服务器
第一步通过SSH登录VPS服务器并执行命令,更新系统和依赖:
#Debian/Ubuntu系统:
apt -y update && apt install -y xz-utils openssl gawk file curl wget screen && screen -S windows
#RedHat/CentOS系统:
yum -y update && yum install -y xz openssl gawk file screen && screen -S windows
第二步:选择您需要的windows版本,我们推荐如下两个简洁版本
Windows7 版本服务器[默认账户:Administrator ;默认密码是:nat.ee]:
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Whole/Win7_sp1_64_Administrator_nat.ee.gz'
Windows10版本服务器 [默认账户:Administrator ;默认密码是:Vicer]:
wget --no-check-certificate -qO InstallNET.sh 'https://sunpma.com/other/oss/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win10_2019LTSC_64_Administrator_Vicer.gz'
第三步:在控制面板中观察VmShell的VNC在线查看服务器安装状态(至少需要等待40分钟左右);
第四步:远程登录服务器并激活Windows 系统版本:
Windows服务器开启Ping功能,打开系统运行服务 Win+R 输入命令
## 开启Ping ##
netsh firewall set icmpsetting 8
## 关闭Ping ##
netsh firewall set icmpsetting 8 disable
Windows7激活工具:https://linuxword.com/wp-content/uploads/2022/01/KMSpico.exe
运行库下载:https://linuxword.com/wp-content/uploads/2022/01/windell.exe
GooGleChrome下载:https://linuxword.com/wp-content/uploads/2022/01/GooGleChrome.exe
Microsoft .net framework4.0下载:https://linuxword.com/wp-content/uploads/2022/01/dotNetFx40_Full_x86_x64.exe
Windows10激活工具:https://linuxword.com/wp-content/uploads/2021/11/DigitalLicense.zip

常用服务器代码:

一键查看服务器信息和网络情况:
wget -O superbench.sh mcnb.top/superbench.sh && bash superbench.sh

maxresdefault

八合一脚本:
wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh" && chmod 700 /root/install.sh && /root/install.sh
流媒体检测
bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh)
 三网测速脚本:
bash <(curl -Lso- https://git.io/superspeed)

7b912d476b2902a52b1d479edd0be86d

#一键开启bbr脚本
wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh
#bbr 原版/魔改/plus+锐速 四合一脚本 使用说明:https://zkxblog.com/61.html
wget --no-check-certificate https://github.com/cx9208/Linux-NetSpeed/raw/master/tcp.sh && chmod +x tcp.sh && ./tcp.sh
#superbench 检测脚本
wget -qO- --no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash
#bench 检测脚本
wget -qO- bench.sh | bash
#zbench(中文)检测脚本
wget --no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench-CN.sh && bash ZBench-CN.sh
#zbench(英文)检测脚本
wget --no-check-certificate https://raw.githubusercontent.com/FunctionClub/ZBench/master/ZBench.sh && bash ZBench.sh
#LemonBench 综合检测脚本(检测耗时较长,建议screen)
wget -qO- https://ilemonrain.com/download/shell/LemonBench.sh | bash -s full
#硬盘通电时间 检测脚本
wget -q https://github.com/Aniverse/A/raw/i/a && bash a
#unixbench 性能跑分脚本
wget --no-check-certificate https://github.com/teddysun/across/raw/master/unixbench.sh && chmod +x unixbench.sh && ./unixbench.sh

「梦想一旦被付诸行动,就会变得神圣,如果觉得我的文章对您有用,请帮助本站成长」

赞(0) 打赏
一分也是爱

支付宝扫一扫打赏

微信扫一扫打赏

上一篇:

下一篇:

相关推荐

博客简介

本站CDN采用VmShell免费提供离中国大陆最近的香港CMI高速网络做支撑,ToToTel打造全球最快速的边沿网络支撑服务,具体详情请见 :https://vmshell.com/ 以及 https://tototel.com/,网站所有的文件和内容禁止大陆网站搬迁复制,谢谢,VPS营销投稿邮箱: admin@linuxxword.com,我们免费帮大家发布,不收取任何费用,请提供完整测试文稿!

精彩评论

友情链接

他们同样是一群网虫,却不是每天泡在网上游走在淘宝和网游之间、刷着本来就快要透支的信用卡。他们或许没有踏出国门一步,但同学却不局限在一国一校,而是遍及全球!申请交换友链

站点统计

  • 文章总数: 2289 篇
  • 草稿数目: 12 篇
  • 分类数目: 6 个
  • 独立页面: 0 个
  • 评论总数: 2 条
  • 链接总数: 0 个
  • 标签总数: 5772 个
  • 注册用户: 139 人
  • 访问总量: 8,655,428 次
  • 最近更新: 2024年3月27日