Merge pull request #7 from Sanczzg/master

全面更新模板
This commit is contained in:
EpLiar 2020-08-01 23:13:07 +08:00 committed by GitHub
commit b886734f26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 770 additions and 1140 deletions

View File

@ -2,28 +2,47 @@
"log": { "log": {
"loglevel": "warning" "loglevel": "warning"
}, },
"inbound": { "routing": {
"port": 6789, "domainStratedy": "AsIs",
"rules": [
{
"type": "field",
"ip": [
"geoip:private"
],
"tag": "direct"
}
]
},
"inbounds": [
{
"listen": "127.0.0.1", "listen": "127.0.0.1",
"port": "1080",
"protocol": "socks", "protocol": "socks",
"settings": { "settings": {
"auth": "noauth", "auth": "noauth",
"udp": false, "udp": true,
"ip": "127.0.0.1" "ip": "127.0.0.1"
} }
}, },
"outbound": { {
"listen": "127.0.0.1",
"port": "1081",
"protocol": "http"
}
],
"outbounds": [
{
"protocol": "socks", "protocol": "socks",
"settings": { "settings": {
"servers": [ "server": [
{ {
"address": "you server", "address": "",
"port": 443, "port": 1234,
"users": [ "users": [
{ {
"user": "hello", "user": "",
"pass": "3.1415", "pass": ""
"level": 0
} }
] ]
} }
@ -31,7 +50,17 @@
}, },
"streamSettings": { "streamSettings": {
"network": "tcp", "network": "tcp",
"security": "tls" "security": "tls",
"tlsSettings": {
"serverName": "example.domain",
"allowInsecure": false
} }
},
"tag": "proxy"
},
{
"protocol": "freedom",
"tag": "direct"
} }
]
} }

View File

@ -1,24 +1,34 @@
{ {
"log": { "log": {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "warning" "loglevel": "warning"
}, },
"inbound": { "routing": {
"port": 443, "domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"ip": [
"geoip:private"
],
"outboundTag": "block"
}
]
},
"inbounds": [
{
"listen": "0.0.0.0",
"port": 1234,
"protocol": "socks", "protocol": "socks",
"settings": { "settings": {
"auth": "password", "auth": "password",
"accounts": [ "accounts": [
{ {
"user": "hello", "user": "",
"pass": "3.1415" "pass": ""
} }
], ],
"udp": false, "udp": true,
"ip": "127.0.0.1", "ip": "127.0.0.1"
"timeout": 0,
"userLevel": 0
}, },
"streamSettings": { "streamSettings": {
"network": "tcp", "network": "tcp",
@ -26,50 +36,22 @@
"tlsSettings": { "tlsSettings": {
"certificates": [ "certificates": [
{ {
"certificateFile": "/etc/v2ray/v2ray.crt", "certificateFile": "/path/to/certificate.crt",
"keyFile": "/etc/v2ray/v2ray.key" "keyFile": "/path/to/key.key"
} }
] ]
} }
} }
}, }
"outbound": { ],
"outbounds": [
{
"protocol": "freedom", "protocol": "freedom",
"settings": {} "tag": "direct"
}, },
"outboundDetour": [
{ {
"protocol": "blackhole", "protocol": "blackhole",
"settings": {}, "tag": "block"
"tag": "blocked"
}
],
"routing": {
"strategy": "rules",
"settings": {
"rules": [
{
"type": "field",
"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"
} }
] ]
} }
}
}

View File

