Last active
January 12, 2024 09:47
-
-
Save vandanojan/faf9306e575ea2087aa557bec5a6fed5 to your computer and use it in GitHub Desktop.
Cloudflare Tunnel (Fragmentation) Sample Config (for V2rayNG)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"log": { | |
"access": "", | |
"error": "", | |
"loglevel": "warning" | |
}, | |
"inbounds": [ | |
{ | |
"tag": "socks", | |
"port": 10808, | |
"listen": "127.0.0.1", | |
"protocol": "socks", | |
"sniffing": { | |
"enabled": true, | |
"destOverride": [ | |
"http", | |
"tls" | |
], | |
"routeOnly": false | |
}, | |
"settings": { | |
"auth": "noauth", | |
"udp": true, | |
"allowTransparent": false | |
} | |
}, | |
{ | |
"tag": "http", | |
"port": 10809, | |
"listen": "127.0.0.1", | |
"protocol": "http", | |
"sniffing": { | |
"enabled": true, | |
"destOverride": [ | |
"http", | |
"tls" | |
], | |
"routeOnly": false | |
}, | |
"settings": { | |
"auth": "noauth", | |
"udp": true, | |
"allowTransparent": false | |
} | |
} | |
], | |
"outbounds": [ | |
{ | |
"tag": "proxy", | |
"protocol": "vless", | |
"settings": { | |
"vnext": [ | |
{ | |
"address": "172.67.73.38", | |
"port": 443, | |
"users": [ | |
{ | |
"id": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", | |
"alterId": 0, | |
"email": "t@t.tt", | |
"security": "auto", | |
"encryption": "none", | |
"flow": "" | |
} | |
] | |
} | |
] | |
}, | |
"streamSettings": { | |
"network": "ws", | |
"security": "tls", | |
"tlsSettings": { | |
"allowInsecure": true, | |
"serverName": "subdomain.example.com", | |
"alpn": [ | |
"h2", | |
"http/1.1" | |
], | |
"fingerprint": "chrome", | |
"show": false | |
}, | |
"wsSettings": { | |
"path": "/XYZ", | |
"headers": { | |
"Host": "subdomain.example.com" | |
} | |
}, | |
"sockopt": { | |
"dialerProxy": "fragment", | |
"tcpKeepAliveIdle": 100, | |
"mark": 255 | |
} | |
}, | |
"mux": { | |
"enabled": false, | |
"concurrency": -1 | |
} | |
}, | |
{ | |
"tag": "fragment", | |
"protocol": "freedom", | |
"settings": { | |
"fragment": { | |
"packets": "tlshello", | |
"length": "10-20", | |
"interval": "10-20" | |
} | |
}, | |
"streamSettings": { | |
"sockopt": { | |
"TcpNoDelay": true, | |
"tcpKeepAliveIdle": 100, | |
"mark": 255 | |
} | |
} | |
}, | |
{ | |
"tag": "direct", | |
"protocol": "freedom", | |
"settings": {} | |
}, | |
{ | |
"tag": "block", | |
"protocol": "blackhole", | |
"settings": { | |
"response": { | |
"type": "http" | |
} | |
} | |
} | |
], | |
"routing": { | |
"domainStrategy": "AsIs", | |
"rules": [ | |
{ | |
"type": "field", | |
"inboundTag": [ | |
"api" | |
], | |
"outboundTag": "api", | |
"enabled": true | |
}, | |
{ | |
"id": "5465425548310166497", | |
"type": "field", | |
"outboundTag": "direct", | |
"domain": [ | |
"domain:ir", | |
"geosite:cn" | |
], | |
"enabled": true | |
}, | |
{ | |
"id": "5425034033205580637", | |
"type": "field", | |
"outboundTag": "direct", | |
"ip": [ | |
"geoip:private", | |
"geoip:cn", | |
"geoip:ir" | |
], | |
"enabled": true | |
}, | |
{ | |
"id": "5627785659655799759", | |
"type": "field", | |
"port": "0-65535", | |
"outboundTag": "proxy", | |
"enabled": true | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment