Browse Source

beautified

pull/1/head
KiriKira 7 years ago
parent
commit
42c954e6ef
  1. 206
      TCP+TLS/config_client.json
  2. 166
      TCP+TLS/config_server.json

206
TCP+TLS/config_client.json

@ -1,106 +1,106 @@
{ {
"outbound": { "dns": {
"streamSettings": { "servers": [
"network": "tcp", "8.8.8.8",
"kcpSettings": null, "8.8.4.4",
"wsSettings": null, "localhost"
"tcpSettings": null, ]
"tlsSettings": {}, },
"security": "tls" "inbound": {
}, "listen": "0.0.0.0",
"tag": "agentout", "port": 1080,
"protocol": "vmess", "protocol": "socks",
"mux": { "settings": {
"enabled": true "auth": "noauth",
}, "clients": null,
"settings": { "ip": "127.0.0.1",
"vnext": [ "udp": true
{ },
"users": [ "streamSettings": null
{ },
"alterId": 64, "inboundDetour": null,
"security": "none", "log": {
"id": "0cdf8a45-303d-4fed-9780-29aa7f54175e" "access": "/var/log/v2ray/access.log",
} "error": "/var/log/v2ray/error.log",
], "loglevel": "info"
"port": 443, },
"address": "example.domain" "outbound": {
"mux": {
"enabled": true
},
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "example.domain",
"port": 443,
"users": [
{
"alterId": 64,
"id": "0cdf8a45-303d-4fed-9780-29aa7f54175e",
"security": "none"
}
]
}
]
},
"streamSettings": {
"kcpSettings": null,
"network": "tcp",
"security": "tls",
"tcpSettings": null,
"tlsSettings": {},
"wsSettings": null
},
"tag": "agentout"
},
"outboundDetour": [
{
"protocol": "freedom",
"settings": {
"response": null
},
"tag": "direct"
},
{
"protocol": "blackhole",
"settings": {
"response": {
"type": "http"
}
},
"tag": "blockout"
}
],
"routing": {
"settings": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"domain": null,
"ip": [
"0.0.0.0/8",
"10.0.0.0/8",
"100.64.0.0/10",
"127.0.0.0/8",
"169.254.0.0/16",
"172.16.0.0/12",
"192.0.0.0/24",
"192.0.2.0/24",
"192.168.0.0/16",
"198.18.0.0/15",
"198.51.100.0/24",
"203.0.113.0/24",
"::1/128",
"fc00::/7",
"fe80::/10"
],
"outboundTag": "direct",
"port": null,
"type": "field"
}
]
},
"strategy": "rules"
} }
]
}
},
"log": {
"access": "/var/log/v2ray/access.log",
"loglevel": "info",
"error": "/var/log/v2ray/error.log"
},
"outboundDetour": [
{
"tag": "direct",
"protocol": "freedom",
"settings": {
"response": null
}
},
{
"tag": "blockout",
"protocol": "blackhole",
"settings": {
"response": {
"type": "http"
}
}
}
],
"inbound": {
"streamSettings": null,
"settings": {
"ip": "127.0.0.1",
"udp": true,
"clients": null,
"auth": "noauth"
},
"protocol": "socks",
"port": 1080,
"listen": "0.0.0.0"
},
"inboundDetour": null,
"routing": {
"settings": {
"rules": [
{
"ip": [
"0.0.0.0/8",
"10.0.0.0/8",
"100.64.0.0/10",
"127.0.0.0/8",
"169.254.0.0/16",
"172.16.0.0/12",
"192.0.0.0/24",
"192.0.2.0/24",
"192.168.0.0/16",
"198.18.0.0/15",
"198.51.100.0/24",
"203.0.113.0/24",
"::1/128",
"fc00::/7",
"fe80::/10"
],
"domain": null,
"type": "field",
"port": null,
"outboundTag": "direct"
}
],
"domainStrategy": "IPIfNonMatch"
},
"strategy": "rules"
},
"dns": {
"servers": [
"8.8.8.8",
"8.8.4.4",
"localhost"
]
}
} }

166
TCP+TLS/config_server.json

@ -1,86 +1,86 @@
{ {
"outbound": { "dns": null,
"streamSettings": null, "inbound": {
"tag": null, "listen": null,
"protocol": "freedom", "port": 443,
"mux": null, "protocol": "vmess",
"settings": null "settings": {
}, "auth": null,
"log": { "clients": [
"access": "/var/log/v2ray/access.log", {
"loglevel": "info", "alterId": 64,
"error": "/var/log/v2ray/error.log" "id": "e2b39869-7e9e-411b-a561-00904419bed9",
}, "security": "none"
"inboundDetour": null, }
"inbound": { ],
"streamSettings": { "ip": null,
"network": "tcp", "udp": true
"kcpSettings": null, },
"wsSettings": null, "streamSettings": {
"tcpSettings": null, "kcpSettings": null,
"tlsSettings": { "network": "tcp",
"certificates": [ "security": "tls",
{ "tcpSettings": null,
"keyFile": "/path/to/example.domain.key", "tlsSettings": {
"certificateFile": "/path/to/example.domain/fullchain.cer" "certificates": [
} {
] "certificateFile": "/path/to/example.domain/fullchain.cer",
}, "keyFile": "/path/to/example.domain.key"
"security": "tls" }
}, ]
"listen": null, },
"protocol": "vmess", "wsSettings": null
"port": 443, }
"settings": { },
"ip": null, "inboundDetour": null,
"udp": true, "log": {
"clients": [ "access": "/var/log/v2ray/access.log",
{ "error": "/var/log/v2ray/error.log",
"alterId": 64, "loglevel": "info"
"security": "none", },
"id": "e2b39869-7e9e-411b-a561-00904419bed9" "outbound": {
"mux": null,
"protocol": "freedom",
"settings": null,
"streamSettings": null,
"tag": null
},
"outboundDetour": [
{
"protocol": "blackhole",
"settings": null,
"tag": "blocked"
}
],
"routing": {
"settings": {
"domainStrategy": null,
"rules": [
{
"domain": null,
"ip": [
"0.0.0.0/8",
"10.0.0.0/8",
"100.64.0.0/10",
"127.0.0.0/8",
"169.254.0.0/16",
"172.16.0.0/12",
"192.0.0.0/24",
"192.0.2.0/24",
"192.168.0.0/16",
"198.18.0.0/15",
"198.51.100.0/24",
"203.0.113.0/24",
"::1/128",
"fc00::/7",
"fe80::/10"
],
"outboundTag": "blocked",
"port": null,
"type": "field"
}
]
},
"strategy": "rules"
} }
],
"auth": null
}
},
"outboundDetour": [
{
"tag": "blocked",
"protocol": "blackhole",
"settings": null
}
],
"routing": {
"strategy": "rules",
"settings": {
"rules": [
{
"ip": [
"0.0.0.0/8",
"10.0.0.0/8",
"100.64.0.0/10",
"127.0.0.0/8",
"169.254.0.0/16",
"172.16.0.0/12",
"192.0.0.0/24",
"192.0.2.0/24",
"192.168.0.0/16",
"198.18.0.0/15",
"198.51.100.0/24",
"203.0.113.0/24",
"::1/128",
"fc00::/7",
"fe80::/10"
],
"domain": null,
"type": "field",
"port": null,
"outboundTag": "blocked"
}
],
"domainStrategy": null
}
},
"dns": null
} }

Loading…
Cancel
Save