@ -1,149 +1,94 @@
{ {
"outbound": { "log": {
"loglevel": "warning"
},
"routing": {
"domainStratedy": "AsIs",
"rules": [
{
"type": "field",
"ip": [
"geoip:private"
],
"tag": "direct"
}
]
},
"inbounds": [
{
"listen": "127.0.0.1",
"port": "1080",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true,
"ip": "127.0.0.1"
}
},
{
"listen": "127.0.0.1",
"port": "1081",
"protocol": "http"
}
],
"outbounds": [
{
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "",
"port": 1234,
"user": [
{
"id": "",
"alterId": 4,
"security": "auto",
"testsEnabled": "VMessAEAD"
}
]
}
]
},
"streamSettings": { "streamSettings": {
"network": "tcp", "network": "tcp",
"kcpSettings": null,
"wsSettings": null,
"tcpSettings": { "tcpSettings": {
"header": { "header": {
"type": "http", "type": "http",
"request": { "request": {
"version": "1.1",
"method": "GET",
"path": [ "path": [
"/" "/"
], ],
"version": "1.1",
"method": "GET",
"headers": { "headers": {
"Host": "cloudflare.com", "Host": [
"www.bing.com",
"www.cloudflare.com",
"www.amazon.com"
],
"User-Agent": [ "User-Agent": [
"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36 Edg/84.0.522.49",
"Mozilla/5.0 (iPhone; CPU iPhone OS 10_0_2 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/53.0.2785.109 Mobile/14A456 Safari/601.1.46" "Mozilla/5.0 (iPhone; CPU iPhone OS 13_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/84.0.4147.71 Mobile/15E148 Safari/604.1"
], ],
"Connection": [
"keep-alive"
],
"Pragma": "no-cache",
"Accept-Encoding": [ "Accept-Encoding": [
"gzip, deflate" "gzip, deflate"
]
}
},
"response": {
"status": "200",
"headers": {
"Transfer-Encoding": [
"chunked"
], ],
"Connection": [ "Connection": [
"keep-alive" "keep-alive"
], ],
"Content-Type": [
"application/octet-stream",
"video/mpeg"
],
"Pragma": "no-cache" "Pragma": "no-cache"
}, }
"reason": "OK",
"version": "1.1"
} }
} }
}, },
"tlsSettings": {}, "security": "none"
"security": ""
}, },
"tag": "agentout", "tag": "proxy"
"protocol": "vmess",
"mux": {
"enabled": true
}, },
"settings": {
"vnext": [
{ {
"users": [
{
"alterId": 100,
"security": "aes-128-gcm",
"id": "e2b39869-7e9e-411b-a561-00904419bed9"
}
],
"port": 1234,
"address": "Your_IP_Address"
}
]
}
},
"log": {
"access": "",
"loglevel": "info",
"error": ""
},
"outboundDetour": [
{
"tag": "direct",
"protocol": "freedom", "protocol": "freedom",
"settings": { "tag": "direct"
"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"
] ]
} }
}

View File

