{ "v2ray": { "domain": "你的伪装域名或IP地址", "port": 80, "protocol": "tcp", "cipher": "chacha20", "auth": "your-username:your-password", "via": 6, "sni": "your-remote-server.com", "explicitHost": "your-remote-server.com", "heartbeat": 180, "stats": { "enabled": true, "interval": 60 }, "flow": { "limit": 100, "interval": 60, "retry": 3, "timeout": 300 }, "dns": "8.8.8.8", "log": { "level": "info", "enable": true, "path": "/var/log/v2ray.log" }, "access": [ { "from": ".../", &qu...
{
"v2ray": {
"domain": "你的伪装域名或IP地址",
"port": 80,
"protocol": "tcp",
"cipher": "chacha20",
"auth": "your-username:your-password",
"via": 6,
"sni": "your-remote-server.com",
"explicitHost": "your-remote-server.com",
"heartbeat": 180,
"stats": {
"enabled": true,
"interval": 60
},
"flow": {
"limit": 100,
"interval": 60,
"retry": 3,
"timeout": 300
},
"dns": "8.8.8.8",
"log": {
"level": "info",
"enable": true,
"path": "/var/log/v2ray.log"
},
"access": [
{
"from": ".../",
"to": ".../",
"via": "your-remote-server.com",
"port": 80
}
],
"route": [
{
"domain": "example.com",
"to": "your-remote-server.com",
"port": 80,
"mask": "255.255.255.255"
}
],
"plugin": [
{
"name": "v2ray-plugin",
"arguments": [
"script.js"
]
}
],
"outbound": [
{
"domain": "your-remote-server.com",
"protocol": "tcp",
"port": 808,
"cipher": "chacha20",
"auth": "your-username:your-password",
"via": 6,
"sni": "your-remote-server.com",
"explicitHost": "your-remote-server.com",
"heartbeat": 180,
"stats": {
"enabled": true,
"interval": 60
},
"flow": {
"limit": 100,
"interval": 60,
"retry": 3,
"timeout": 300
},
"dns": "8.8.8.8",
"log": {
"level": "info",
"enable": true,
"path": "/var/log/outbound.log"
},
"access": [
{
"from": ".../",
"to": ".../",
"via": "your-remote-server.com",
"port": 808
}
],
"route": [
{
"domain": "example.com",
"to": "your-remote-server.com",
"port": 808,
"mask": "255.255.255.255"
}
],
"plugin": [
{
"name": "v2ray-plugin",
"arguments": [
"script.js"
]
}
]
}
],
"inbound": [
{
"domain": "your-remote-server.com",
"port": 808,
"protocol": "tcp",
"cipher": "chacha20",
"auth": "your-username:your-password",
"via": 6,
"sni": "your-remote-server.com",
"explicitHost": "your-remote-server.com",
"heartbeat": 180,
"stats": {
"enabled": true,
"interval": 60
},
"flow": {
"limit": 100,
"interval": 60,
"retry": 3,
"timeout": 300
},
"dns": "8.8.8.8",
"log": {
"level": "info",
"enable": true,
"path": "/var/log/inbound.log"
},
"access": [
{
"from": ".../",
"to": ".../",
"via": "your-remote-server.com",
"port": 808
}
],
"route": [
{
"domain": "example.com",
"to": "your-remote-server.com",
"port": 808,
"mask": "255.255.255.255"
}
],
"plugin": [
{
"name": "v2ray-plugin",
"arguments": [
"script.js"
]
}
]
}
],
"outbound-only": [
{
"domain": "your-remote-server.com",
"protocol": "tcp",
"port": 808,
"cipher": "chacha20",
"auth": "your-username:your-password",
"via": 6,
"sni": "your-remote-server.com",
"explicitHost": "your-remote-server.com",
"heartbeat": 180,
"stats": {
"enabled": true,
"interval": 60
},
"flow": {
"limit": 100,
"interval": 60,
"retry": 3,
"timeout": 300
},
"dns": "8.8.8.8",
"log": {
"level": "info",
"enable": true,
"path": "/var/log/outbound-only.log"
},
"access": [
{
"from": ".../",
"to": ".../",
"via": "your-remote-server.com",
"port": 808
}
],
"route": [
{
"domain": "example.com",
"to": "your-remote-server.com",
"port": 808,
"mask": "255.255.255.255"
}
],
"plugin": [
{
"name": "v2ray-plugin",
"arguments": [
"script.js"
]
}
]
}
],
"inbound-only": [
{
"domain": "your-remote-server.com",
"port": 808,
"protocol": "tcp",
"cipher": "chacha20",
"auth": "your-username:your-password",
"via": 6,
"sni": "your-remote-server.com",
"explicitHost": "your-remote-server.com",
"heartbeat": 180,
"stats": {
"enabled": true,
"interval": 60
},
"flow": {
"limit": 100,
"interval": 60,
"retry": 3,
"timeout": 300
},
"dns": "8.8.8.8",
"log": {
"level": "info",
"enable": true,
"path": "/var/log/inbound-only.log"
},
"access": [
{
"from": ".../",
"to": ".../",
"via": "your-remote-server.com",
"port": 808
}
],
"route": [
{
"domain": "example.com",
"to": "your-remote-server.com",
"port": 808,
"mask": "255.255.255.255"
}
],
"plugin": [
{
"name": "v2ray-plugin",
"arguments": [
"script.js"
]
}
]
}
],
"multi": {
"b1": {
"outbound": "outbound1",
"inbound": "inbound1"
},
"b2": {
"outbound": "outbound2",
"inbound": "inbound2"
}
}
}
}
配置说明:
- 伪装域名/IP地址:设置为你所在网络的域名或IP地址。
- 端口:通常为80或443。
- 协议:tcp或udp。
- 加密方式:如chacha20、aes-256等。
- 身份验证:设置为用户名:密码。
- 远程服务器:设置为你使用的V2Ray服务提供商的服务器地址。
- 心跳时间:防止连接被断开,建议180秒。
- 流量限制:每小时允许的数据量,防止被封IP。
- DNS服务器:设置为你信任的DNS服务器,如8.8.8.8。
- 访问控制:限制哪些IP可以使用

上一篇:代理设置
相关文章







