博文

目前显示的是 十二月, 2019的博文

新版Trojan官方脚本手動純净安裝科學上網服務器,配置TLS1.3+NGINX+偽站2019.12.29指令小結

安裝環境 VPS平臺digitalocean 操作系統debian10.2 一、新建VPS並做好cloudflare解析(略) 二、常用軟件包,增加了XZ包 #apt-get -y update && apt-get -y install unzip zip wget curl  nano sudo ufw socat ntp ntpdate gcc git xz-utils 三、BBR加速 修改系统变量 echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf 保存生效 sysctl -p 查看内核是否已开启BBR #lsmod | grep bbr 返回值有 tcp_bbr 模块即说明 bbr 已启动 四、安裝NGINX和僞裝站點 #apt install -y nginx #systemctl stop nginx 安装伪站 #wget https://github.com/mikewubox/mikewubox.github.io/archive/master.zip #unzip master.zip #cp -rf mikewubox.github.io-master/* /var/www/html nginx配置文件 #nano  /etc/nginx/conf.d/trojan.conf 參考 https://github.com/mikewubox/V2Ray3/tree/master/trojan 五、安裝trojan #bash -c "$(curl -fsSL https://raw.githubusercontent.com/trojan-gfw/trojan-quickstart/master/trojan-quickstart.sh)" 配置服務端 nano /usr/local/etc/trojan/config.json 參考 https://github.com/mikewubox/

快速一键安装TROJAN+TLS+NGINX+伪站@LinodeCentos8指令小结2019.12.28

安裝環境 VPS平臺LINODE 操作系統CENTOS8 一、新建VPS並做好cloudflare解析(略) 二、停止防火墙并安装scoat軟件包 #systemctl stop firewalld.service #yum install -y socat 三、BBR加速 修改系统变量 #echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf #echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf 保存生效 #sysctl -p 查看内核是否已开启BBR sysctl net.ipv4.tcp_available_congestion_control sysctl net.ipv4.tcp_congestion_control #lsmod | grep bbr 返回值有 tcp_bbr 模块即说明 bbr 已启动 四、一键脚本,原作者 https://www.atrandys.com/2019/1963.html #curl -O https://raw.githubusercontent.com/atrandys/trojan/master/trojan_centos7.sh && chmod +x trojan_centos7.sh && ./trojan_centos7.sh 五、下载客户端并启动 浏览器默认设置127.0.0.1:1080 六,防火墙 启动 # systemctl start firewalld # systemctl enable  firewalld 开启端口 #firewall-cmd --zone=public --add-port=22/tcp --permanent #firewall-cmd --zone=public --add-port=443/tcp --permanent #firewall-cmd --zone=public --add-port=80/tcp --permanent #firewall-cmd --zone=p

V2Ray官方脚本科學上網最佳配置三件套nginx+ws+tls+mKCP,兼具速度&穩定&安全2019.12.24指令小結

安裝環境 VPS平臺digitalocean 操作系統debian10.2 一、新建VPS並做好cloudflare解析(略) 二、常用軟件包 #apt-get -y update && apt-get -y install unzip zip wget curl  nano sudo ufw socat ntp ntpdate gcc git 三、BBR加速 修改系统变量 echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf 保存生效 sysctl -p 查看内核是否已开启BBR #lsmod | grep bbr 返回值有 tcp_bbr 模块即说明 bbr 已启动 四、安裝NGINX和僞裝站點 #apt install -y nginx #systemctl stop nginx 安装伪站 #wget https://github.com/mikewubox/mikewubox.github.io/archive/master.zip #unzip master.zip #cp -rf mikewubox.github.io-master/* /var/www/html 五、安裝V2Ray #bash <(curl -Ls https://install.direct/go.sh) 六、安裝TLS證書 #curl  https://get.acme.sh | sh 安装成功后执行 source ~/.bashrc 以确保脚本所设置的命令别名生效。 生成ECC证书: #sudo ~/.acme.sh/acme.sh --issue -d ZZZ007.ml --standalone -k ec-256 将ECC证书和密钥安装到 /etc/v2ray 中 #sudo ~/.acme.sh/acme.sh --installcert -d ZZZ007.ml --fullchainpath /etc/v2ray/v

V2Ray官方脚本手多用戶多端口多協議安裝2019.12.19指令小結

安裝環境 VPS平臺digitalocean 操作系統debian10.2 一、新建VPS(略) 二、常用軟件包 #apt-get -y update && apt-get -y install unzip zip wget curl  nano sudo ufw socat ntp ntpdate gcc git 三、BBR加速 修改系统变量 echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf 保存生效 sysctl -p 查看内核是否已开启BBR #lsmod | grep bbr 返回值有 tcp_bbr 模块即说明 bbr 已启动 四、v2ray安裝&配置 #bash <(curl -Ls https://install.direct/go.sh) #nano  /etc/v2ray/config.json 配置參考(UUID,端口請修改) https://github.com/mikewubox/V2Ray3/tree/master/MultiV2Ray 五、啓動V2Ray #systemctl enable v2ray # systemctl start v2ray #systemctl status v2ray 六、設置云防火墻 開啓常用端口(開22端口TCP,80端口TCP,443端口TCP,53端口TCP,UDP) 開啓V2ray端口

