feat(目录): 清理无用内容
|
@ -1,79 +0,0 @@
|
|||
{
|
||||
"log": {
|
||||
"access": "/usr/bin/V2RayConfig/V2Ray_access.log",
|
||||
"error": "/usr/bin/V2RayConfig/V2Ray_error.log",
|
||||
"loglevel": "warning"
|
||||
},
|
||||
"stats": {},
|
||||
"api": {
|
||||
"services": [
|
||||
"StatsService"
|
||||
],
|
||||
"tag": "api"
|
||||
},
|
||||
"policy": {
|
||||
"levels": {
|
||||
"1": {
|
||||
"handshake": 4,
|
||||
"connIdle": 300,
|
||||
"uplinkOnly": 2,
|
||||
"downlinkOnly": 5,
|
||||
"statsUserUplink": false,
|
||||
"statsUserDownlink": false
|
||||
}
|
||||
},
|
||||
"system": {
|
||||
"statsInboundUplink": true,
|
||||
"statsInboundDownlink": true
|
||||
}
|
||||
},
|
||||
"allocate": {
|
||||
"strategy": "always",
|
||||
"refresh": 5,
|
||||
"concurrency": 3
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"port": 31291,
|
||||
"listen": "127.0.0.1",
|
||||
"protocol": "vmess",
|
||||
"settings": {
|
||||
"clients": [
|
||||
{
|
||||
"id": "a4f7ef9b-6951-2397-098d-bb1e660b3805",
|
||||
"alterId": 64,
|
||||
"level": 1,
|
||||
"email": "xxx@v2ray.com"
|
||||
}
|
||||
]
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "ws",
|
||||
"wsSettings": {
|
||||
"path": "/v2"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"protocol": "freedom",
|
||||
"settings": {
|
||||
}
|
||||
}
|
||||
],
|
||||
"routing": {
|
||||
"settings": {
|
||||
"rules": [
|
||||
{
|
||||
"inboundTag": [
|
||||
"api"
|
||||
],
|
||||
"outboundTag": "api",
|
||||
"type": "field"
|
||||
}
|
||||
]
|
||||
},
|
||||
"strategy": "rules"
|
||||
}
|
||||
}
|
|
@ -1,73 +0,0 @@
|
|||
# For more information on configuration, see:
|
||||
# * Official English Documentation: http://nginx.org/en/docs/
|
||||
# * Official Russian Documentation: http://nginx.org/ru/docs/
|
||||
|
||||
user root;
|
||||
worker_processes auto;
|
||||
error_log /var/log/nginx/error.log;
|
||||
pid /run/nginx.pid;
|
||||
|
||||
# Load dynamic modules. See /usr/share/nginx/README.dynamic.
|
||||
include /usr/share/nginx/modules/*.conf;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||
|
||||
access_log /var/log/nginx/access.log main;
|
||||
|
||||
sendfile on;
|
||||
tcp_nopush on;
|
||||
tcp_nodelay on;
|
||||
keepalive_timeout 65;
|
||||
types_hash_max_size 2048;
|
||||
|
||||
# include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
# Load modular configuration files from the /etc/nginx/conf.d directory.
|
||||
# See http://nginx.org/en/docs/ngx_core_module.html#include
|
||||
# for more information.
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name domain; # 这里需要修改为你的
|
||||
root /usr/share/nginx/html;
|
||||
|
||||
# Load configuration files for the default server block.
|
||||
include /etc/nginx/default.d/*.conf;
|
||||
|
||||
location / {
|
||||
}
|
||||
location ~ /.well-known {
|
||||
allow all;
|
||||
}
|
||||
error_page 404 /404.html;
|
||||
location = /40x.html {
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
}
|
||||
}
|
||||
server {
|
||||
listen 443 ssl;
|
||||
# ssl_certificate /etc/nginx/$1.crt;
|
||||
# ssl_certificate_key /etc/nginx/$1.key;
|
||||
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
||||
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
|
||||
ssl_prefer_server_ciphers on;
|
||||
server_name $1; # 这里需要修改
|
||||
location / {
|
||||
}
|
||||
location /alone {proxy_redirect off;proxy_pass http://127.0.0.1:31299;proxy_http_version 1.1;proxy_set_header Upgrade $http_upgrade;proxy_set_header Connection "upgrade";proxy_set_header X-Real-IP $remote_addr;proxy_set_header Host $host;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;}
|
||||
|
||||
}
|
||||
}
|
|
@ -1,71 +0,0 @@
|
|||
# For more information on configuration, see:
|
||||
# * Official English Documentation: http://nginx.org/en/docs/
|
||||
# * Official Russian Documentation: http://nginx.org/ru/docs/
|
||||
|
||||
user root;
|
||||
worker_processes auto;
|
||||
error_log /var/log/nginx/error.log;
|
||||
pid /run/nginx.pid;
|
||||
|
||||
# Load dynamic modules. See /usr/share/nginx/README.dynamic.
|
||||
include /usr/share/nginx/modules/*.conf;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
'$status $body_bytes_sent "$http_referer" '
|
||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||
|
||||
access_log /var/log/nginx/access.log main;
|
||||
|
||||
sendfile on;
|
||||
tcp_nopush on;
|
||||
tcp_nodelay on;
|
||||
keepalive_timeout 65;
|
||||
types_hash_max_size 2048;
|
||||
|
||||
# include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
# Load modular configuration files from the /etc/nginx/conf.d directory.
|
||||
# See http://nginx.org/en/docs/ngx_core_module.html#include
|
||||
# for more information.
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name domain; # 这里需要修改为自己的
|
||||
root /usr/share/nginx/html;
|
||||
|
||||
# Load configuration files for the default server block.
|
||||
include /etc/nginx/default.d/*.conf;
|
||||
|
||||
location / {
|
||||
}
|
||||
location ~ /.well-known {
|
||||
allow all;
|
||||
}
|
||||
error_page 404 /404.html;
|
||||
location = /40x.html {
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
}
|
||||
location /v2 {
|
||||
proxy_redirect off;
|
||||
proxy_pass http://127.0.0.1:31291;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
# proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,116 +0,0 @@
|
|||
# 目录
|
||||
- [技能点列表](#技能点列表)
|
||||
- [一键脚本](#一键脚本)
|
||||
* [1.自动模式](#1自动模式)
|
||||
* [2.手动模式](#2手动模式)
|
||||
- [1.准备工作](#1准备工作)
|
||||
* [1.注册cloudflare](#1注册cloudflare)
|
||||
* [2.注册godaddy并购买域名](#2注册godaddy并购买域名)
|
||||
* [3.修改godaddy域名的DNS解析](#3修改godaddy域名的dns解析)
|
||||
+ [1.登录cloudflare,添加域名](#1登录cloudflare添加域名)
|
||||
+ [2.选择套餐](#2选择套餐)
|
||||
+ [3.根据提示修改godaddy的dns解析](#3根据提示修改godaddy的dns解析)
|
||||
* [4.增加cloudflare域名解析](#4增加cloudflare域名解析)
|
||||
* [5.修改godaddy SSL/TLS](#5修改godaddy-ssltls)
|
||||
- [2.vps配置Nginx](#2vps配置nginx)
|
||||
* [1.安装Nginx](#1安装Nginx)
|
||||
* [2.nginx配置文件](#2nginx配置文件)
|
||||
- [3.配置v2ray](#3配置v2ray)
|
||||
* [1.安装v2ray](#1安装v2ray)
|
||||
* [2.v2ray配置文件](#v2ray配置文件)
|
||||
* [3.启动v2ray](#3启动v2ray)
|
||||
- [4.客户端](#4客户端)
|
||||
* [1.MacOS](#1macos)
|
||||
* [2.windows](#2windows)
|
||||
|
||||
|
||||
# 1.准备工作
|
||||
## 1.注册[cloudflare](cloudflare.com)
|
||||
## 2.注册[godaddy](https://www.godaddy.com/)并购买域名或者使用免费域名[freenom](https://freenom.com/)
|
||||
- 这里使用godaddy作为示例
|
||||
- 域名可选择xyz结尾的国际域名,可采用多字符乱码的方式组合域名,(比如wk1c.xyz)首年大概8RMB左右,第二年可以直接买一个新的。
|
||||
|
||||
## 3.修改godaddy域名的DNS解析
|
||||
### 1.登录cloudflare,添加域名
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/cloudflare.png" width=400>
|
||||
|
||||
### 2.选择套餐
|
||||
- 如果仅仅只享受科学上网功能,选择free即可
|
||||
- 如果需要更好的网络环境、更快的速度,可选择相应的套餐
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/cloudflare_plan.png" width=400>
|
||||
|
||||
### 3.根据提示修改godaddy的dns解析
|
||||
- cloudflare提示界面
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/cloudflare_dns.png" width=400>
|
||||
|
||||
- godaddy DNS管理,根据上面的cloudflare提示界面修改为相应的dns
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/godayddy_dns.png" width=400>
|
||||
|
||||
## 4.增加cloudflare域名解析
|
||||
- 添加域名解析(记录),可以选择二级域名,这样就可以一个月解析到不同的服务器,name填写你要解析的二级域名的host部分,比如ls.example.com 只填写ls即可
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/cloudflare_record_dns.png" width=400>
|
||||
|
||||
## 5.修改godaddy SSL/TLS
|
||||
- 如果vps选择使用https,需要把类型修改为Flexible
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/cloudflare_tls_Flexible.png" width=400>
|
||||
|
||||
# 2.vps配置Nginx
|
||||
## 1.安装Nginx
|
||||
```
|
||||
yum install nginx
|
||||
```
|
||||
## 2.nginx配置文件
|
||||
|
||||
- 1.下载配置文件并替换默认文件
|
||||
```
|
||||
cd /etc/nginx&&rm -rf /etc/nginx/nginx.conf&&wget https://raw.githubusercontent.com/mack-a/v2ray-agent/master/config/nginx_Flexible.conf&&mv /etc/nginx/nginx_Flexible.conf /etc/nginx/nginx.conf
|
||||
# 如果缺少wget 则执行下面的命令,然后重复上面的命令
|
||||
yum install wget
|
||||
```
|
||||
- 将下载好的文件中关于ls.xxx.xyz的内容都替换成你的二级域名
|
||||
|
||||
# 3.配置v2ray
|
||||
## 1.安装v2ray
|
||||
|
||||
```
|
||||
bash <(curl -L -s https://install.direct/go.sh)
|
||||
```
|
||||
|
||||
## 2.v2ray配置文件
|
||||
|
||||
- 下载config_ws_tls.json
|
||||
```
|
||||
cd&&wget https://raw.githubusercontent.com/mack-a/v2ray-agent/master/config/config_ws_tls.json
|
||||
```
|
||||
|
||||
- 配置文件的id可以自己生成一个新的,替换即可
|
||||
```
|
||||
/usr/bin/v2ray/v2ctl uuid
|
||||
```
|
||||
|
||||
## 3.启动v2ray
|
||||
```
|
||||
/usr/bin/v2ray/v2ray -config ./config_ws_tls.json&
|
||||
```
|
||||
|
||||
# 4.客户端
|
||||
## 1.MacOS
|
||||
- 下载V2RayU[点我下载](https://github.com/yanue/V2rayU/releases/download/1.4.1/V2rayU.dmg)
|
||||
- 下载后打开,服务器设置,修改address即可
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/v2rayU_服务器配置.png" width=400>
|
||||
|
||||
- pac设置,添加下面的链接并选择使用Pac模式,即可
|
||||
```
|
||||
https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt
|
||||
```
|
||||
|
||||
## 2.windows
|
||||
- 下载v2rayN[点我下载](https://github.com/2dust/v2rayN/releases/download/2.44/v2rayN.zip)
|
||||
- 使用方法 [点我查看](https://github.com/233boy/v2ray/wiki/V2RayN%E4%BD%BF%E7%94%A8%E6%95%99%E7%A8%8B)
|
||||
|
||||
## 3.Android
|
||||
- [v2rayNG](https://github.com/2dust/v2rayNG/releases)
|
||||
|
||||
## 4.ios【需要自行购买或者使用共享账号安装】
|
||||
- Quantumult【推荐使用】
|
||||
- Shadowrocket
|
|
@ -1,174 +0,0 @@
|
|||
# 目录
|
||||
- [技能点列表](#技能点列表)
|
||||
- [一键脚本](#一键脚本)
|
||||
* [1.自动模式](#1自动模式)
|
||||
* [2.手动模式](#2手动模式)
|
||||
- [1.准备工作](#1准备工作)
|
||||
* [1.注册cloudflare](#1注册cloudflare)
|
||||
* [2.注册godaddy并购买域名](#2注册godaddy并购买域名)
|
||||
* [3.修改godaddy域名的DNS解析](#3修改godaddy域名的dns解析)
|
||||
+ [1.登录cloudflare,添加域名](#1登录cloudflare添加域名)
|
||||
+ [2.选择套餐](#2选择套餐)
|
||||
+ [3.根据提示修改godaddy的dns解析](#3根据提示修改godaddy的dns解析)
|
||||
* [4.增加cloudflare域名解析](#4增加cloudflare域名解析)
|
||||
* [5.修改godaddy SSL/TLS](#5修改godaddy-ssltls)
|
||||
- [2.vps配置Nginx、https](#2vps配置nginxhttps)
|
||||
* [1.安装Nginx](#1安装Nginx)
|
||||
* [2.nginx配置文件](#2nginx配置文件)
|
||||
* [3.生成https](#3生成https)
|
||||
- [3.配置v2ray](#3配置v2ray)
|
||||
* [1.安装v2ray](#1安装v2ray)
|
||||
* [2.v2ray配置文件](#v2ray配置文件)
|
||||
* [3.启动v2ray](#3启动v2ray)
|
||||
- [4.客户端](#4客户端)
|
||||
* [1.MacOS](#1macos)
|
||||
* [2.windows](#2windows)
|
||||
|
||||
# 1.准备工作
|
||||
## 1.注册[cloudflare](cloudflare.com)
|
||||
## 2.注册[godaddy](https://www.godaddy.com/)并购买域名或者使用免费域名[freenom](https://freenom.com/)
|
||||
- 这里使用godaddy作为示例
|
||||
- 域名可选择xyz结尾的国际域名,可采用多字符乱码的方式组合域名,(比如wk1c.xyz)首年大概8RMB左右,第二年可以直接买一个新的。
|
||||
|
||||
## 3.修改godaddy域名的DNS解析
|
||||
### 1.登录cloudflare,添加域名
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/cloudflare.png" width=400>
|
||||
|
||||
### 2.选择套餐
|
||||
- 如果仅仅只享受科学上网功能,选择free即可
|
||||
- 如果需要更好的网络环境、更快的速度,可选择相应的套餐
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/cloudflare_plan.png" width=400>
|
||||
|
||||
### 3.根据提示修改godaddy的dns解析
|
||||
- cloudflare提示界面
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/cloudflare_dns.png" width=400>
|
||||
|
||||
- godaddy DNS管理,根据上面的cloudflare提示界面修改为相应的dns
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/godayddy_dns.png" width=400>
|
||||
|
||||
## 4.增加cloudflare域名解析
|
||||
- 添加域名解析(记录),可以选择二级域名,这样就可以一个月解析到不同的服务器,name填写你要解析的二级域名的host部分,比如ls.example.com 只填写ls即可
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/cloudflare_record_dns.png" width=400>
|
||||
|
||||
## 5.修改godaddy SSL/TLS
|
||||
- 如果vps选择使用https,需要把类型修改为Full
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/cloudflare_tls.png" width=400>
|
||||
|
||||
# 2.vps配置Nginx、https
|
||||
## 1.安装Nginx
|
||||
```
|
||||
yum install nginx
|
||||
```
|
||||
## 2.nginx配置文件
|
||||
|
||||
- 1.下载配置文件并替换默认文件
|
||||
```
|
||||
cd /etc/nginx&&rm -rf /etc/nginx/nginx.conf&&wget https://raw.githubusercontent.com/mack-a/v2ray-agent/master/config/nginx.conf
|
||||
# 如果缺少wget 则执行下面的命令,然后重复上面的命令
|
||||
yum install wget
|
||||
```
|
||||
- 将下载好的文件中关于ls.xxx.xyz的内容都替换成你的二级域名
|
||||
|
||||
## 3.生成https
|
||||
|
||||
- 1.安装acme.sh
|
||||
```
|
||||
curl https://get.acme.sh | sh
|
||||
% Total % Received % Xferd Average Speed Time Time Time Current
|
||||
Dload Upload Total Spent Left Speed
|
||||
100 671 100 671 0 0 680 0 --:--:-- --:--:-- --:--:-- 679
|
||||
% Total % Received % Xferd Average Speed Time Time Time Current
|
||||
Dload Upload Total Spent Left Speed
|
||||
100 112k 100 112k 0 0 690k 0 --:--:-- --:--:-- --:--:-- 693k
|
||||
[Fri 30 Dec 01:03:32 GMT 2016] Installing from online archive.
|
||||
[Fri 30 Dec 01:03:32 GMT 2016] Downloading https://github.com/Neilpang/acme.sh/archive/master.tar.gz
|
||||
[Fri 30 Dec 01:03:33 GMT 2016] Extracting master.tar.gz
|
||||
[Fri 30 Dec 01:03:33 GMT 2016] Installing to /home/user/.acme.sh
|
||||
[Fri 30 Dec 01:03:33 GMT 2016] Installed to /home/user/.acme.sh/acme.sh
|
||||
[Fri 30 Dec 01:03:33 GMT 2016] Installing alias to '/home/user/.profile'
|
||||
[Fri 30 Dec 01:03:33 GMT 2016] OK, Close and reopen your terminal to start using acme.sh
|
||||
[Fri 30 Dec 01:03:33 GMT 2016] Installing cron job
|
||||
no crontab for user
|
||||
no crontab for user
|
||||
[Fri 30 Dec 01:03:33 GMT 2016] Good, bash is found, so change the shebang to use bash as preferred.
|
||||
[Fri 30 Dec 01:03:33 GMT 2016] OK
|
||||
[Fri 30 Dec 01:03:33 GMT 2016] Install success!
|
||||
```
|
||||
|
||||
- 2.生成https证书
|
||||
```
|
||||
# 替换ls.xxx.xyz为自己的域名
|
||||
sudo ~/.acme.sh/acme.sh --issue -d ls.xxx.xyz --standalone -k ec-256
|
||||
|
||||
# 如果提示Please install socat tools first.则执行,安装完成后继续重复执行上面的命令
|
||||
yum install socat
|
||||
```
|
||||
|
||||
- 3.安装证书
|
||||
```
|
||||
# 替换ls.xxx.xyz为自己的域名
|
||||
~/.acme.sh/acme.sh --installcert -d ls.xxx.xyz --fullchainpath /etc/nginx/ls.xxx.xyz.crt --keypath /etc/nginx/ls.xxx.xyz.key --ecc
|
||||
```
|
||||
|
||||
- 4.修改/etc/nginx/nginx.conf
|
||||
```
|
||||
# 将下面这部分前面的#去掉,并将ssl_certificate、ssl_certificate_key修改成自己的路径
|
||||
|
||||
# listen 443 ssl;
|
||||
# ssl_certificate /etc/nginx/ls.xx.xyz.crt;
|
||||
# ssl_certificate_key /etc/nginx/ls.xx.xyz.key;
|
||||
# server_name ls.xx.xyz
|
||||
```
|
||||
|
||||
- 5.每一次生成https证书后有效期只有三个月,需要快过期时更新(剩余七天内可以重新生成)
|
||||
```
|
||||
# 替换ls.xxx.xyz为自己的域名
|
||||
sudo ~/.acme.sh/acme.sh --renew -d ls.xxx.xyz --force --ecc
|
||||
```
|
||||
|
||||
# 3.配置v2ray
|
||||
## 1.安装v2ray
|
||||
|
||||
```
|
||||
bash <(curl -L -s https://install.direct/go.sh)
|
||||
```
|
||||
|
||||
## 2.v2ray配置文件
|
||||
|
||||
- 下载config_ws_tls.json
|
||||
```
|
||||
cd&&wget https://raw.githubusercontent.com/mack-a/v2ray-agent/master/config/config_ws_tls.json
|
||||
```
|
||||
|
||||
- 配置文件的id可以自己生成一个新的,替换即可
|
||||
```
|
||||
/usr/bin/v2ray/v2ctl uuid
|
||||
```
|
||||
|
||||
## 3.启动v2ray
|
||||
```
|
||||
/usr/bin/v2ray/v2ray -config ./config_ws_tls.json&
|
||||
```
|
||||
|
||||
|
||||
# 4.客户端
|
||||
## 1.MacOS
|
||||
- 下载V2RayU[点我下载](https://github.com/yanue/V2rayU/releases/download/1.4.1/V2rayU.dmg)
|
||||
- 下载后打开,服务器设置,修改address即可
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/v2rayU_服务器配置.png" width=400>
|
||||
|
||||
- pac设置,添加下面的链接并选择使用Pac模式,即可
|
||||
```
|
||||
https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt
|
||||
```
|
||||
|
||||
## 2.windows
|
||||
- 下载v2rayN[点我下载](https://github.com/2dust/v2rayN/releases/download/2.44/v2rayN.zip)
|
||||
- 使用方法 [点我查看](https://github.com/233boy/v2ray/wiki/V2RayN%E4%BD%BF%E7%94%A8%E6%95%99%E7%A8%8B)
|
||||
|
||||
## 3.Android
|
||||
- [v2rayNG](https://github.com/2dust/v2rayNG/releases)
|
||||
|
||||
## 4.ios【需要自行购买或者使用共享账号安装】
|
||||
- Quantumult【推荐使用】
|
||||
- Shadowrocket
|
|
@ -1,15 +0,0 @@
|
|||
# 1.手动自建教程
|
||||
## 1.V2Ray
|
||||
### 方法1(Flexible)【建议使用该方法】
|
||||
- 只使用CloudFlare的证书
|
||||
- 客户端->CloudFlare使用TLS+vmess加密,CloudFlare->VPS只使用vmess,[点击查看](https://github.com/mack-a/v2ray-agent/blob/master/documents/Cloudflare_Flexible.md)
|
||||
- 不需要自己维护自己的https证书
|
||||
- 少一步解析证书的过程,速度理论上会快一点
|
||||
|
||||
### 方法2(Full)
|
||||
- 需要自己生成https证书,并自己维护,一般使用let's encrypt生成有效期为三个月。
|
||||
- 客户端->CloudFlare使用CLoudFlare TLS+vmess加密,CloudFlare->VPS使用let's encrypt TLS+vmess加密,[点击查看](https://github.com/mack-a/v2ray-agent/blob/master/documents/Cloudflare_Full.md)
|
||||
- 与方法1不同的是,CloudFlare和VPS通讯时也会使用TLS加密。两个方法安全方面区别不是很大。
|
||||
|
||||
### 方法3(Workers)
|
||||
- [点击查看](https://github.com/mack-a/v2ray-agent/blob/master/documents/cloudflare_workers.md)
|
|
@ -1,39 +0,0 @@
|
|||
* * *
|
||||
# 目录
|
||||
- [1.注册Cloudfalre](#1注册cloudfalre)
|
||||
- [2.添加域名](#2添加域名)
|
||||
- [3.修改SSL/TLS mode](#3修改ssltls-mode)
|
||||
- [4.添加A记录](#2添加A记录)
|
||||
* * *
|
||||
|
||||
# 1.注册Cloudflare
|
||||
- 1.打开[Cloudflare](https://dash.cloudflare.com/sign-up),并注册
|
||||
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/cloudflare/cloudflare_signup_01.png" width=600>
|
||||
|
||||
# 2.添加域名
|
||||
- 1.添加域名
|
||||
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/cloudflare/cloudflare_add_website.png" width=600>
|
||||
|
||||
- 2.添加后修改域名提供商的 NameServer
|
||||
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/cloudflare/cloudfalre_add_website_02.png" width=600>
|
||||
|
||||
- 3.修改NameServer
|
||||
|
||||
>这里以godaddy为例
|
||||
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/cloudflare/cloudflare_website_godaddy_ns.png" width=600>
|
||||
|
||||
# 3.修改SSL/TLS mode
|
||||
- SSL/TLS->Full
|
||||
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/cloudflare/cloudflare_SSL_mode.png" width=600>
|
||||
|
||||
# 4.添加A记录
|
||||
- 云朵必须为灰色
|
||||
- 到这里Cloudflare的添加域名、A解析就完成了。
|
||||
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/cloudflare/cloudflare_dns_a.png" width=600>
|
||||
|
|
@ -1,51 +0,0 @@
|
|||
- [注意事项](#注意事项)
|
||||
- [步骤](#步骤)
|
||||
* [1.创建Workers自定义域名](#1创建Workers自定义域名)
|
||||
* [2.绑定域名](#2绑定域名)
|
||||
* [3.创建Workers](#3创建Workers)
|
||||
* [4.使用](#4使用)
|
||||
|
||||
# 注意事项
|
||||
- Wokers是Cloudflare基于CDN的无服务器应用程序。
|
||||
- ~~想使用Wokers,域名必须必须托管在Cloudflare~~[错误]
|
||||
- 每天10万条请求
|
||||
- 保证在没有使用Workers的情况可以正常使用服务【CDN+WebSocket+TLS or WebSocket+TLS】
|
||||
|
||||
# 步骤
|
||||
## 1.创建Workers自定义域名
|
||||
- 域名的前缀可以自定义
|
||||
- Plan选择free即可
|
||||
- 会验证邮箱
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/Workers/Workers_01.png" width=400>
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/Workers/Workers_02.png" width=400>
|
||||
|
||||
## ~~2.绑定域名~~[这一步可以不用看,直接看下面的即可]
|
||||
- 1.添加域名
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/Workers/Workers_03.png" width=400>
|
||||
|
||||
- 2.修改域名注册商的Nameserver
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/Workers/Workers_04.png" width=400>
|
||||
|
||||
- 3.创建域名解析,这里域名可以直接用能正常访问的服务或者创建新的,如果创建新的并且证书是通配符证书则用新旧域名都无影响,如果不是通配符需要重新生成证书以及配置相关的Nginx服务
|
||||
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/Workers/Workers_06.png" width=400>
|
||||
|
||||
## 3.创建Workers
|
||||
- 1.填写Workers的Script为下方内容【hostname填写科学上网的域名,比如 workerproxy.v2ray-agent.com 】
|
||||
```
|
||||
addEventListener(
|
||||
"fetch",event => {
|
||||
let url=new URL(event.request.url);
|
||||
url.hostname="这里要修改为自己的";
|
||||
let request=new Request(url,event.request);
|
||||
event. respondWith(
|
||||
fetch(request)
|
||||
)
|
||||
}
|
||||
)
|
||||
```
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/Workers/Workers_05.png" width=400>
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/Workers/Workers_07.png" width=400>
|
||||
|
||||
## 4.使用
|
||||
- 1.客户端只需要将address部分修改为上图第二个红框位置的内容即可
|
|
@ -1,4 +1,6 @@
|
|||
- [TG群](https://t.me/technologyshare)、[TG频道-更新通知](https://t.me/joinchat/VuYxsKnlIQp3VRw-)、[博客地址](https://www.v2ray-agent.com/)
|
||||
- [TG群](https://t.me/technologyshare)、[TG频道-更新通知](https://t.me/joinchat/VuYxsKnlIQp3VRw-)
|
||||
|
||||
> [更加详细的推荐可以点击查看](https://www.v2ray-agent.com/categories/vps)
|
||||
|
||||
# 网络差异比较大,买之前建议执行以下两个步骤
|
||||
- 测试一下testIP的丢包,traceroute一下testIP的路由,是否商家宣传的一样
|
||||
|
|
|
@ -1,131 +0,0 @@
|
|||
- [1.CentOS7、8 配置及使用firewall](#1centos78-配置及使用firewall)
|
||||
* [1.systemctl是centos7的服务管理工具中主要的工具它融合之前service和chkconfig的功能于一体](#1systemctl是centos7的服务管理工具中主要的工具它融合之前service和chkconfig的功能于一体)
|
||||
* [2.firewalld的基本使用](2firewalld的基本使用)
|
||||
* [3.配置firewalld-cmd](3配置firewalld-cmd)
|
||||
|
||||
# 1.CentOS7、8 配置及使用firewall
|
||||
## 1.systemctl是CentOS7的服务管理工具中主要的工具,它融合之前service和chkconfig的功能于一体。
|
||||
- 启动一个服务
|
||||
```
|
||||
systemctl start firewalld.service
|
||||
```
|
||||
- 关闭一个服务
|
||||
```
|
||||
systemctl stop firewalld.service
|
||||
```
|
||||
- 重启一个服务
|
||||
```
|
||||
systemctl restart firewalld.service
|
||||
```
|
||||
- 显示一个服务的状态
|
||||
```
|
||||
systemctl status firewalld.service
|
||||
```
|
||||
- 在开机时启用一个服务
|
||||
```
|
||||
systemctl enable firewalld.service
|
||||
```
|
||||
- 在开机时禁用一个服务
|
||||
```
|
||||
systemctl disable firewalld.service
|
||||
```
|
||||
- 查看服务是否开机启动
|
||||
```
|
||||
systemctl is-enabled firewalld.service
|
||||
```
|
||||
- 查看已启动的服务列表
|
||||
```
|
||||
systemctl list-unit-files|grep enabled
|
||||
```
|
||||
- 查看启动失败的服务列表
|
||||
```
|
||||
systemctl --failed
|
||||
```
|
||||
|
||||
## 2.firewalld的基本使用
|
||||
- 启动
|
||||
```
|
||||
systemctl start firewalld
|
||||
```
|
||||
- 查看状态
|
||||
```
|
||||
systemctl status firewalld
|
||||
```
|
||||
- 停止
|
||||
```
|
||||
systemctl disable firewalld
|
||||
```
|
||||
- 禁用
|
||||
```
|
||||
systemctl stop firewalld
|
||||
```
|
||||
|
||||
### 3.配置firewalld-cmd
|
||||
- 查看版本
|
||||
```
|
||||
firewall-cmd --version
|
||||
```
|
||||
- 查看帮助
|
||||
```
|
||||
firewall-cmd --help
|
||||
```
|
||||
- 显示状态
|
||||
```
|
||||
firewall-cmd --state
|
||||
```
|
||||
- 查看所有打开的端口
|
||||
```
|
||||
firewall-cmd --zone=public --list-ports
|
||||
```
|
||||
- 更新防火墙规则
|
||||
```
|
||||
firewall-cmd --reload
|
||||
```
|
||||
- 查看区域信息
|
||||
```
|
||||
firewall-cmd --get-active-zones
|
||||
```
|
||||
- 查看指定接口所属区域
|
||||
```
|
||||
firewall-cmd --get-zone-of-interface=eth0
|
||||
```
|
||||
- 拒绝所有包
|
||||
```
|
||||
firewall-cmd --panic-on
|
||||
```
|
||||
- 取消拒绝状态
|
||||
```
|
||||
firewall-cmd --panic-off
|
||||
```
|
||||
- 查看是否拒绝
|
||||
```
|
||||
firewall-cmd --query-panic
|
||||
```
|
||||
- 查看所通过的服务
|
||||
```
|
||||
firewall-cmd --list-services
|
||||
```
|
||||
- 添加一个服务
|
||||
```
|
||||
firewall-cmd --add-service openvpn
|
||||
```
|
||||
- 永久添加一个服务
|
||||
```
|
||||
firewall-cmd --permanent --add-service openvpn
|
||||
```
|
||||
- 开启一个端口
|
||||
```
|
||||
firewall-cmd --zone=public --add-port=80/tcp --permanent (--permanent永久生效,没有此参数重启后失效)
|
||||
```
|
||||
- 重新载入
|
||||
```
|
||||
firewall-cmd --reload
|
||||
```
|
||||
- 查看端口是否开启
|
||||
```
|
||||
firewall-cmd --zone= public --query-port=80/tcp
|
||||
```
|
||||
- 删除开放端口
|
||||
```
|
||||
firewall-cmd --zone= public --remove-port=80/tcp --permanent
|
||||
```
|
|
@ -1,290 +0,0 @@
|
|||
> 脚本功能介绍
|
||||
|
||||
# 目录
|
||||
|
||||
- [1.快速开始](#1快速开始)
|
||||
- [2.进阶教学](#2进阶教学)
|
||||
- [3.常见错误处理](#3常见错误处理)
|
||||
- [4.答疑](#4答疑)
|
||||
|
||||
# 1.快速开始
|
||||
|
||||
## 1.安装/重新安装/任意组合安装
|
||||
|
||||
>安装/重新安装
|
||||
|
||||
- 此操作会安装根据选择不同内核进行全部协议的安装【VLESS、VMess、trojan】,不会安装hysteria
|
||||
|
||||
>任意组合安装
|
||||
|
||||
- 必选VLESS TCP,其余的可以任意组合
|
||||
|
||||
### 1.选择内核
|
||||
|
||||
- 1.Xray-core[推荐]
|
||||
- 2.v2ray-core
|
||||
|
||||
### 2.输入域名
|
||||
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/how_to_use/02_01.png" width=700>
|
||||
|
||||
### 3.是否自定义端口
|
||||
- 如果自定义端口后只可使用dns申请证书
|
||||
- 如回车默认,则申请证书时会提示是否使用dns申请证书
|
||||
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/how_to_use/02_02.png" width=700>
|
||||
|
||||
### 4.检测域名的ip
|
||||
|
||||
- 这里会全自动检查域名的IP是否正确
|
||||
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/how_to_use/02_03.png" width=700>
|
||||
|
||||
- 如提示不正确请按照步骤依次检测,如检测后确认无误请卸载脚本或者重新安装系统重新尝试
|
||||
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/how_to_use/02_04.png" width=700>
|
||||
|
||||
|
||||
### 5.申请TLS证书
|
||||
|
||||
- 提供三种不同的厂商
|
||||
#### 1.安装成功
|
||||
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/how_to_use/02_05.png" width=700>
|
||||
|
||||
#### 2.安装失败
|
||||
- 如果是防火墙问题脚本打开对应端口后请重新尝试即可
|
||||
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/how_to_use/02_06.png" width=700>
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/how_to_use/02_07.png" width=700>
|
||||
|
||||
#### 3.已安装过
|
||||
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/how_to_use/02_11.png" width=700>
|
||||
|
||||
### 6.生成随机路径
|
||||
- 这里会先读取上次安装时路径,如果没有读取到则会手动输入或者随机路径
|
||||
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/how_to_use/02_08.png" width=700>
|
||||
|
||||
|
||||
### 7.安装Xray-core/v2ray-core
|
||||
|
||||
- 根据选择的内核自动安装,如果安装过则会提示是否更新或者升级
|
||||
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/how_to_use/02_09.png" width=700>
|
||||
|
||||
### 8.配置开机自启
|
||||
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/how_to_use/02_10.png" width=700>
|
||||
|
||||
### 9.添加cloudflare自选CNAME
|
||||
|
||||
- [详看此文章](https://github.com/mack-a/v2ray-agent/blob/master/documents/optimize_V2Ray.md),仅支持ws的传输方式
|
||||
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/how_to_use/02_12.png" width=700>
|
||||
|
||||
### 10.初始化xray/v2ray配置文件
|
||||
|
||||
- 可自定义、随机生成uuid
|
||||
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/how_to_use/02_11.png" width=700>
|
||||
|
||||
### 11.定时任务维护证书
|
||||
|
||||
- 每天凌晨一点半会检查证书的有效性,如果无效会自动更新、安装、重启。
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/how_to_use/02_11.png" width=700>
|
||||
|
||||
### 12.添加伪装站点
|
||||
|
||||
会检测上次是否安装了伪装站点,如检测不到会自动安装默认的伪装站点,如果后续不满意可以使用脚本提供的伪站更换或自定义伪站
|
||||
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/how_to_use/02_14.png" width=700>
|
||||
|
||||
### 13.验证服务状态
|
||||
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/how_to_use/02_15.png" width=700>
|
||||
|
||||
### 14.完成,展示账号
|
||||
- 恭喜到这里就是最后一步了,接下来会检测服务是否正常,正常则会展示账号
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/how_to_use/02_16.png" width=700>
|
||||
|
||||
## 2.安装Hysteria
|
||||
|
||||
- 按照提示安装即可
|
||||
- 首先必须执行[安装]后才能安装Hysteria
|
||||
|
||||
# 2.进阶教学
|
||||
|
||||
## 1.账号管理
|
||||
|
||||
### 1.查看订阅
|
||||
|
||||
- 当【查看订阅】时脚本会自动创建一个唯一的订阅地址,
|
||||
- 不查看订阅时不会自动生成
|
||||
- 每次账号更改时需要重新【查看订阅】才会生成新的内容
|
||||
- 此操作完全在你的服务器存放。
|
||||
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/how_to_use/02_17.png" width=700>
|
||||
|
||||
### 2.添加用户/删除用户
|
||||
|
||||
- 脚本支持多用户管理,如果添加用户后相应的订阅也就产生多个
|
||||
|
||||
## 2.更换伪站点
|
||||
|
||||
- 脚本提供了多个可供更换的伪站
|
||||
- 建议使用404或者302重定向网站
|
||||
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/how_to_use/02_18.png" width=700>
|
||||
|
||||
## 3.更新证书
|
||||
- 如发现自动更新未正常更新,可以手动更新证书
|
||||
|
||||
## 4.修改CDN节点
|
||||
|
||||
- 脚本提供多CNAME地址,可以根据自己本地的运营商进行更换,也可以优选后手动输入
|
||||
- 详情原理解析请查看[此文章](https://github.com/mack-a/v2ray-agent/blob/master/documents/optimize_V2Ray.md)
|
||||
- 仅支持ws的传输方式
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/how_to_use/02_19.png" width=700>
|
||||
|
||||
## 5.IPv6分流
|
||||
|
||||
- 可以指定网站只走IPv6,应用场景【1.Google人机验证 2.流媒体解锁】
|
||||
- vps需支持IPv6
|
||||
|
||||
## 6.WARP分流
|
||||
|
||||
- 指定网站通过WARP分流
|
||||
|
||||
## 7.流媒体工具
|
||||
|
||||
- 任意门落地机解锁Netflix,[详情请查看此文章](https://github.com/mack-a/v2ray-agent/blob/master/documents/netflix/dokodemo-unblock_netflix.md)
|
||||
- DNS解锁流媒体
|
||||
- VMess+WS+TLS解锁流媒体
|
||||
|
||||
|
||||
## 8.添加新端口
|
||||
- 可以设置订阅端口以及节点端口
|
||||
- 支持多个端口的添加和删除
|
||||
- 不支持范围添加端口
|
||||
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/how_to_use/02_20.png" width=700>
|
||||
|
||||
## 9.BT下载管理
|
||||
|
||||
- 可以禁用服务端使用BT下载
|
||||
|
||||
## 10.域名黑名单
|
||||
|
||||
- 可以对指定的域名、类型进行屏蔽
|
||||
|
||||
## 11.core管理
|
||||
- 支持核心的升级、回退、重启、打开、关闭
|
||||
- 支持geosite和geoip的升级,文件来源[https://github.com/Loyalsoldier/v2ray-rules-dat]
|
||||
|
||||
## 12.安装BBR、DD脚本
|
||||
|
||||
- 支持BBR的安装、重新安装系统
|
||||
- [这里使用的是【ylx2016】的脚本](https://github.com/ylx2016/Linux-NetSpeed)
|
||||
|
||||
|
||||
## 13.查看日志
|
||||
- 默认关闭access日志,如果想要调试则需要打开。
|
||||
- 此日志会产生大量的访问记录,建议调试完后关闭。
|
||||
|
||||
## 14.卸载脚本
|
||||
|
||||
- 卸载时会删除脚本产生的数据文件以及脚本本身
|
||||
- 但是不会删除安装的linux命令,比如curl、wget、nginx等
|
||||
- 会将当前安装的证书备份到【/tmp/v2ray-agent-tls】,重启后此文件消失。
|
||||
|
||||
# 3.常见错误处理
|
||||
|
||||
# 4.答疑
|
||||
|
||||
## 1.哪一种线路是最好的?
|
||||
|
||||
- 没有最好的只有最适合的
|
||||
- 建议自己多测试找出适合自己的
|
||||
|
||||
## 2.GCP挖矿或者其余警告被封实例
|
||||
|
||||
- GCP不建议使用代理,自从GCP改为3个月后,开始封禁大流量实例,和脚本无关。
|
||||
|
||||
## 3.VLESS+WS/gRPC+TLS、VMess+WS/gRPC+TLS,如果套CF,开启CF的小云朵了,那么如果把域名给换成优选IP的话 小云朵需要关闭不?
|
||||
|
||||
- [自选ip的情况下,不需要开启云朵](https://github.com/mack-a/v2ray-agent/blob/master/documents/optimize_V2Ray.md)
|
||||
|
||||
# 5.脚本目录
|
||||
|
||||
## Xray-core
|
||||
|
||||
- 主目录
|
||||
|
||||
```
|
||||
/etc/v2ray-agent/xray
|
||||
```
|
||||
|
||||
- 配置文件目录
|
||||
|
||||
```
|
||||
/etc/v2ray-agent/xray/conf
|
||||
```
|
||||
|
||||
## hysteria
|
||||
|
||||
- 主目录
|
||||
|
||||
```
|
||||
/etc/v2ray-agent/hysteria
|
||||
```
|
||||
|
||||
- 配置文件目录
|
||||
|
||||
```
|
||||
/etc/v2ray-agent/xray/conf
|
||||
```
|
||||
|
||||
## 订阅文件
|
||||
|
||||
```
|
||||
/etc/v2ray-agent/subscribe
|
||||
```
|
||||
|
||||
## v2ray-core
|
||||
|
||||
- 主目录
|
||||
|
||||
```
|
||||
/etc/v2ray-agent/v2ray
|
||||
```
|
||||
|
||||
- 配置文件目录
|
||||
|
||||
```
|
||||
/etc/v2ray-agent/v2ray/conf
|
||||
```
|
||||
|
||||
## TLS证书
|
||||
|
||||
- 目录
|
||||
|
||||
```
|
||||
/etc/v2ray-agent/tls
|
||||
```
|
||||
|
||||
## Nginx
|
||||
|
||||
- Nginx配置文件
|
||||
|
||||
```
|
||||
/etc/nginx/conf.d/alone.conf
|
||||
```
|
||||
|
||||
- Nginx伪装站点目录
|
||||
|
||||
```
|
||||
/usr/share/nginx/html
|
||||
```
|
||||
|
|
@ -1,49 +0,0 @@
|
|||
# 任意门解锁netfix
|
||||
|
||||
> [参考文章](https://gist.github.com/phlinhng/c11c1268748874982fa6596fb0a4992a)
|
||||
|
||||
# 1.概述
|
||||
|
||||
目前解锁Netflix有三种方式,这里我们介绍的是下面的第二种
|
||||
|
||||
- 1.购买dns解锁服务
|
||||
- 2.在主力机的基础中再购买Netflix解锁的机器
|
||||
- 3.购买的vps自带解锁服务
|
||||
|
||||
# 2.准备工作
|
||||
|
||||
- 1.购买可以解锁Netflix的机器
|
||||
- 2.使用本脚本搭建完毕两台机器,安装Netflix解锁机时不区分协议,随便安装一个协议即可
|
||||
|
||||
# 3.解锁步骤
|
||||
|
||||
- 1.需要分别设置两台vps的入站和出站,即**需要解锁的vps**设置**出站**,**已经解锁的vps**设置**入站**
|
||||
- 2.举例
|
||||
|
||||
下面有vpsA、vpsB两台vps。 vpsA为BWH GIA,不解锁Netflix,vpsB为解锁Netflix的vps。
|
||||
|
||||
这个时候我们需要两步操作
|
||||
|
||||
- 1.登录**vpsA**,使用脚本中的 **流媒体工具箱->任意门落地机解锁Netflix->设置出站**,ip为上面的**已经解锁Netflix的vpsB的ip**
|
||||
- 2.登录**解锁的Netflix的vps**,使用脚本中的**流媒体工具箱->任意门落地机解锁Netflix->设置入站**,ip为上面的**vpsA的ip**
|
||||
|
||||
# 4.如解锁机器仅支持IPv6怎么办?
|
||||
|
||||
- 1.vpsA需要支持IPv6
|
||||
- 2.vpsA解锁时需输入域名,域名需设置IPv6,这个域名可以是搭建IPv6机器的域名
|
||||
- 3.vpsA按照【3.解锁步骤】搭建出站,出站写上面解析的域名,vpsB搭建入站时ip写vpsA的IPv6 ip
|
||||
- 4.修改vpsA 【10_ipv4_outbounds.json】文件中tag为streamingMedia-443、streamingMedia-80下的domainStrategy为【UseIPv6】
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/netflix_vpsA_10_ipv4_outbounds.png" width=700>
|
||||
|
||||
- 5.修改vpsB【09_routing.json】有source的那一组的outboundTag为【IPv6-out】
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/netflix_vpsB_09_routing.png" width=700>
|
||||
|
||||
- 6.重启vpsA、vpsB中的核心
|
||||
|
||||
# 5.卸载
|
||||
|
||||
- 卸载不区分入站、出站,卸载即可。
|
||||
|
||||
|
||||
|
||||
|
|
@ -1,75 +0,0 @@
|
|||
- [1.准备工作](#1准备工作)
|
||||
- [2.配置流量转发服务](#2配置流量转发服务)
|
||||
- [3.线路建议](#3线路建议)
|
||||
- [4.游戏代理](#4游戏代理)
|
||||
|
||||
# 1.准备工作
|
||||
## 1.注意事项
|
||||
- 1.需要一台没被墙的VPS(IPLC除外),建议HK、日本
|
||||
- 2.必须保证在不用流量转发服务的情况可以使用XTLS/TLS+VLESS、Trojan,这里的Trojan、XTLS/TLS+VLESS、websocket+tls 设置方法相同,下面是用VLESS+TCP/XTLS示例。
|
||||
|
||||
## 2.购买流量转发服务
|
||||
|
||||
# 2.配置流量转发服务
|
||||
## 1.VLESS+TCP+TLS
|
||||
### 1.添加普通转发[协议tcp]
|
||||
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/wikihost/wikihost_add_01.png" width=800>
|
||||
|
||||
### 2.填写ip+端口号
|
||||
|
||||
- 格式
|
||||
```
|
||||
ip:port
|
||||
# 例子
|
||||
103.11.119.22:443
|
||||
```
|
||||
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/wikihost/wikihost_add_02.png" width=400>
|
||||
|
||||
### 3.添加完毕后会给分配ip/域名+port
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/wikihost/wikihost_show_01.png" width=600>
|
||||
|
||||
### 4.配置客户端
|
||||
- 地址位置填写wikihost分配的ip/域名
|
||||
- 端口则为wikihost分配的端口
|
||||
- 加密算法建议***none***并且***不打开***允许不安全连接
|
||||
|
||||
|
||||
#### 1.Shadowrocket[VLESS]
|
||||
- Peer名称 需填写你的域名
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/wikihost/wikihost_Shadowrocket.png" width=400>
|
||||
|
||||
|
||||
#### 2.V2RayN
|
||||
- 暂无
|
||||
|
||||
#### 3.V2RayNG
|
||||
- 伪装域名需填写你的域名
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/wikihost/wikihost_V2RayNG.png" width=400>
|
||||
|
||||
## 2.TCP[IPLC专属]
|
||||
- [wikihost添加步骤与TCP+TLS相同](#1vlesstcptls)
|
||||
|
||||
### 1.配置客户端
|
||||
- 修改 地址+端口 为wikihost分配的 ip/域名+端口 即可
|
||||
- 加密不建议选择none
|
||||
- 其余客户端相同
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/Quantumult_Setting_vmess.png" width=400>
|
||||
|
||||
## 3.Trojan[推荐]
|
||||
- 设置方法与[VLESS+TCP+TLS](#1vlesstcptls)
|
||||
|
||||
# 3.线路建议
|
||||
- 1.广东移动+hk vps
|
||||
- 2.上海CN2+美西or其他地区
|
||||
- 3.上海联通+tw vps
|
||||
- 4.莞港IPLC+hk vps
|
||||
- 5.苏日IPLC+其他地区
|
||||
- 6.深港高速内网+hk or 其他地区
|
||||
|
||||
|
||||
# 4.游戏代理
|
||||
- 游戏代理设置转发规则时必须选择第三个,TCP+UDP同时设置。
|
||||
- 建议使用[Netch](https://github.com/NetchX/Netch/releases)
|
||||
- Netch设置不是很复杂,这里不过多描述,[官网入门教程](https://github.com/NetchX/Netch/blob/master/docs/Quickstart.zh-CN.md)。
|
|
@ -1,23 +0,0 @@
|
|||
- [1.准备工作](#1准备工作)
|
||||
- [2.购买流量转发服务](#2购买流量转发服务)
|
||||
- [3.配置流量转发服务](#3配置流量转发服务)
|
||||
- [4.修改客户端](#4修改客户端)
|
||||
- [5.游戏代理](#5游戏代理)
|
||||
|
||||
# 1.准备工作
|
||||
- 1.需要一台VPS。
|
||||
- 2.这里建议使用shadowsocks。
|
||||
|
||||
# 2.购买流量转发服务
|
||||
|
||||
# 3.配置流量转发服务
|
||||
## 1.配置idc.wiki流量转发
|
||||
- 1.服务-->我的产品和服务-->管理产品-->添加普通转发&添加IPLC转发,如果需要游戏代理,这里则必须选择第三个,同时转发TCP+UDP。
|
||||
- 2.配置转发规则【示例:173.82.112.30:37210】
|
||||
|
||||
# 4.修改客户端
|
||||
- 客户端部分修改地址和端口为wikihost分配的端口+ip
|
||||
|
||||
# 5.游戏代理
|
||||
- 建议使用[Netch](https://github.com/NetchX/Netch/releases)
|
||||
- Netch设置不是很复杂,这里不过多描述,[官网入门教程](https://github.com/NetchX/Netch/blob/master/docs/Quickstart.zh-CN.md)。
|
|
@ -1,66 +0,0 @@
|
|||
- [1.准备工作](#1准备工作)
|
||||
- [2.购买流量转发服务](#2购买流量转发服务)
|
||||
- [3.配置流量转发服务](#3配置流量转发服务)
|
||||
* [1.配置idc.wiki流量转发](#1配置idcwiki流量转发)
|
||||
- [4.修改客户端](#4修改客户端)
|
||||
* [1.客户端示例](#1客户端示例)
|
||||
- [6.流量转发、计费方式](#6流量转发计费方式)
|
||||
|
||||
>购买之前必看[流量计费规则](6流量转发计费方式)
|
||||
|
||||
# 1.准备工作
|
||||
- 1.需要一台没被墙的VPS(IPLC可使用被墙的)。
|
||||
- 2.必须保证在不用流量转发服务的情况可以使用XTLS/TLS+VLESS、Trojan,这里的Trojan、XTLS/TLS+VLESS、websocket+tls 设置方法相同,下面是用websocket+tls示例。
|
||||
|
||||
# 2.购买流量转发服务
|
||||
|
||||
# 3.配置流量转发服务
|
||||
## 1.配置idc.wiki流量转发
|
||||
- 1.服务-->我的产品和服务-->管理产品-->添加普通转发 or 添加IPLC转发
|
||||
- 2.配置转发规则[tcp],需转发地址,填写自己vps的ip以及https+ws的端口【示例:173.82.112.30:443】
|
||||
- 3.添加完成后会给分配ip和端口
|
||||
|
||||
>示例图
|
||||
- 添加转发服务示例图
|
||||
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/wikihost/wikihost_tcp_setting.png" width=400>
|
||||
|
||||
- 添加完成后示例图
|
||||
|
||||
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/wikihost/wikihost_rules.png" width=700>
|
||||
|
||||
# 4.修改客户端
|
||||
- 思路和CDN手动自选ip一样
|
||||
- 修改客户端地址、端口为wikihost分配的IP or 域名、端口。
|
||||
- header or peer部分填写科学上网的域名
|
||||
|
||||
|
||||
## 客户端示例
|
||||
- 下面的地址、端口都要填写上方示例图中,wikihost分配的ip和端口
|
||||
|
||||
### 1.v2rayU
|
||||
- 1.参考下图
|
||||
- 2.address、端口部分填写wikihost分配的ip和端口,host部分填写科学上网的域名
|
||||
- 3.tls servername 同样填写科学上网的域名
|
||||
<img src='https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/CloudFlare自选ip 手动更改 v2rayU.png' width=400/>
|
||||
|
||||
### 2.Quantumult
|
||||
- 1.参考下图
|
||||
- 2.地址、端口部分填写wikihost分配的ip和端口
|
||||
- 3.Host部分填写科学上网的域名
|
||||
- 4.请求头-->Host部分填写科学上网的域名
|
||||
<img src='https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/CloudFlare自选ip 手动更改 Quantumult01.png' width=400/>
|
||||
<img src='https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/CloudFlare自选ip 手动更改 Quantumult02.png' width=400/>
|
||||
|
||||
### 3.ShadowRocket
|
||||
- 1.参考下图
|
||||
- 2.地址、端口部分填写wikihost分配的ip和端口
|
||||
- 3.注意混淆部分->Host部分填写科学上网的域名
|
||||
<img src='https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/CloudFlare自选ip 手动更改 ShadowRocket01.png' width=400/>
|
||||
<img src='https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/CloudFlare自选ip 手动更改 ShadowRocket02.png' width=400/>
|
||||
|
||||
### 4.v2rayN
|
||||
- 1.参考下图
|
||||
- 2.地址、端口部分填写wikihost分配的ip和端口
|
||||
- 3.注意伪装域名部分填写科学上网的域名
|
||||
<img src='https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/CloudFlare自选ip 手动更改 v2rayN.png' width=400/>
|
Before Width: | Height: | Size: 85 KiB |
Before Width: | Height: | Size: 268 KiB |
Before Width: | Height: | Size: 238 KiB |
Before Width: | Height: | Size: 162 KiB |
Before Width: | Height: | Size: 299 KiB |
Before Width: | Height: | Size: 261 KiB |
Before Width: | Height: | Size: 291 KiB |
Before Width: | Height: | Size: 83 KiB |
Before Width: | Height: | Size: 318 KiB |
Before Width: | Height: | Size: 144 KiB |
Before Width: | Height: | Size: 416 KiB |
Before Width: | Height: | Size: 254 KiB |
Before Width: | Height: | Size: 271 KiB |
Before Width: | Height: | Size: 225 KiB |
Before Width: | Height: | Size: 166 KiB |
Before Width: | Height: | Size: 65 KiB |
Before Width: | Height: | Size: 206 KiB |
Before Width: | Height: | Size: 246 KiB |
Before Width: | Height: | Size: 217 KiB |
Before Width: | Height: | Size: 179 KiB |
Before Width: | Height: | Size: 72 KiB |
Before Width: | Height: | Size: 143 KiB |
Before Width: | Height: | Size: 204 KiB |
Before Width: | Height: | Size: 148 KiB |
Before Width: | Height: | Size: 224 KiB |
Before Width: | Height: | Size: 246 KiB |
Before Width: | Height: | Size: 171 KiB |
Before Width: | Height: | Size: 411 KiB |
Before Width: | Height: | Size: 73 KiB |
Before Width: | Height: | Size: 80 KiB |
Before Width: | Height: | Size: 75 KiB |
Before Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 252 KiB |
Before Width: | Height: | Size: 159 KiB |
Before Width: | Height: | Size: 203 KiB |
Before Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 74 KiB |
Before Width: | Height: | Size: 190 KiB |
Before Width: | Height: | Size: 74 KiB |
Before Width: | Height: | Size: 62 KiB |
Before Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 125 KiB |
Before Width: | Height: | Size: 121 KiB |