Browse Source

Merge pull request #1 from KiriKira/master

back
pull/1/head
q158073378252010 7 years ago committed by GitHub
parent
commit
7271479c34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 204
      websocket+TLS/config_client.json
  2. 179
      websocket+TLS/config_server.json

204
websocket+TLS/config_client.json

@ -1,105 +1,111 @@
{ {
"outbound": { "outbound": {
"streamSettings": { "streamSettings": {
"network": "ws", "network": "ws",
"kcpSettings": null, "kcpSettings": null,
"wsSettings": { "wsSettings": {
"headers": { "headers": {
"host": "example.domain" "host": "example.domain"
}, },
"path": "" "path": ""
}, },
"tcpSettings": null, "tcpSettings": null,
"tlsSettings": {}, "tlsSettings": {},
"security": "tls" "security": "tls"
}, },
"tag": "agentout", "tag": "agentout",
"protocol": "vmess", "protocol": "vmess",
"mux": { "mux": {
"enabled": true, "enabled": true
"concurrency": 8 },
}, "settings": {
"settings": { "vnext": [
"vnext": [{
"users": [{
"alterId": 100,
"security": "aes-128-gcm",
"id": "e2b39869-7e9e-411b-a561-00904419bed9"
}],
"port": 443,
"address": "example.domain"
}]
}
},
"log": {
"access": "",
"loglevel": "debug",
"error": ""
},
"outboundDetour": [{
"tag": "direct",
"protocol": "freedom",
"settings": {
"response": null
}
},
{ {
"tag": "blockout", "users": [
"protocol": "blackhole", {
"settings": { "alterId": 100,
"response": { "security": "aes-128-gcm",
"type": "http" "id": "0cdf8a45-303d-4fed-9780-29aa7f54175e"
}
} }
],
"port": 443,
"address": "example.domain"
}
]
}
},
"log": {
"access": "",
"loglevel": "info",
"error": ""
},
"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": 10086,
"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"
]
} }
],
"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"
]
}
} }

179
websocket+TLS/config_server.json

@ -1,91 +1,92 @@
{ {
"outbound": { "outbound": {
"streamSettings": null, "streamSettings": null,
"tag": null, "tag": null,
"protocol": "freedom", "protocol": "freedom",
"mux": null, "mux": null,
"settings": null "settings": null
}, },
"log": { "log": {
"access": "/var/log/v2ray/access.log", "access": "/var/log/v2ray/access.log",
"loglevel": "info", "loglevel": "error",
"error": "/var/log/v2ray/error.log" "error": "/var/log/v2ray/error.log"
}, },
"outboundDetour": [{ "inboundDetour": null,
"tag": "blocked", "inbound": {
"protocol": "blackhole", "streamSettings": {
"settings": null "network": "ws",
}], "kcpSettings": null,
"inbound": { "wsSettings": {
"streamSettings": { "headers": {
"network": "kcp", "host": "example.domain"
"kcpSettings": { },
"uplinkCapacity": 100, "path": "",
"downlinkCapacity": 100, "connectionReuse": true
"readBufferSize": 2, },
"mtu": 1350, "tcpSettings": null,
"header": { "tlsSettings": {
"type": "srtp", "certificates": [
"request": null, {
"response": null "keyFile": "/path/to/example.domain.key",
}, "certificateFile": "/path/to/example.domain/fullchain.cer"
"tti": 50, }
"congestion": false, ]
"writeBufferSize": 2 },
}, "security": "tls"
"wsSettings": null, },
"tcpSettings": null, "listen": null,
"tlsSettings": { "protocol": "vmess",
"certificates": [{ "port": 443,
"keyFile": "/path/to/example.domain.key", "settings": {
"certificateFile": "/path/to/example.domain/fullchain.cer" "ip": null,
}] "udp": true,
}, "clients": [
"security": "tls" {
}, "alterId": 100,
"settings": { "security": "aes-128-gcm",
"ip": null, "id": "0cdf8a45-303d-4fed-9780-29aa7f54175e"
"udp": true, }
"clients": [{ ],
"alterId": 100, "auth": null
"security": "aes-128-gcm", }
"id": "e2b39869-7e9e-411b-a561-00904419bed9" },
}], "outboundDetour": [
"auth": null {
}, "tag": "blocked",
"protocol": "vmess", "protocol": "blackhole",
"port": 443, "settings": null
"listen": null }
}, ],
"inboundDetour": null, "routing": {
"routing": { "strategy": "rules",
"settings": { "settings": {
"rules": [{ "rules": [
"ip": [ {
"0.0.0.0/8", "ip": [
"10.0.0.0/8", "0.0.0.0/8",
"100.64.0.0/10", "10.0.0.0/8",
"127.0.0.0/8", "100.64.0.0/10",
"169.254.0.0/16", "127.0.0.0/8",
"172.16.0.0/12", "169.254.0.0/16",
"192.0.0.0/24", "172.16.0.0/12",
"192.0.2.0/24", "192.0.0.0/24",
"192.168.0.0/16", "192.0.2.0/24",
"198.18.0.0/15", "192.168.0.0/16",
"198.51.100.0/24", "198.18.0.0/15",
"203.0.113.0/24", "198.51.100.0/24",
"::1/128", "203.0.113.0/24",
"fc00::/7", "::1/128",
"fe80::/10" "fc00::/7",
], "fe80::/10"
"domain": null, ],
"type": "field", "domain": null,
"port": null, "type": "field",
"outboundTag": "blocked" "port": null,
}], "outboundTag": "blocked"
"domainStrategy": null }
}, ],
"strategy": "rules" "domainStrategy": null
}, }
"dns": null },
"dns": null
} }

Loading…
Cancel
Save