首页
留言讨论
友情链接
关于本人
推荐
主机监控
Search
1
【Docker】ChatGPT - WEB 保姆级搭建教程,随时随地用上ChatGPT
3,600 阅读
2
【羊毛】数字移民计划 (二)- Ozan土耳其虚拟卡开通及入金教程
2,036 阅读
3
【羊毛】数字移民计划(一) - OlduBil 土耳其虚拟卡开通及入金教程
1,945 阅读
4
【教程】NaiveProxy 安装教程,可自定义端口,拯救被墙VPS!
1,886 阅读
5
【教程】哪吒探针美化教程,打造属于你的独一无二的探针
1,800 阅读
实用教程
主机推荐
生活分享
登录
Search
标签搜索
搬瓦工
VPS
CN2 GT
2022搬瓦工测评
搬瓦工延迟
洛杉矶VPS
Docker
BandwagonHost
教程
搬瓦工电信
搬瓦工移动
反代
系统重装
网络优化
BBR
监控
一键脚本
搬瓦工CN2
路由跟踪
GIA-E
Do Do
累计撰写
35
篇文章
累计收到
489
条评论
首页
栏目
实用教程
主机推荐
生活分享
页面
留言讨论
友情链接
关于本人
推荐
主机监控
搜索到
2
篇与
的结果
2022-11-11
【教程】NaiveProxy 安装教程,可自定义端口,拯救被墙VPS!
安装 Gowget https://golang.google.cn/dl/go1.19.3.linux-amd64.tar.gz rm -rf /usr/local/go && tar -C /usr/local -xzf go1.19.3.linux-amd64.tar.gz echo 'export PATH=$PATH:/usr/local/go/bin' >> $HOME/.profile echo 'export PATH="$PATH:~/go/bin"' >> $HOME/.profile source $HOME/.profile编译Caddy及Naivego install github.com/caddyserver/xcaddy/cmd/xcaddy@latest ~/go/bin/xcaddy build --with github.com/caddyserver/forwardproxy@caddy2=github.com/klzgrad/forwardproxy@naive配置Caddynano Caddyfile贴入以下配置文件:443, xxx.xxx.com #你的域名 tls example@example.com #你的邮箱 route { forward_proxy { basic_auth user pass #用户名和密码 hide_ip hide_via probe_resistance } reverse_proxy https://demo.cloudreve.org { #伪装网址 header_up Host {upstream_hostport} header_up X-Forwarded-Host {host} } }启动Caddy./caddy start用443端口的Naive到此就结束了下面是用自定义端口的Naive安装 Go和编译Caddy(带Naive插件)步骤一样申请证书用X-ui里的功能16一键申请,记住证书路径bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)config.jsonnano config.json贴入以下配置文件//需删除注释内容caddy才能加载 { "apps": { "http": { "servers": { "srv0": { "listen": [ ":33443" //监听端口 ], "routes": [ { "handle": [ { "auth_user_deprecated": "user", //用户名 "auth_pass_deprecated": "pass", //密码 "handler": "forward_proxy", "hide_ip": true, "hide_via": true, "probe_resistance": {} } ] }, { "handle": [ { "handler": "reverse_proxy", "headers": { "request": { "set": { "Host": [ "{http.reverse_proxy.upstream.hostport}" ], "X-Forwarded-Host": [ "{http.request.host}" ] } } }, "transport": { "protocol": "http", "tls": {} }, "upstreams": [ { "dial": "demo.cloudreve.org:443" //伪装网址 } ] } ] } ], "tls_connection_policies": [ { "match": { "sni": [ "xxx.xxx.com" //域名 ] }, "certificate_selection": { "any_tag": [ "cert0" ] } } ], "automatic_https": { "disable": true } } } }, "tls": { "certificates": { "load_files": [ { "certificate": "/root/cert/xxx.cer", //公钥路径 "key": "/root/cert/xxx.key", //私钥路径 "tags": [ "cert0" ] } ] } } } }启动./caddy start --config config.json最后提供一个一键脚本项目地址https://github.com/imajeason/nas_tools/tree/main/NaiveProxy# 安装 naive命令 curl https://raw.githubusercontent.com/imajeason/nas_tools/main/NaiveProxy/do.sh | bash # 执行naive naive
2022年11月11日
1,886 阅读
0 评论
0 点赞
2022-03-05
【教程】VPS开机必备,常用脚本集合(持续更新中 ······ )
网络重装脚本(DD)参数定义及使用-firmware 额外的驱动支持 - d Debian系统 后面是系统版本号 - c Centos系统 后面是系统版本号 - v 后面写64位 32位 - a 不清楚这个干啥的但是每个脚本都带 --mirror 后面是镜像源地址 - p 后面写自定义密码 –ip-addr ifconfig -a 后获取到的 例:194.87.xxx.xxx –ip-gate route -n 后获取到的 例 194.87.xxx.xxx –ip-mask 255.255.xxx.xxOracle、Virmach、RackNerd、Ruvds 等大部分 VPS 通用一键 DD 脚本,支持 ARM 及 AMDbash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 11 -v 64 -a -firmware -p 自定义密码国内 VPS 需要更换镜像源,否则速度很慢bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 11 -v 64 -a --mirror 'https://mirrors.huaweicloud.com/debian/' -p 自定义密码一些国内的镜像站:ftp.cn.debian.org mirror.bjtu.edu.cn mirror.lzu.edu.cn mirror.nju.edu.cn mirrors.163.com mirrors.bfsu.edu.cn mirrors.hit.edu.cn mirrors.huaweicloud.com mirror.sjtu.edu.cn mirrors.tuna.tsinghua.edu.cn mirrors.ustc.edu.cn 使用方法:(大致都是一样的) 清华源 --mirror 'https://mirrors.ustc.edu.cn/debian/' 腾讯源 --mirror 'http://mirrors.tencent.com/debian/' --mirror 'http://mirrors.cloud.tencent.com/debian/' 腾讯源内网(dd完毕后可以修改 走内网不费额外流量) http://mirrors.tencentyun.com/ 阿里源 --mirror 'https://mirrors.aliyun.com/debian/' 华为源 --mirror 'https://mirrors.huaweicloud.com/debian/'</code></pre>DD Windowswget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'http://d.nat.ee/win/lite/win7-ent-sp1-x64-cn/win7-ent-sp1-x64-cn.vhd.gz'后面的链接为windows系统直链 可以去 http://dd.nat.ee 下载 感谢 @nat.ee。常用脚本一键脚本收录工具箱wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh && chmod +x box.sh && clear && ./box.sh一键开启BBR(适用于高版本的 Debian、Ubuntu、CentOS)#1、开启系统自带BBR + fq : echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf sysctl -p sysctl net.ipv4.tcp_available_congestion_control lsmod | grep bbr #2、一键 BBR 脚本,包括 BBR / BBR PLUS /魔改 BBR 等: wget -N --no-check-certificate "https://raw.githubusercontent.com/ylx2016/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh #3、BBR 参数调优 wget http://sh.nekoneko.cloud/tools.sh -O tools.sh && bash tools.shSuperBenchwget -qO- git.io/superbench.sh | bashLemonBenchwget -O- https://ilemonra.in/LemonBenchIntl | bash -s fullBench.shwget -qO- bench.sh | bash三网测速bash <(curl -Lso- http://yun.789888.xyz/speedtest.sh)流媒体检测# 第一个 bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh) # 第二个 bash <(curl -sSL "https://github.com/CoiaPrant/MediaUnlock_Test/raw/main/check.sh")三网回程测试# 第一个 wget https://raw.githubusercontent.com/nanqinlang-script/testrace/master/testrace.sh bash testrace.sh # 第二个 wget -qO- git.io/besttrace | bash # 第三个 curl http://tutu.ovh/bash/returnroute/test.sh | bash机器性能测试(yabs)curl -sL yabs.sh | bashDocker 一键安装更新、安装必备软件 apt-get update && apt-get install -y wget vim #国外机: curl -sSL https://get.docker.com/ | sh #国内机: curl -sSL https://get.daocloud.io/docker | shDocker 卸载sudo apt-get remove docker docker-engine rm -fr /var/lib/docker/Docker-compose 一键安装#国外机: sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose #国内机** curl -L https://get.daocloud.io/docker/compose/releases/download/v2.1.1/docker-compose-uname -s-uname -m /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-composeVPS 开放所有端口(适合甲骨文 ARM Ubuntu 系统)iptables -P INPUT ACCEPT iptables -P FORWARD ACCEPT iptables -P OUTPUT ACCEPT iptables -F apt-get purge netfilter-persistentVPS 改成 root 登录(适合甲骨文、谷歌云等)sudo -i echo root:你的密码@ |sudo chpasswd root sudo sed -i 's/^.\*PermitRootLogin.\*/PermitRootLogin yes/g' /etc/ssh/sshd\_config; sudo sed -i 's/^.\*PasswordAuthentication.\*/PasswordAuthentication yes/g' /etc/ssh/sshd\_config; sudo service sshd restart
2022年03月05日
1,271 阅读
1 评论
1 点赞