|
|
@@ -1,86 +1,55 @@
|
|
|
{
|
|
|
- "dns": null,
|
|
|
- "inbound": {
|
|
|
- "listen": null,
|
|
|
- "port": 443,
|
|
|
- "protocol": "vmess",
|
|
|
- "settings": {
|
|
|
- "auth": null,
|
|
|
- "clients": [
|
|
|
- {
|
|
|
- "alterId": 64,
|
|
|
- "id": "e2b39869-7e9e-411b-a561-00904419bed9",
|
|
|
- "security": "none"
|
|
|
- }
|
|
|
- ],
|
|
|
- "ip": null,
|
|
|
- "udp": true
|
|
|
- },
|
|
|
- "streamSettings": {
|
|
|
- "kcpSettings": null,
|
|
|
- "network": "tcp",
|
|
|
- "security": "tls",
|
|
|
- "tcpSettings": null,
|
|
|
- "tlsSettings": {
|
|
|
- "certificates": [
|
|
|
- {
|
|
|
- "certificateFile": "/path/to/example.domain/fullchain.cer",
|
|
|
- "keyFile": "/path/to/example.domain.key"
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- "wsSettings": null
|
|
|
- }
|
|
|
- },
|
|
|
- "inboundDetour": null,
|
|
|
"log": {
|
|
|
- "access": "/var/log/v2ray/access.log",
|
|
|
- "error": "/var/log/v2ray/error.log",
|
|
|
- "loglevel": "info"
|
|
|
+ "loglevel": "warning"
|
|
|
},
|
|
|
- "outbound": {
|
|
|
- "mux": null,
|
|
|
- "protocol": "freedom",
|
|
|
- "settings": null,
|
|
|
- "streamSettings": null,
|
|
|
- "tag": null
|
|
|
+ "routing": {
|
|
|
+ "domainStrategy": "AsIs",
|
|
|
+ "rules": [
|
|
|
+ {
|
|
|
+ "type": "field",
|
|
|
+ "ip": [
|
|
|
+ "geoip:private"
|
|
|
+ ],
|
|
|
+ "outboundTag": "block"
|
|
|
+ }
|
|
|
+ ]
|
|
|
},
|
|
|
- "outboundDetour": [
|
|
|
+ "inbounds": [
|
|
|
{
|
|
|
- "protocol": "blackhole",
|
|
|
- "settings": null,
|
|
|
- "tag": "blocked"
|
|
|
+ "listen": "0.0.0.0",
|
|
|
+ "port": 1234,
|
|
|
+ "protocol": "vmess",
|
|
|
+ "settings": {
|
|
|
+ "clients": [
|
|
|
+ {
|
|
|
+ "id": "",
|
|
|
+ "alterId": 4
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "disableInsecureEncryption": false
|
|
|
+ },
|
|
|
+ "streamSettings": {
|
|
|
+ "network": "tcp",
|
|
|
+ "security": "tls",
|
|
|
+ "tlsSettings": {
|
|
|
+ "certificates": [
|
|
|
+ {
|
|
|
+ "certificateFile": "/path/to/certificate.crt",
|
|
|
+ "keyFile": "/path/to/key.key"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
],
|
|
|
- "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"
|
|
|
- }
|
|
|
- ]
|
|
|
+ "outbounds": [
|
|
|
+ {
|
|
|
+ "protocol": "freedom",
|
|
|
+ "tag": "direct"
|
|
|
},
|
|
|
- "strategy": "rules"
|
|
|
- }
|
|
|
-}
|
|
|
+ {
|
|
|
+ "protocol": "blackhole",
|
|
|
+ "tag": "block"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+}
|