|
匿名
发表于 2023-12-2 02:51:29
ChatGPT生成,还没试试是否可用
- {
- "inbounds": [
- {
- "port": 1080,
- "protocol": "socks",
- "listen": "127.0.0.1",
- "tag": "inbound_1", // 入站连接标签,用于路由
- "settings": {
- "auth": "noauth" // 无需认证,可根据需求更改
- }
- },
- {
- "port": 1081,
- "protocol": "socks",
- "listen": "127.0.0.1",
- "tag": "inbound_2", // 入站连接标签,用于路由
- "settings": {
- "auth": "noauth" // 无需认证,可根据需求更改
- }
- }
- ],
- "outbounds": [
- {
- "protocol": "vless",
- "settings": {
- // 第一个服务器的配置信息
- "vnext": [
- {
- "address": "server1_ip", // 第一个服务器的 IP 地址
- "port": 10001, // 第一个服务器的端口
- "users": [
- {
- "id": "uuid_server1", // 第一个服务器的 UUID
- "level": 0,
- "email": "email_server1@example.com" // 第一个服务器的邮箱
- }
- ]
- }
- ]
- },
- "tag": "outbound_1", // 出站连接标签,用于路由
- "streamSettings": {
- // 第一个服务器的流设置信息
- "network": "tcp,udp" // 代理全局的 TCP 和 UDP 流量
- }
- },
- {
- "protocol": "vless",
- "settings": {
- // 第二个服务器的配置信息
- "vnext": [
- {
- "address": "server2_ip", // 第二个服务器的 IP 地址
- "port": 10002, // 第二个服务器的端口
- "users": [
- {
- "id": "uuid_server2", // 第二个服务器的 UUID
- "level": 0,
- "email": "email_server2@example.com" // 第二个服务器的邮箱
- }
- ]
- }
- ]
- },
- "tag": "outbound_2", // 出站连接标签,用于路由
- "streamSettings": {
- // 第二个服务器的流设置信息
- "network": "tcp,udp" // 代理全局的 TCP 和 UDP 流量
- }
- }
- ],
- "routing": {
- "rules": [
- {
- "type": "field",
- "inboundTag": ["inbound_1"],
- "outboundTag": "outbound_1",
- "network": "tcp,udp" // 代理全局的 TCP 和 UDP 流量
- },
- {
- "type": "field",
- "inboundTag": ["inbound_2"],
- "outboundTag": "outbound_2",
- "network": "tcp,udp" // 代理全局的 TCP 和 UDP 流量
- }
- ]
- }
- }
复制代码 |
|