@ -1,122 +1,73 @@
{ {
"outbound": {
"streamSettings": null,
"tag": null,
"protocol": "freedom",
"mux": null,
"settings": null
},
"log": { "log": {
"access": "/var/log/v2ray/access.log", "loglevel": "warning"
"loglevel": "info",
"error": "/var/log/v2ray/error.log"
}, },
"outboundDetour": [ "routing": {
"domainStrategy": "AsIs",
"rules": [
{ {
"tag": "blocked", "type": "field",
"protocol": "blackhole", "ip": [
"settings": null "geoip:private"
],
"outboundTag": "block"
}
]
},
"inbounds": [
{
"listen": "0.0.0.0",
"port": 1234,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "",
"alterId": 4
} }
], ],
"inbound": { "disableInsecureEncryption": true
},
"streamSettings": { "streamSettings": {
"network": "tcp", "network": "tcp",
"kcpSettings": null,
"wsSettings": null,
"tcpSettings": { "tcpSettings": {
"header": { "header": {
"request": {
"path": [
"/"
],
"version": "1.1",
"method": "GET",
"headers": {
"Host": "cloudflare.com",
"Connection": [
"keep-alive"
],
"Accept-Encoding": [
"gzip, deflate"
],
"Pragma": "no-cache",
"User-Agent": [
"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36",
"Mozilla/5.0 (iPhone; CPU iPhone OS 10_0_2 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/53.0.2785.109 Mobile/14A456 Safari/601.1.46"
]
}
},
"type": "http", "type": "http",
"response": { "response": {
"version": "1.1",
"status": "200", "status": "200",
"reason": "OK",
"headers": { "headers": {
"Content-Type": [
"application/octet-stream",
"video/mpeg",
"application/x-msdownload",
"text/html",
"application/x-shockwave-flash"
],
"Transfer-Encoding": [ "Transfer-Encoding": [
"chunked" "chunked"
], ],
"Connection": [ "Connection": [
"keep-alive" "keep-alive"
], ],
"Content-Type": [
"application/octet-stream",
"video/mpeg"
],
"Pragma": "no-cache" "Pragma": "no-cache"
}, }
"reason": "OK",
"version": "1.1"
} }
} }
}, },
"tlsSettings": {}, "security": "none"
"security": "" }
}, }
"settings": { ],
"ip": null, "outbounds": [
"udp": true,
"clients": [
{ {
"alterId": 100, "protocol": "freedom",
"security": "aes-128-gcm", "tag": "direct"
"id": "e2b39869-7e9e-411b-a561-00904419bed9"
}
],
"auth": null
}, },
"protocol": "vmess",
"port": 1234,
"listen": null
},
"inboundDetour": null,
"routing": {
"settings": {
"rules": [
{ {
"ip": [ "protocol": "blackhole",
"0.0.0.0/8", "tag": "block"
"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
},
"strategy": "rules"
},
"dns": null
} }

View File

@ -1,111 +1,73 @@
{ {
"outbound": { "log": {
"loglevel": "warning"
},
"routing": {
"domainStratedy": "AsIs",
"rules": [
{
"type": "field",
"ip": [
"geoip:private"
],
"tag": "direct"
}
]
},
"inbounds": [
{
"listen": "127.0.0.1",
"port": "1080",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true,
"ip": "127.0.0.1"
}
},
{
"listen": "127.0.0.1",
"port": "1081",
"protocol": "http"
}
],
"outbounds": [
{
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "",
"port": 1234,
"user": [
{
"id": "",
"alterId": 4,
"security": "none"
}
]
}
]
},
"streamSettings": { "streamSettings": {
"network": "h2", "network": "http",
"kcpSettings": null,
"httpSettings": { "httpSettings": {
"host": [ "host": [
"example.domain" "example.domain"
], ],
"path": "/test" "path": ""
}, },
"tcpSettings": null, "security": "tls",
"tlsSettings": {}, "tlsSettings": {
"security": "tls" "serverName": "example.domain",
}, "allowInsecure": false
"tag": "agentout",
"protocol": "vmess",
"mux": {
"enabled": true
},
"settings": {
"vnext": [
{
"users": [
{
"alterId": 100,
"security": "aes-128-gcm",
"id": "0cdf8a45-303d-4fed-9780-29aa7f54175e"
}
],
"port": 443,
"address": "example.domain"
}
]
} }
}, },
"log": { "tag": "proxy"
"access": "",
"loglevel": "info",
"error": ""
}, },
"outboundDetour": [
{ {
"tag": "direct",
"protocol": "freedom", "protocol": "freedom",
"settings": { "tag": "direct"
"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"
] ]
} }
}

View File

@ -1,91 +1,61 @@
{ {
"outbound": {
"streamSettings": null,
"tag": null,
"protocol": "freedom",
"mux": null,
"settings": null
},
"log": { "log": {
"access": "/var/log/v2ray/access.log", "loglevel": "warning"
"loglevel": "error", },
"error": "/var/log/v2ray/error.log" "routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"ip": [
"geoip:private"
],
"outboundTag": "block"
}
]
},
"inbounds": [
{
"listen": "0.0.0.0",
"port": 1234,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "",
"alterId": 4
}
],
"disableInsecureEncryption": false
}, },
"inboundDetour": null,
"inbound": {
"streamSettings": { "streamSettings": {
"network": "h2", "network": "http",
"kcpSettings": null,
"httpSettings": { "httpSettings": {
"host": [ "host": [
"example.domain" "example.domain"
], ],
"path": "/test" "path": ""
}, },
"tcpSettings": null, "security": "tls",
"tlsSettings": { "tlsSettings": {
"certificates": [ "certificates": [
{ {
"keyFile": "/path/to/example.domain.key", "certificateFile": "/path/to/certificate.crt",
"certificateFile": "/path/to/example.domain/fullchain.cer" "keyFile": "/path/to/key.key"
} }
] ]
}, }
"security": "tls" }
},
"listen": null,
"protocol": "vmess",
"port": 443,
"settings": {
"ip": null,
"udp": true,
"clients": [
{
"alterId": 100,
"security": "aes-128-gcm",
"id": "0cdf8a45-303d-4fed-9780-29aa7f54175e"
} }
], ],
"auth": null "outbounds": [
} {
}, "protocol": "freedom",
"outboundDetour": [ "tag": "direct"
},
{ {
"tag": "blocked",
"protocol": "blackhole", "protocol": "blackhole",
"settings": null "tag": "block"
} }
], ]
"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
} }