答網友問:如何給github上的僞裝網站添加自己的域名2019.12.16

一、為域名添加4個A記錄 185.199.108.153 185.199.109.153 185.199.110.153 185.199.111.153 添加1個CNAME解析 www 二、把域名添加到github 倉庫的setting.

V2Ray官方脚本手動純净安裝WebSocket+TLS+BBR2019.12.14指令小結

安裝環境 VPS平臺digitalocean 操作系統debian10 一、新建VPS,注冊域名並解析好(略) 二、常用軟件包 #apt-get -y update && apt-get -y install unzip zip wget curl  nano sudo ufw socat ntp ntpdate gcc git 三、v2ray安裝&配置 #bash <(curl -Ls https://install.direct/go.sh) #nano  /etc/v2ray/config.json 配置參考 https://github.com/mikewubox/V2Ray3 四、TLS證書 #curl  https://get.acme.sh | sh 安装成功后执行 #source ~/.bashrc 以确保脚本所设置的命令别名生效。 生成ECC证书: #sudo ~/.acme.sh/acme.sh --issue -d ggg777.ml --standalone -k ec-256 将ECC证书和密钥安装到 /etc/v2ray 中 #sudo ~/.acme.sh/acme.sh --installcert -d ggg777.ml --fullchainpath /etc/v2ray/v2ray.crt --keypath /etc/v2ray/v2ray.key --ecc 查看证书位置 find / -name *ggg777* 五、加速優化 BBR 修改系统变量 echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf 保存生效 sysctl -p 查看内核是否已开启BBR sysctl net.ipv4.tcp_available_congestion_control sysctl net.ipv4.tcp_congestion_control #lsmod | grep bbr 返回值有

V2Ray官方脚本手動純净安裝HTTP2+TLS+BBR2019.12.13指令小結

安裝環境 VPS平臺digitalocean 操作系統debian10 一、新建VPS,注冊域名並解析好(略) 二、常用軟件包 #apt-get -y update && apt-get -y install unzip zip wget curl  nano sudo ufw socat ntp ntpdate gcc git 三、v2ray安裝&配置 #bash <(curl -Ls https://install.direct/go.sh) #nano  /etc/v2ray/config.json 配置參考 https://github.com/mikewubox/V2Ray3 四、TLS證書 #curl  https://get.acme.sh | sh 安装成功后执行 #source ~/.bashrc 以确保脚本所设置的命令别名生效。 生成ECC证书: #sudo ~/.acme.sh/acme.sh --issue -d ggg777.ml --standalone -k ec-256 将ECC证书和密钥安装到 /etc/v2ray 中 #sudo ~/.acme.sh/acme.sh --installcert -d ggg777.ml --fullchainpath /etc/v2ray/v2ray.crt --keypath /etc/v2ray/v2ray.key --ecc 查看证书位置 find / -name *ggg777* 五、加速優化 BBR 修改系统变量 echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf 保存生效 sysctl -p 查看内核是否已开启BBR sysctl net.ipv4.tcp_available_congestion_control sysctl net.ipv4.tcp_congestion_control #lsmod | grep bbr 返回值有

V2Ray官方脚本三件套手動安裝,基於Apache偽站點+WS+TLS+CDN2019.12.06指令小結

安裝環境 VPS平臺digitalocean 操作系統debian10 一、新建VPS,注冊域名並解析好(略) 二、常用軟件包 #apt-get -y update && apt-get -y install unzip zip wget curl  nano sudo ufw socat ntp ntpdate gcc git 三、安裝Apache 安裝主文件 #apt install -y apache2 # 开启以下module #a2enmod ssl proxy proxy_wstunnel proxy_http rewrite headers 停止apache2,不停會占用80端口,影響證書申請 #systemctl stop apache2 偽站安裝 #wget https://github.com/jpalidev/jpalidev.github.io/archive/master.zip #unzip master.zip #cp -rf jpalidev.github.io-master/* /var/www/html 配置 Apache #nano /etc/apache2/sites-available/v2ray.conf 四、安裝V2RAY #bash <(curl -Ls https://install.direct/go.sh) 配置文件 #nano /etc/v2ray/config.json 五、TLS證書 #curl  https://get.acme.sh | sh 安装成功后执行 #source ~/.bashrc 以确保脚本所设置的命令别名生效。 生成ECC证书: #sudo ~/.acme.sh/acme.sh --issue -d ggg777.ml --standalone -k ec-256 将ECC证书和密钥安装到 /etc/v2ray 中 #sudo ~/.acme.sh/acme.sh --installcert -d ggg777.ml --fullchainpath /etc/v2ray/v2ray.crt --keypath /etc/v2ray/v2ray.key --ecc 查看证书位