|
@@ -0,0 +1,128 @@
|
|
|
|
|
+{
|
|
|
|
|
+ "log": {
|
|
|
|
|
+ "access": "/var/log/v2ray/access.log",
|
|
|
|
|
+ "error": "/var/log/v2ray/error.log",
|
|
|
|
|
+ "loglevel": "info"
|
|
|
|
|
+ },
|
|
|
|
|
+ "inbounds": [
|
|
|
|
|
+ {
|
|
|
|
|
+ "tag": "socks-proxy",
|
|
|
|
|
+ "listen": "::",
|
|
|
|
|
+ "port": "10801",
|
|
|
|
|
+ "protocol": "socks",
|
|
|
|
|
+ "sniffing": {
|
|
|
|
|
+ "enabled": true,
|
|
|
|
|
+ "destOverride": [
|
|
|
|
|
+ "http",
|
|
|
|
|
+ "tls"
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
|
|
+ "settings": {
|
|
|
|
|
+ "auth": "noauth",
|
|
|
|
|
+ "udp": false
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ ],
|
|
|
|
|
+ "outbounds": [
|
|
|
|
|
+ {
|
|
|
|
|
+ "tag": "direct",
|
|
|
|
|
+ "protocol": "freedom",
|
|
|
|
|
+ "settings": {
|
|
|
|
|
+ "domainStrategy": "UseIPv4v6"
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ "tag": "force-ipv4",
|
|
|
|
|
+ "protocol": "freedom",
|
|
|
|
|
+ "settings": {
|
|
|
|
|
+ "domainStrategy": "ForceIPv4"
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ "tag": "force-ipv6",
|
|
|
|
|
+ "protocol": "freedom",
|
|
|
|
|
+ "settings": {
|
|
|
|
|
+ "domainStrategy": "ForceIPv6"
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ "tag": "blocked",
|
|
|
|
|
+ "protocol": "blackhole",
|
|
|
|
|
+ "settings": {}
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ "tag": "socks-warp",
|
|
|
|
|
+ "protocol": "socks",
|
|
|
|
|
+ "settings": {
|
|
|
|
|
+ "servers": [
|
|
|
|
|
+ {
|
|
|
|
|
+ "address": "warp",
|
|
|
|
|
+ "port": 1080
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ ],
|
|
|
|
|
+ "dns": {
|
|
|
|
|
+ "servers": [
|
|
|
|
|
+ "1.1.1.1",
|
|
|
|
|
+ "1.0.0.1",
|
|
|
|
|
+ "localhost"
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
|
|
+ "routing": {
|
|
|
|
|
+ "domainStrategy": "IPIfNonMatch",
|
|
|
|
|
+ "rules": [
|
|
|
|
|
+ {
|
|
|
|
|
+ "type": "field",
|
|
|
|
|
+ "outboundTag": "direct",
|
|
|
|
|
+ "domain": [
|
|
|
|
|
+ "domain:chatgpt.com",
|
|
|
|
|
+ "domain:openai.com"
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ "type": "field",
|
|
|
|
|
+ "outboundTag": "blocked",
|
|
|
|
|
+ "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",
|
|
|
|
|
+ "192.18.0.0/15",
|
|
|
|
|
+ "198.51.100.0/24",
|
|
|
|
|
+ "203.0.113.0/24",
|
|
|
|
|
+ "::1/128",
|
|
|
|
|
+ "fc00::/7",
|
|
|
|
|
+ "fe80::/10"
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ "type": "field",
|
|
|
|
|
+ "outboundTag": "socks-warp",
|
|
|
|
|
+ "domain": [
|
|
|
|
|
+ "geosite:cn"
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ "type": "field",
|
|
|
|
|
+ "outboundTag": "socks-warp",
|
|
|
|
|
+ "domain": [
|
|
|
|
|
+ "geoip:cn"
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ "type": "field",
|
|
|
|
|
+ "outboundTag": "blocked",
|
|
|
|
|
+ "protocol": [
|
|
|
|
|
+ "bittorrent"
|
|
|
|
|
+ ]
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ }
|
|
|
|
|
+}
|