3X-UI Cloudflare
Cloudflare Proxy — HTTP/HTTPS reverse proxy, а не универсальный Xray transport. Сначала определить protocol/transport, затем решать, может ли endpoint быть proxied.
Матрица совместимости
| Схема |
Standard Cloudflare Proxy |
| Panel/subscription HTTP(S) |
Да |
| VLESS/Trojan over WebSocket + TLS |
Да, при совпадении host/path |
| VLESS/Trojan over gRPC + TLS |
Да, port 443, HTTP/2 и gRPC enabled |
| VLESS/Trojan raw TCP |
Нет; DNS-only либо Spectrum |
| VLESS/Trojan + REALITY |
Нет перед standard proxy; использовать DNS-only/direct |
| Hysteria2/UDP |
Нет для standard proxy |
| Cloudflare Tunnel для panel |
Да |
| XHTTP over TLS |
HTTP-dependent; тестировать выбранный mode end-to-end |
XHTTP/HTTPUpgrade не считать автоматически эквивалентными WebSocket. Для XHTTP открыть references/xhttp.md.
CDN Camouflage Rules
Treat every Cloudflare-published VPN transport as a site-first architecture.
Site-first architecture
- Do not invent obvious public hostnames such as
vpn.*, proxy.*, ws.*, panel.* or admin.*.
- Prefer neutral hostnames such as
assets.*, static.*, media.*, content.* or files.*.
- Prefer site-shaped paths such as
/assets/js/runtime-v2.js, /static/js/chunk-main.js, /media/content/stream or /api/v1/content/sync.
- Do not use transport-labeled paths such as
/ws, /vpn, /proxy, /vless or /xray.
- If a real site exists, embed the proxied transport into its visible structure instead of isolating it on an obvious VPN hostname.
Hidden panel guidance
- Keep the panel on a separate hidden admin path or a restricted admin-only route; do not normalize public
panel.* publication.
Origin IP exposure checks
- Before final output, verify Cloudflare Proxy,
Full (strict), Host/SNI alignment, panel separation, and that public DNS does not expose the origin IP unnecessarily.
Anti-template checklist
- no
vpn.*, proxy.*, ws.*, panel.*, admin.*
- no
/ws, /vpn, /proxy, /vless, /xray
- site-shaped hostname/path preserved
- panel separated from transport path
- origin IP not leaked via public DNS
Рабочий процесс
- Зафиксировать hostname, DNS record, proxy status, origin IP/port, transport, TLS termination и certificate.
- Выбрать архитектуру по references/overview.md.
- Настроить DNS: references/dns.md.
- Для CDN проверить ports/limits: references/proxy-cdn.md.
- Настроить
Full (strict): references/tls-modes.md и references/certificates.md.
- Настроить transport: references/websockets.md или references/grpc.md.
- При необходимости применить references/origin-rules.md или references/tunnel.md.
- Ошибки разбирать по references/troubleshooting.md.
Проверка
dig +short <hostname>
curl -I https://<hostname>/<path>/
openssl s_client -connect <origin-ip>:443 -servername <hostname> </dev/null
journalctl -u x-ui -n 200 --no-pager
Проверять отдельно DNS-only origin, Cloudflare edge, origin TLS и Xray transport. Не отключать TLS verification как постоянное исправление.
Правила безопасности
- Рекомендовать
Full (strict), не Flexible.
- Cloudflare API Token ограничивать
Zone:DNS:Edit и одной zone.
- Origin CA private key хранить только на origin с mode
0600.
- Если origin предназначен только для proxied traffic, ограничить source Cloudflare IP ranges либо использовать Tunnel.
- REALITY private key и Xray client secrets не загружать в Cloudflare.
- Cache для subscription endpoint отключать либо задавать осознанный короткий TTL; для proxy transport paths cache должен быть bypass.
- Cloudflare Tunnel не считать универсальным raw TCP/UDP CDN для публичных Xray clients.
- Проверять, что Cloudflare-side hostname и path выглядят как часть сайта, а не как transport label.
Обязательный аудит детекта
Перед выдачей финального решения обязательно использовать репозиторий:
nidox-vpn-detection-defense-skill
Проверять:
- GeoIP
- ASN
- hosting
- IP reputation
- DNS
- маршрутизацию
- MTU
- Android признаки VPN
- iOS признаки VPN
- ложноположительные срабатывания
- ограничения методики
Использовать также:
references/required-skills.md
references/final-report-template.md
skill-entrypoint.md
Mandatory VPN Detection Audit
Before any final recommendation, deployment guide, troubleshooting procedure, architecture review, routing analysis or VPN assessment related to VPN, Proxy, VLESS, Reality, Xray, sing-box, Cloudflare, CDN, Podkop or OpenWrt, the assistant MUST invoke:
nidox-vpn-detection-defense-skill
The final answer MUST include:
Проверка на признаки детекта
Актуальность
Проверено 2026-06-12 по 3X-UI v3.3.0 и официальной Cloudflare Developers documentation. Cloudflare plans, ports, Origin Rules actions и product limits изменяемы; проверять перед внедрением.
1---2name: 3x-ui-cloudflare3description: Проектировать, настраивать и диагностировать интеграцию 3X-UI с Cloudflare DNS, standard Proxy/CDN, TLS modes, WebSocket, gRPC, XHTTP, Origin Rules, Origin CA, Spectrum и Cloudflare Tunnel. Использовать при публикации панели/подписок и ошибках 522/525/526.4metadata:5 source: https://skillmd.com/skills/majiayu000/3x-ui-cloudflare6---78# 3X-UI Cloudflare910Cloudflare Proxy — HTTP/HTTPS reverse proxy, а не универсальный Xray transport. Сначала определить protocol/transport, затем решать, может ли endpoint быть proxied.1112## Матрица совместимости1314| Схема | Standard Cloudflare Proxy |15|---|---|16| Panel/subscription HTTP(S) | Да |17| VLESS/Trojan over WebSocket + TLS | Да, при совпадении host/path |18| VLESS/Trojan over gRPC + TLS | Да, port 443, HTTP/2 и gRPC enabled |19| VLESS/Trojan raw TCP | Нет; DNS-only либо Spectrum |20| VLESS/Trojan + REALITY | Нет перед standard proxy; использовать DNS-only/direct |21| Hysteria2/UDP | Нет для standard proxy |22| Cloudflare Tunnel для panel | Да |23| XHTTP over TLS | HTTP-dependent; тестировать выбранный mode end-to-end |2425XHTTP/HTTPUpgrade не считать автоматически эквивалентными WebSocket. Для XHTTP открыть [references/xhttp.md](references/xhttp.md).2627## CDN Camouflage Rules2829Treat every Cloudflare-published VPN transport as a site-first architecture.3031### Site-first architecture3233- Do not invent obvious public hostnames such as `vpn.*`, `proxy.*`, `ws.*`, `panel.*` or `admin.*`.34- Prefer neutral hostnames such as `assets.*`, `static.*`, `media.*`, `content.*` or `files.*`.35- Prefer site-shaped paths such as `/assets/js/runtime-v2.js`, `/static/js/chunk-main.js`, `/media/content/stream` or `/api/v1/content/sync`.36- Do not use transport-labeled paths such as `/ws`, `/vpn`, `/proxy`, `/vless` or `/xray`.37- If a real site exists, embed the proxied transport into its visible structure instead of isolating it on an obvious VPN hostname.3839### Hidden panel guidance4041- Keep the panel on a separate hidden admin path or a restricted admin-only route; do not normalize public `panel.*` publication.4243### Origin IP exposure checks4445- Before final output, verify Cloudflare Proxy, `Full (strict)`, Host/SNI alignment, panel separation, and that public DNS does not expose the origin IP unnecessarily.4647### Anti-template checklist4849- no `vpn.*`, `proxy.*`, `ws.*`, `panel.*`, `admin.*`50- no `/ws`, `/vpn`, `/proxy`, `/vless`, `/xray`51- site-shaped hostname/path preserved52- panel separated from transport path53- origin IP not leaked via public DNS5455## Рабочий процесс56571. Зафиксировать hostname, DNS record, proxy status, origin IP/port, transport, TLS termination и certificate.582. Выбрать архитектуру по [references/overview.md](references/overview.md).593. Настроить DNS: [references/dns.md](references/dns.md).604. Для CDN проверить ports/limits: [references/proxy-cdn.md](references/proxy-cdn.md).615. Настроить `Full (strict)`: [references/tls-modes.md](references/tls-modes.md) и [references/certificates.md](references/certificates.md).626. Настроить transport: [references/websockets.md](references/websockets.md) или [references/grpc.md](references/grpc.md).637. При необходимости применить [references/origin-rules.md](references/origin-rules.md) или [references/tunnel.md](references/tunnel.md).648. Ошибки разбирать по [references/troubleshooting.md](references/troubleshooting.md).6566## Проверка6768```sh69dig +short <hostname>70curl -I https://<hostname>/<path>/71openssl s_client -connect <origin-ip>:443 -servername <hostname> </dev/null72journalctl -u x-ui -n 200 --no-pager73```7475Проверять отдельно DNS-only origin, Cloudflare edge, origin TLS и Xray transport. Не отключать TLS verification как постоянное исправление.7677## Правила безопасности7879- Рекомендовать `Full (strict)`, не `Flexible`.80- Cloudflare API Token ограничивать `Zone:DNS:Edit` и одной zone.81- Origin CA private key хранить только на origin с mode `0600`.82- Если origin предназначен только для proxied traffic, ограничить source Cloudflare IP ranges либо использовать Tunnel.83- REALITY private key и Xray client secrets не загружать в Cloudflare.84- Cache для subscription endpoint отключать либо задавать осознанный короткий TTL; для proxy transport paths cache должен быть bypass.85- Cloudflare Tunnel не считать универсальным raw TCP/UDP CDN для публичных Xray clients.86- Проверять, что Cloudflare-side hostname и path выглядят как часть сайта, а не как transport label.8788## Обязательный аудит детекта8990Перед выдачей финального решения обязательно использовать репозиторий:9192- `nidox-vpn-detection-defense-skill`9394Проверять:9596- GeoIP97- ASN98- hosting99- IP reputation100- DNS101- маршрутизацию102- MTU103- Android признаки VPN104- iOS признаки VPN105- ложноположительные срабатывания106- ограничения методики107108Использовать также:109110- `references/required-skills.md`111- `references/final-report-template.md`112- `skill-entrypoint.md`113114## Mandatory VPN Detection Audit115116Before any final recommendation, deployment guide, troubleshooting procedure, architecture review, routing analysis or VPN assessment related to VPN, Proxy, VLESS, Reality, Xray, sing-box, Cloudflare, CDN, Podkop or OpenWrt, the assistant MUST invoke:117118nidox-vpn-detection-defense-skill119120The final answer MUST include:121122Проверка на признаки детекта123124## Актуальность125126Проверено 2026-06-12 по 3X-UI `v3.3.0` и официальной Cloudflare Developers documentation. Cloudflare plans, ports, Origin Rules actions и product limits изменяемы; проверять перед внедрением.