123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- {
- "log": {
- "access": "/var/log/v2ray/access.log",
- "error": "/var/log/v2ray/error.log",
- "loglevel": "warning"
- },
- "dns": {
- "servers": [
- "8.8.8.8",
- "8.8.4.4",
- "localhost"
- ]
- },
- "routing": {
- "strategy": "rules",
- "settings": {
- "domainStrategy": "IPIfNonMatch",
- "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"
- },
- {
- "type": "field",
- "domain": [
- "geosite:cn"
- ],
- "ip": [
- "geoip:cn"
- ],
- "network": "tcp,udp",
- "outboundTag": "direct"
- },
- {
- "type": "chinaip",
- "outboundTag": "direct"
- },
- {
- "type": "chinasites",
- "outboundTag": "direct"
- }
- ]
- }
- },
- "inbounds": [
- {
- "port": 1234,
- "listen": "0.0.0.0",
- "protocol": "shadowsocks",
- "settings": {
- "method": "aes-256-gcm",
- "password": "123456",
- "level": 1,
- "network": "tcp,udp"
- },
- "streamSettings": {
- "network": "tcp"
- },
- "tag": "inbound-ss-tcp",
- "domainOverride": [
- "http",
- "tls"
- ]
- },
- {
- "protocol": "vmess",
- "port": "60001-61000",
- "tag": "DynamicPorts-tcp",
- "settings": {},
- "streamSettings": {
- "network": "tcp"
- },
- "allocate": {
- "strategy": "random",
- "concurrency": 3,
- "refresh": 5
- }
- },
- {
- "port": 12345,
- "listen": "0.0.0.0",
- "protocol": "vmess",
- "settings": {
- "clients": [
- {
- "id": "3cb379e2-a7ee-413c-aa53-6d84e656e793",
- "level": 1,
- "alterId": 100
- }
- ],
- "detour": {
- "to": "DynamicPorts-tcp"
- }
- },
- "streamSettings": {
- "network": "tcp"
- },
- "tag": "inbound-vmess-tcp",
- "domainOverride": []
- }
- ],
- "outbounds": [
- {
- "protocol": "vmess",
- "settings": {
- "vnext": [
- {
- "address": "国外地址",
- "port": 443,
- "users": [
- {
- "id": "3cb379e2-a7ee-413c-aa53-6d84e656e793",
- "alterId": 100,
- "security": "aes-128-gcm"
- }
- ]
- }
- ]
- },
- "streamSettings": {
- "network": "tcp"
- },
- "mux": {
- "enabled": true
- },
- "tag": "direct"
- },
- {
- "protocol": "blackhole",
- "settings": {},
- "tag": "blocked"
- },
- {
- "protocol": "freedom",
- "settings": {},
- "tag": "direct1"
- }
- ],
- "transport": {
- "tcpSettings": {
- "connectionReuse": true,
- "header": {
- "type": "none"
- }
- },
- "kcpSettings": {
- "mtu": 1350,
- "tti": 20,
- "uplinkCapacity": 5,
- "downlinkCapacity": 20,
- "congestion": false,
- "readBufferSize": 1,
- "writeBufferSize": 1,
- "header": {
- "type": "none"
- }
- },
- "wsSettings": {}
- }
- }
|