View File

@ -1,43 +1,48 @@
{ {
"dns": { "log": {
"servers": [ "loglevel": "warning"
"8.8.8.8", },
"8.8.4.4", "routing": {
"localhost" "domainStratedy": "AsIs",
"rules": [
{
"type": "field",
"ip": [
"geoip:private"
],
"tag": "direct"
}
] ]
}, },
"inbound": { "inbounds": [
"listen": "0.0.0.0", {
"port": 1080, "listen": "127.0.0.1",
"port": "1080",
"protocol": "socks", "protocol": "socks",
"settings": { "settings": {
"auth": "noauth", "auth": "noauth",
"clients": null, "udp": true,
"ip": "127.0.0.1", "ip": "127.0.0.1"
"udp": true }
},
"streamSettings": null
},
"inboundDetour": null,
"log": {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "info"
},
"outbound": {
"mux": {
"enabled": true
}, },
{
"listen": "127.0.0.1",
"port": "1081",
"protocol": "http"
}
],
"outbounds": [
{
"protocol": "vmess", "protocol": "vmess",
"settings": { "settings": {
"vnext": [ "vnext": [
{ {
"address": "example.domain", "address": "",
"port": 443, "port": 1234,
"users": [ "user": [
{ {
"alterId": 64, "id": "",
"id": "0cdf8a45-303d-4fed-9780-29aa7f54175e", "alterId": 4,
"security": "none" "security": "none"
} }
] ]
@ -45,62 +50,18 @@
] ]
}, },
"streamSettings": { "streamSettings": {
"kcpSettings": null,
"network": "tcp", "network": "tcp",
"security": "tls", "security": "tls",
"tcpSettings": null, "tlsSettings": {
"tlsSettings": {}, "serverName": "example.domain",
"wsSettings": null "allowInsecure": false
}
}, },
"tag": "agentout" "tag": "proxy"
}, },
"outboundDetour": [
{ {
"protocol": "freedom", "protocol": "freedom",
"settings": {
"response": null
},
"tag": "direct" "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"
}
} }

View File

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

View File

@ -3,54 +3,61 @@
"loglevel": "warning" "loglevel": "warning"
}, },
"routing": { "routing": {
"domainStrategy": "AsIs", "domainStratedy": "AsIs",
"rules": [ "rules": [
{ {
"type": "field",
"ip": [ "ip": [
"geoip:private" "geoip:private"
], ],
"outboundTag": "direct", "tag": "direct"
"port": null,
"type": "field"
} }
] ]
}, },
"outbounds": [
{
"port": 1234,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "e2b39869-7e9e-411b-a561-00904419bed9",
"alterId": 100,
"testsEnabled": "VMessAEAD"
}
]
},
"tag": "proxy",
"streamSettings": {
"network": "tcp"
}
},
{
"tag": "direct",
"protocol": "freedom",
"settings": {
"domainStrategy": "UseIP"
}
}
],
"inbounds": [ "inbounds": [
{ {
"port": 6789,
"listen": "127.0.0.1", "listen": "127.0.0.1",
"port": "1080",
"protocol": "socks", "protocol": "socks",
"settings": { "settings": {
"auth": "noauth", "auth": "noauth",
"udp": false, "udp": true,
"ip": "127.0.0.1" "ip": "127.0.0.1"
} }
},
{
"listen": "127.0.0.1",
"port": "1081",
"protocol": "http"
}
],
"outbounds": [
{
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "",
"port": 1234,
"user": [
{
"id": "",
"alterId": 4,
"security": "auto",
"testsEnabled": "VMessAEAD"
}
]
}
]
},
"streamSettings": {
"network": "tcp"
},
"tag": "proxy"
},
{
"protocol": "freedom",
"tag": "direct"
} }
] ]
} }

View File

@ -6,29 +6,28 @@
"domainStrategy": "AsIs", "domainStrategy": "AsIs",
"rules": [ "rules": [
{ {
"type": "field",
"ip": [ "ip": [
"geoip:private" "geoip:private"
], ],
"outboundTag": "blocked", "outboundTag": "block"
"port": null,
"type": "field"
} }
] ]
}, },
"inbounds": [ "inbounds": [
{ {
"listen": "0.0.0.0",
"port": 1234, "port": 1234,
"protocol": "vmess", "protocol": "vmess",
"settings": { "settings": {
"clients": [ "clients": [
{ {
"id": "", "id": "",
"alterId": 100, "alterId": 4
"testsEnabled": "VMessAEAD"
} }
] ],
"disableInsecureEncryption": true
}, },
"tag": "tcp",
"streamSettings": { "streamSettings": {
"network": "tcp" "network": "tcp"
} }
@ -37,15 +36,11 @@
"outbounds": [ "outbounds": [
{ {
"protocol": "freedom", "protocol": "freedom",
"settings": {
},
"tag": "direct" "tag": "direct"
}, },
{ {
"protocol": "blackhole", "protocol": "blackhole",
"settings": { "tag": "block"
},
"tag": "blocked"
} }
] ]
} }

View File

@ -1,111 +1,73 @@
{ {
"outbound": { "log": {
"streamSettings": { "loglevel": "warning"
"network": "ws",
"kcpSettings": null,
"wsSettings": {
"headers": {
"host": "example.domain"
}, },
"path": "" "routing": {
"domainStratedy": "AsIs",
"rules": [
{
"type": "field",
"ip": [
"geoip:private"
],
"tag": "direct"
}
]
}, },
"tcpSettings": null, "inbounds": [
"tlsSettings": {}, {
"security": "tls" "listen": "127.0.0.1",
"port": "1080",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true,
"ip": "127.0.0.1"
}
}, },
"tag": "agentout", {
"listen": "127.0.0.1",
"port": "1081",
"protocol": "http"
}
],
"outbounds": [
{
"protocol": "vmess", "protocol": "vmess",
"mux": {
"enabled": true
},
"settings": { "settings": {
"vnext": [ "vnext": [
{ {
"users": [ "address": "",
"port": 1234,
"user": [
{ {
"alterId": 100, "id": "",
"security": "aes-128-gcm", "alterId": 4,
"id": "0cdf8a45-303d-4fed-9780-29aa7f54175e" "security": "none"
}
],
"port": 443,
"address": "example.domain"
} }
] ]
} }
]
}, },
"log": { "streamSettings": {
"access": "", "network": "ws",
"loglevel": "info", "wsSettings": {
"error": "" "path": "",
"headers": {
"Host": "example.domain"
}
},
"security": "tls",
"tlsSettings": {
"serverName": "example.domain",
"allowInsecure": false
}
},
"tag": "proxy"
}, },
"outboundDetour": [
{ {
"tag": "direct",
"protocol": "freedom", "protocol": "freedom",
"settings": { "tag": "direct"
"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"
] ]
} }
}

View File

@ -1,91 +1,61 @@
{ {
"outbound": {
"streamSettings": null,
"tag": null,
"protocol": "freedom",
"mux": null,
"settings": null
},
"log": { "log": {
"access": "/var/log/v2ray/access.log", "loglevel": "warning"
"loglevel": "error",
"error": "/var/log/v2ray/error.log"
}, },
"inboundDetour": null, "routing": {
"inbound": { "domainStrategy": "AsIs",
"streamSettings": { "rules": [
"network": "ws",
"kcpSettings": null,
"wsSettings": {
"headers": {
"host": "example.domain"
},
"path": ""
},
"tcpSettings": null,
"tlsSettings": {
"certificates": [
{ {
"keyFile": "/path/to/example.domain.key", "type": "field",
"certificateFile": "/path/to/example.domain/fullchain.cer" "ip": [
"geoip:private"
],
"outboundTag": "block"
} }
] ]
}, },
"security": "tls" "inbounds": [
}, {
"listen": null, "listen": "0.0.0.0",
"port": 1234,
"protocol": "vmess", "protocol": "vmess",
"port": 443,
"settings": { "settings": {
"ip": null,
"udp": true,
"clients": [ "clients": [
{ {
"alterId": 100, "id": "",
"security": "aes-128-gcm", "alterId": 4
"id": "0cdf8a45-303d-4fed-9780-29aa7f54175e"
} }
], ],
"auth": null "disableInsecureEncryption": false
},
"streamSettings": {
"network": "ws",
"wsSettings": {
"path": "",
"headers": {
"Host": "example.domain"
} }
}, },
"outboundDetour": [ "security": "tls",
"tlsSettings": {
"certificates": [
{
"certificateFile": "/path/to/certificate.crt",
"keyFile": "/path/to/key.key"
}
]
}
}
}
],
"outbounds": [
{
"protocol": "freedom",
"tag": "direct"
},
{ {
"tag": "blocked",
"protocol": "blackhole", "protocol": "blackhole",
"settings": null "tag": "block"
} }
], ]
"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
} }

View File

@ -1,111 +1,69 @@
{ {
"outbound": { "log": {
"streamSettings": { "loglevel": "warning"
"network": "ws",
"kcpSettings": null,
"wsSettings": {
"headers": {
"host": "example.domain"
}, },
"path": "" "routing": {
"domainStratedy": "AsIs",
"rules": [
{
"type": "field",
"ip": [
"geoip:private"
],
"tag": "direct"
}
]
}, },
"tcpSettings": null, "inbounds": [
"tlsSettings": {}, {
"security": "" "listen": "127.0.0.1",
"port": "1080",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true,
"ip": "127.0.0.1"
}
}, },
"tag": "agentout", {
"listen": "127.0.0.1",
"port": "1081",
"protocol": "http"
}
],
"outbounds": [
{
"protocol": "vmess", "protocol": "vmess",
"mux": {
"enabled": true
},
"settings": { "settings": {
"vnext": [ "vnext": [
{ {
"users": [ "address": "",
{
"alterId": 100,
"security": "aes-128-gcm",
"id": "e2b39869-7e9e-411b-a561-00904419bed9"
}
],
"port": 1234, "port": 1234,
"address": "Your_IP_Address" "user": [
{
"id": "",
"alterId": 4,
"security": "auto",
"testsEnabled": "VMessAEAD"
} }
] ]
} }
]
}, },
"log": { "streamSettings": {
"access": "", "network": "ws",
"loglevel": "info", "wsSettings": {
"error": "" "path": "",
"headers": {
"Host": ""
}
}
},
"tag": "proxy"
}, },
"outboundDetour": [
{ {
"tag": "direct",
"protocol": "freedom", "protocol": "freedom",
"settings": { "tag": "direct"
"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"
] ]
} }
}

View File

@ -1,84 +1,53 @@
{ {
"outbound": {
"streamSettings": null,
"tag": null,
"protocol": "freedom",
"mux": null,
"settings": null
},
"log": { "log": {
"access": "/var/log/v2ray/access.log", "loglevel": "warning"
"loglevel": "info",
"error": "/var/log/v2ray/error.log"
}, },
"inboundDetour": null,
"inbound": {
"streamSettings": {
"network": "ws",
"kcpSettings": null,
"wsSettings": {
"headers": {
"host": "example.domain"
},
"path": ""
},
"tcpSettings": null,
"tlsSettings": {},
"security": ""
},
"listen": null,
"protocol": "vmess",
"port": 1234,
"settings": {
"ip": null,
"udp": true,
"clients": [
{
"alterId": 100,
"security": "aes-128-gcm",
"id": "e2b39869-7e9e-411b-a561-00904419bed9"
}
],
"auth": null
}
},
"outboundDetour": [
{
"tag": "blocked",
"protocol": "blackhole",
"settings": null
}
],
"routing": { "routing": {
"strategy": "rules", "domainStrategy": "AsIs",
"settings": {
"rules": [ "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", "type": "field",
"port": null, "ip": [
"outboundTag": "blocked" "geoip:private"
],
"outboundTag": "block"
}
]
},
"inbounds": [
{
"listen": "0.0.0.0",
"port": 1234,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "",
"alterId": 4
} }
], ],
"domainStrategy": null "disableInsecureEncryption": true
},
"streamSettings": {
"network": "ws",
"wsSettings": {
"path": "",
"headers": {
"Host": ""
} }
}, },
"dns": null "security": "none"
}
}
],
"outbounds": [
{
"protocol": "freedom",
"tag": "direct"
},
{
"protocol": "blackhole",
"tag": "block"
}
]
} }