{"id":311,"date":"2025-03-18T09:00:00","date_gmt":"2025-03-18T08:00:00","guid":{"rendered":"https:\/\/mokrane-assam.com\/index.php\/2025\/03\/18\/replace-vpn-with-cloudflare-ztna-en\/"},"modified":"2025-03-18T09:00:00","modified_gmt":"2025-03-18T08:00:00","slug":"replace-vpn-with-cloudflare-ztna-en","status":"publish","type":"post","link":"https:\/\/mokrane-assam.com\/index.php\/2025\/03\/18\/replace-vpn-with-cloudflare-ztna-en\/","title":{"rendered":"Replacing VPN with Cloudflare ZTNA: trade-offs and failure modes"},"content":{"rendered":"\n<div class=\"mkz-callout\" style=\"border-left:4px solid #38bdf8;background:#f1f5f9;padding:14px 18px;margin:0 0 18px;border-radius:6px\"><strong style=\"color:#17263f\">What you&rsquo;ll take away :<\/strong> <span style=\"color:#17263f\">A VPN grants network access; ZTNA grants application access. Migrating means moving from implicit network trust to a per-application decision based on identity and device posture. The main win is a smaller blast radius; the things to watch are non-web apps, headless devices, and whether posture is actually enforced.<\/span><\/div>\n\n\n\n<figure class=\"mkz-diagram\" style=\"margin:0 auto 14px;max-width:920px\">\n<svg viewBox=\"0 0 920 290\" width=\"100%\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" font-family=\"Arial, 'Segoe UI', Helvetica, sans-serif\" role=\"img\" aria-label=\"Legacy VPN vs Cloudflare ZTNA\">\n  <defs>\n    <linearGradient id=\"g73446\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"0\">\n      <stop offset=\"0\" stop-color=\"#17263f\"\/><stop offset=\"1\" stop-color=\"#0f172a\"\/>\n    <\/linearGradient>\n  <\/defs>\n  <rect x=\"0\" y=\"0\" width=\"920\" height=\"290\" rx=\"10\" fill=\"#f8fafc\" stroke=\"#e2e8f0\"\/>\n  <path d=\"M10 0 h900 a10 10 0 0 1 10 10 v34 h-920 v-34 a10 10 0 0 1 10 -10 z\" fill=\"url(#g73446)\"\/>\n  <text x=\"18\" y=\"28\" fill=\"#ffffff\" font-size=\"17\" font-weight=\"700\">Legacy VPN vs Cloudflare ZTNA<\/text>\n  <text x=\"904\" y=\"27\" fill=\"#38bdf8\" font-size=\"12\" font-weight=\"700\" letter-spacing=\"3\" text-anchor=\"end\">NET BY ME<\/text>\n  <g transform=\"translate(0,44)\">\n<rect x=\"16\" y=\"8\" width=\"432\" height=\"230\" rx=\"10\" fill=\"#ffffff\" stroke=\"#C8102E\" stroke-width=\"1.5\"\/><text x=\"232.0\" y=\"128.0\" font-size=\"15\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\"><\/text><text x=\"232\" y=\"30\" font-size=\"15\" fill=\"#C8102E\" font-weight=\"700\" text-anchor=\"middle\">Legacy VPN<\/text><rect x=\"196\" y=\"70\" width=\"110\" height=\"40\" rx=\"6\" fill=\"#fdeeee\" stroke=\"#C8102E\" stroke-width=\"1.5\"\/><text x=\"251.0\" y=\"95.0\" font-size=\"12\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\">VPN concentrator<\/text><rect x=\"120\" y=\"150\" width=\"260\" height=\"34\" rx=\"6\" fill=\"#ffffff\" stroke=\"#475569\" stroke-width=\"1.5\"\/><text x=\"250.0\" y=\"172.0\" font-size=\"12\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\">Flat internal network<\/text><line x1=\"251\" y1=\"110\" x2=\"251\" y2=\"149\" stroke=\"#475569\" stroke-width=\"2\"\/><polygon points=\"251,149 255.0,140.0 247.0,140.0\" fill=\"#475569\"\/><text x=\"32\" y=\"205\" font-size=\"15\" fill=\"#C8102E\" font-weight=\"700\">&#10007;<\/text><text x=\"54\" y=\"205\" font-size=\"12\" fill=\"#17263f\" font-weight=\"400\" text-anchor=\"start\">Implicit trust, lateral movement<\/text><rect x=\"472\" y=\"8\" width=\"432\" height=\"230\" rx=\"10\" fill=\"#ffffff\" stroke=\"#166534\" stroke-width=\"1.5\"\/><text x=\"688.0\" y=\"128.0\" font-size=\"15\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\"><\/text><text x=\"688\" y=\"30\" font-size=\"15\" fill=\"#166534\" font-weight=\"700\" text-anchor=\"middle\">ZTNA<\/text><rect x=\"500\" y=\"62\" width=\"120\" height=\"36\" rx=\"6\" fill=\"#ffffff\" stroke=\"#17263f\" stroke-width=\"1.5\"\/><text x=\"560.0\" y=\"85.0\" font-size=\"12\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\">User + device<\/text><rect x=\"640\" y=\"62\" width=\"110\" height=\"36\" rx=\"6\" fill=\"#eef4ff\" stroke=\"#0A66C2\" stroke-width=\"1.5\"\/><text x=\"695.0\" y=\"85.0\" font-size=\"11\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\">Policy (ID+posture)<\/text><line x1=\"620\" y1=\"80\" x2=\"638\" y2=\"80\" stroke=\"#0A66C2\" stroke-width=\"2\"\/><polygon points=\"638,80 629.0,76.0 629.0,84.0\" fill=\"#0A66C2\"\/><rect x=\"772\" y=\"50\" width=\"110\" height=\"32\" rx=\"6\" fill=\"#eaf5ee\" stroke=\"#166534\" stroke-width=\"1.5\"\/><text x=\"827.0\" y=\"71.0\" font-size=\"12\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\">App A<\/text><line x1=\"750\" y1=\"80\" x2=\"770\" y2=\"66\" stroke=\"#166534\" stroke-width=\"2\"\/><polygon points=\"770,66 760.3,67.9 764.9,74.4\" fill=\"#166534\"\/><rect x=\"772\" y=\"92\" width=\"110\" height=\"32\" rx=\"6\" fill=\"#eaf5ee\" stroke=\"#166534\" stroke-width=\"1.5\"\/><text x=\"827.0\" y=\"113.0\" font-size=\"12\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\">App B<\/text><line x1=\"750\" y1=\"80\" x2=\"770\" y2=\"108\" stroke=\"#166534\" stroke-width=\"2\"\/><polygon points=\"770,108 768.0,98.4 761.5,103.0\" fill=\"#166534\"\/><rect x=\"772\" y=\"134\" width=\"110\" height=\"32\" rx=\"6\" fill=\"#eaf5ee\" stroke=\"#166534\" stroke-width=\"1.5\"\/><text x=\"827.0\" y=\"155.0\" font-size=\"12\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\">App C<\/text><line x1=\"750\" y1=\"80\" x2=\"770\" y2=\"150\" stroke=\"#166534\" stroke-width=\"2\"\/><polygon points=\"770,150 771.4,140.2 763.7,142.4\" fill=\"#166534\"\/><text x=\"486\" y=\"212\" font-size=\"15\" fill=\"#166534\" font-weight=\"700\">&#10003;<\/text><text x=\"508\" y=\"212\" font-size=\"12\" fill=\"#17263f\" font-weight=\"400\" text-anchor=\"start\">Per-app, least privilege<\/text>\n  <\/g>\n<\/svg>\n<\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Current state: from network tunnel to per-app access<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A VPN terminates the user on a concentrator and opens a network segment. Every app reachable on that segment becomes reachable \u2014 convenient, and exactly the problem. ZTNA (Cloudflare Access) inserts a decision on every request: identity (via the IdP) and device posture, per application, with no inbound port exposed \u2014 the <code>cloudflared<\/code> tunnel is outbound.<\/p>\n\n\n\n<figure class=\"mkz-diagram\" style=\"margin:0 auto 14px;max-width:920px\">\n<svg viewBox=\"0 0 920 184\" width=\"100%\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" font-family=\"Arial, 'Segoe UI', Helvetica, sans-serif\" role=\"img\" aria-label=\"ZTNA request flow (Cloudflare Access)\">\n  <defs>\n    <linearGradient id=\"g99100\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"0\">\n      <stop offset=\"0\" stop-color=\"#17263f\"\/><stop offset=\"1\" stop-color=\"#0f172a\"\/>\n    <\/linearGradient>\n  <\/defs>\n  <rect x=\"0\" y=\"0\" width=\"920\" height=\"184\" rx=\"10\" fill=\"#f8fafc\" stroke=\"#e2e8f0\"\/>\n  <path d=\"M10 0 h900 a10 10 0 0 1 10 10 v34 h-920 v-34 a10 10 0 0 1 10 -10 z\" fill=\"url(#g99100)\"\/>\n  <text x=\"18\" y=\"28\" fill=\"#ffffff\" font-size=\"17\" font-weight=\"700\">ZTNA request flow (Cloudflare Access)<\/text>\n  <text x=\"904\" y=\"27\" fill=\"#38bdf8\" font-size=\"12\" font-weight=\"700\" letter-spacing=\"3\" text-anchor=\"end\">NET BY ME<\/text>\n  <g transform=\"translate(0,44)\">\n<rect x=\"20\" y=\"60\" width=\"150\" height=\"56\" rx=\"8\" fill=\"#ffffff\" stroke=\"#17263f\" stroke-width=\"1.5\"\/><text x=\"95.0\" y=\"84.0\" font-size=\"13\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\">User + WARP \/<\/text><text x=\"95.0\" y=\"103.0\" font-size=\"12\" fill=\"#475569\" font-weight=\"400\" text-anchor=\"middle\">clientless<\/text><line x1=\"170\" y1=\"88\" x2=\"198\" y2=\"88\" stroke=\"#0A66C2\" stroke-width=\"2\"\/><polygon points=\"198,88 189.0,84.0 189.0,92.0\" fill=\"#0A66C2\"\/><rect x=\"198\" y=\"60\" width=\"150\" height=\"56\" rx=\"8\" fill=\"#eef4ff\" stroke=\"#0A66C2\" stroke-width=\"1.5\"\/><text x=\"273.0\" y=\"93.0\" font-size=\"13\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\">Cloudflare edge<\/text><line x1=\"348\" y1=\"88\" x2=\"376\" y2=\"88\" stroke=\"#0A66C2\" stroke-width=\"2\"\/><polygon points=\"376,88 367.0,84.0 367.0,92.0\" fill=\"#0A66C2\"\/><rect x=\"376\" y=\"60\" width=\"150\" height=\"56\" rx=\"8\" fill=\"#eef4ff\" stroke=\"#0A66C2\" stroke-width=\"1.5\"\/><text x=\"451.0\" y=\"84.0\" font-size=\"13\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\">Access policy<\/text><text x=\"451.0\" y=\"103.0\" font-size=\"12\" fill=\"#475569\" font-weight=\"400\" text-anchor=\"middle\">IdP + posture<\/text><line x1=\"526\" y1=\"88\" x2=\"554\" y2=\"88\" stroke=\"#0A66C2\" stroke-width=\"2\"\/><polygon points=\"554,88 545.0,84.0 545.0,92.0\" fill=\"#0A66C2\"\/><rect x=\"554\" y=\"60\" width=\"150\" height=\"56\" rx=\"8\" fill=\"#eef4ff\" stroke=\"#0A66C2\" stroke-width=\"1.5\"\/><text x=\"629.0\" y=\"84.0\" font-size=\"13\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\">cloudflared<\/text><text x=\"629.0\" y=\"103.0\" font-size=\"12\" fill=\"#475569\" font-weight=\"400\" text-anchor=\"middle\">tunnel (outbound)<\/text><line x1=\"704\" y1=\"88\" x2=\"732\" y2=\"88\" stroke=\"#0A66C2\" stroke-width=\"2\"\/><polygon points=\"732,88 723.0,84.0 723.0,92.0\" fill=\"#0A66C2\"\/><rect x=\"732\" y=\"60\" width=\"150\" height=\"56\" rx=\"8\" fill=\"#eaf5ee\" stroke=\"#166534\" stroke-width=\"1.5\"\/><text x=\"807.0\" y=\"93.0\" font-size=\"13\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\">Private app<\/text><text x=\"20\" y=\"36\" font-size=\"12\" fill=\"#475569\" font-weight=\"400\" text-anchor=\"start\">DNS \/ network \/ HTTP policies evaluated at the edge \u2014 no inbound firewall port on the app side<\/text>\n  <\/g>\n<\/svg>\n<\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Trade-offs<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Agent vs clientless<\/strong>: clientless covers web apps; arbitrary TCP\/UDP apps (SSH, RDP, thick clients) need the WARP client.<\/li><li><strong>Latency<\/strong>: you trade backhaul to a central datacenter for a hop to the Cloudflare edge \u2014 usually favourable, but measure per region.<\/li><li><strong>IdP dependency<\/strong>: authentication rests on the IdP; its availability and MFA configuration become critical.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Failure modes (what breaks quietly)<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Posture not enforced<\/strong>: a policy that checks identity but omits posture lets a non-compliant device in \u2014 the control exists on paper but blocks nothing.<\/li><li><strong>Over-scoped service tokens<\/strong>: an over-privileged machine token recreates broad access, the very thing you set out to remove.<\/li><li><strong>Misconfigured split tunnel<\/strong>: an internal domain routed outside the tunnel leaks in clear or fails silently.<\/li><li><strong>Headless devices<\/strong>: printers, IoT\/OT cannot carry an agent; they need a dedicated on-ramp, or they stay outside the model.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Proving the negative: test that broad access is gone<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>From an authenticated device, try to reach an <em>unauthorised<\/em> app: it must fail (not rely on a downstream firewall).<\/li><li>Confirm on the app side that <strong>no inbound rule<\/strong> is open \u2014 the tunnel is outbound.<\/li><li>Present a non-compliant device: the posture policy must deny it.<\/li><li>Read Access logs: every access should be traced by user, app and decision.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Takeaway<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">ZTNA is not \u201cswapping one tunnel for another\u201d: it replaces network trust with a per-application decision. The value is real only if posture is actually evaluated and headless devices get their own path.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"margin-top:28px;padding-top:14px;border-top:1px solid #e2e8f0;color:#17263f\"><em>A question or some feedback? Reach me on LinkedIn: Mokrane Assam.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What you&rsquo;ll take away : A VPN grants network access; ZTNA grants application access. Migrating means moving from implicit network trust to a per-application decision based on identity and device posture. The main win is a smaller blast radius; the things to watch are non-web apps, headless devices, and whether posture is actually enforced. Legacy<\/p><\/div>\n<div class=\"blog-btn\"><a href=\"https:\/\/mokrane-assam.com\/index.php\/2025\/03\/18\/replace-vpn-with-cloudflare-ztna-en\/\" class=\"home-blog-btn\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[12,10,11],"class_list":["post-311","post","type-post","status-publish","format-standard","hentry","category-networking-security","tag-vpn","tag-zero-trust","tag-ztna"],"_links":{"self":[{"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/posts\/311","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/comments?post=311"}],"version-history":[{"count":0,"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/posts\/311\/revisions"}],"wp:attachment":[{"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/media?parent=311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/categories?post=311"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/tags?post=311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}