<mxfile host="Electron" version="29.6.1">
  <diagram name="F01 layer 7 reverse proxy" id="f01-reverse">
    <mxGraphModel dx="1960" dy="660" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="1960" pageHeight="660" math="0" shadow="0">
      <root>
        <mxCell id="0" />
        <mxCell id="1" parent="0" />
        <mxCell id="title-group" value="" style="group;fontFamily=Helvetica;" vertex="1" parent="1" connectable="0"><mxGeometry x="40" y="20" width="1880" height="83" as="geometry" /></mxCell>
        <mxCell id="title-text" value="F01 Proxy: a layer 7 reverse proxy in front of shop-web" style="text;html=1;resizable=1;points=[];autosize=1;align=left;verticalAlign=top;spacingTop=-4;fontSize=30;fontStyle=1;fontFamily=Helvetica;" vertex="1" parent="title-group"><mxGeometry x="0" y="0" width="1860" height="42" as="geometry" /></mxCell>
        <mxCell id="subtitle-text" value="One HTTPS request for https://www.example.com/urunler/P-1042 travels on two TCP connections and two TLS sessions. Each connection ends at the reverse proxy." style="text;html=1;resizable=0;points=[];autosize=1;align=left;verticalAlign=top;spacingTop=-4;fontSize=16;fontFamily=Helvetica;" vertex="1" parent="title-group"><mxGeometry x="5" y="40" width="1860" height="25" as="geometry" /></mxCell>
        <mxCell id="title-separator" value="" style="line;strokeWidth=2;html=1;fontSize=14;strokeColor=#FF9900;fontFamily=Helvetica;" vertex="1" parent="title-group"><mxGeometry x="5" y="70" width="1870" height="10" as="geometry" /></mxCell>
        <mxCell id="hdr-who" value="Who connects" style="text;html=1;align=left;verticalAlign=middle;fontSize=14;fontStyle=1;fontColor=#232F3E;strokeColor=none;fillColor=none;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="40" y="150" width="200" height="24" as="geometry" /></mxCell>
        <mxCell id="frame-a1" value="&lt;b&gt;A1: anonymous user's laptop&lt;/b&gt;&lt;br&gt;home network&lt;br&gt;public IP 88.77.120.45" style="rounded=0;whiteSpace=wrap;html=1;container=1;collapsible=0;pointerEvents=0;recursiveResize=0;fillColor=light-dark(#5A6C860D,#5A6C860D);fillStyle=auto;strokeColor=#5A6C86;strokeWidth=1.5;verticalAlign=top;align=left;spacingLeft=8;spacingTop=2;fontColor=#5A6C86;fontStyle=0;fontSize=12;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="40" y="182" width="200" height="250" as="geometry" /></mxCell>
        <mxCell id="grp-browser" value="HTTPS client" style="fillColor=#F5F5F5;strokeColor=#666666;rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;fontStyle=1;fontSize=12;fontColor=#666666;fontFamily=Helvetica;container=1;collapsible=0;shadow=1;strokeWidth=1.5;" vertex="1" parent="1"><mxGeometry x="60" y="270" width="160" height="130" as="geometry" /></mxCell>
        <mxCell id="browser" value="&lt;div&gt;&lt;b&gt;Browser&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;knows only the&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;proxy address&lt;/i&gt;&lt;/div&gt;" style="sketch=0;points=[[0,0,0],[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0,0],[0,1,0],[0.25,1,0],[0.5,1,0],[0.75,1,0],[1,1,0],[0,0.25,0],[0,0.5,0],[0,0.75,0],[1,0.25,0],[1,0.5,0],[1,0.75,0]];outlineConnect=0;fontColor=#232F3E;fillColor=#232F3D;strokeColor=#ffffff;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=center;html=1;fontSize=12;fontStyle=0;aspect=fixed;shape=mxgraph.aws4.resourceIcon;resIcon=mxgraph.aws4.client;fontFamily=Helvetica;shadow=1;" vertex="1" parent="grp-browser"><mxGeometry x="56.0" y="28" width="48" height="48" as="geometry" /></mxCell>
        <mxCell id="cap-inet1" value="Internet" style="text;html=1;align=center;verticalAlign=middle;fontSize=13;fontStyle=3;fontColor=#5A6C86;strokeColor=none;fillColor=none;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="240" y="150" width="320" height="22" as="geometry" /></mxCell>
        <mxCell id="cf-boundary" value="Cloudflare global network" style="cfBoundary=1;rounded=0;whiteSpace=wrap;html=1;container=0;fillColor=light-dark(#F380200D,#F380200D);fillStyle=auto;strokeColor=#F38020;strokeWidth=1.5;verticalAlign=top;align=left;spacingLeft=32;spacingTop=2;fontColor=#F38020;fontStyle=1;fontSize=14;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="560" y="150" width="280" height="300" as="geometry" /></mxCell>
        <mxCell id="cf-boundary-logo" value="" style="sketch=0;shape=image;cfIcon=cloudflare;aspect=fixed;imageAspect=0;html=1;image=data:image/svg+xml,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0OCIgaGVpZ2h0PSI0OCIgdmlld0JveD0iMCAwIDQ4IDQ4Ij48cmVjdCB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHJ4PSI0IiBmaWxsPSIjRjM4MDIwIi8+PHN2ZyB4PSI5IiB5PSI5IiB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHZpZXdCb3g9IjAgMCAyNCAyNCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQgbWVldCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjRkZGRkZGIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+CiAgPHBhdGggc3Ryb2tlPSJub25lIiBkPSJNMCAwaDI0djI0SDB6IiBmaWxsPSJub25lIi8+CiAgPHBhdGggZD0iTTEzLjAzMSA3LjAwN2MyLjQ2OSAtLjAwNyAzLjI5NSAxLjI5MyAzLjk2OSAyLjk5M2M0IDAgNC45OTQgMy44MjUgNSA2aC0yMGMtLjAwMSAtMS42NCAxLjM2IC0yLjk1NCAzIC0zYzAgLTEuNSAxIC0zIDMgLTNjLjY2IC0xLjk0MiAyLjU2MiAtMi45ODYgNS4wMzEgLTIuOTkzeiIgLz4KICA8cGF0aCBkPSJNMTIgMTNoNiIgLz4KICA8cGF0aCBkPSJNMTcgMTBsLTIuNSA2IiAvPgo8L3N2Zz48L3N2Zz4=;" vertex="1" parent="1"><mxGeometry x="564" y="153" width="24" height="24" as="geometry" /></mxCell>
        <mxCell id="frame-pop" value="&lt;b&gt;Cloudflare data center (PoP)&lt;/b&gt;&lt;br&gt;nearest to the user" style="rounded=0;whiteSpace=wrap;html=1;container=1;collapsible=0;pointerEvents=0;recursiveResize=0;fillColor=none;strokeColor=#B4540A;strokeWidth=1.5;dashed=1;verticalAlign=top;align=left;spacingLeft=8;spacingTop=2;fontColor=#B4540A;fontStyle=0;fontSize=12;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="580" y="200" width="240" height="232" as="geometry" /></mxCell>
        <mxCell id="grp-proxy" value="Reverse proxy" style="fillColor=#EDE7F6;strokeColor=#8C4FFF;rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;fontStyle=1;fontSize=12;fontColor=#8C4FFF;fontFamily=Helvetica;container=1;collapsible=0;shadow=1;strokeWidth=1.5;" vertex="1" parent="1"><mxGeometry x="620" y="270" width="160" height="130" as="geometry" /></mxCell>
        <mxCell id="proxy" value="&lt;div&gt;&lt;b&gt;HTTP reverse proxy&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;layer 7: ends TCP and&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;TLS, reads HTTP&lt;/i&gt;&lt;/div&gt;" style="sketch=0;shape=image;cfIcon=network;aspect=fixed;imageAspect=0;verticalLabelPosition=bottom;verticalAlign=top;align=center;html=1;fontColor=#232F3E;fontSize=12;fontFamily=Helvetica;shadow=1;image=data:image/svg+xml,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0OCIgaGVpZ2h0PSI0OCIgdmlld0JveD0iMCAwIDQ4IDQ4Ij48cmVjdCB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHJ4PSI0IiBmaWxsPSIjRjM4MDIwIi8+PHN2ZyB4PSI5IiB5PSI5IiB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHZpZXdCb3g9IjAgMCA0OCA0OCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQgbWVldCIgZmlsbD0iI0ZGRkZGRiI+PHBhdGggZD0iTTI0LjMxNCAxMC42OGE2LjUgNi41IDAgMCAwLTMuNjA0IDEuMDkzIDYuNDYgNi40NiAwIDAgMC0yLjM5MiAyLjkxMyA2LjUgNi41IDAgMCAwLS4zNyAzLjc1MiA2LjUgNi41IDAgMCAwIDEuNzc2IDMuMzIxIDYuNSA2LjUgMCAwIDAgMy4zMjEgMS43NzYgNi41IDYuNSAwIDAgMCAzLjc1My0uMzcgNi40NiA2LjQ2IDAgMCAwIDIuOTEyLTIuMzkyIDYuNDkgNi40OSAwIDAgMC0uODEtOC4xOTUgNi41IDYuNSAwIDAgMC00LjU5Mi0xLjkwMnptMCAxMC4xMDZhMy42MSAzLjYxIDAgMCAxLTMuMzM2LTIuMjI4IDMuNiAzLjYgMCAwIDEtLjIwNS0yLjA4IDMuNTYgMy41NiAwIDAgMSAuOTg4LTEuODQzIDMuNTk1IDMuNTk1IDAgMCAxIDMuOTIzLS43ODMgMy42MiAzLjYyIDAgMCAxIDIuMjI4IDMuMzM2IDMuNjIgMy42MiAwIDAgMS0xLjA0IDIuNTg2IDMuNiAzLjYgMCAwIDEtMi41NjMgMS4wNzR6bS4wNTctMTguNDI3YTE0LjYgMTQuNiAwIDAgMC0xMC4zMjcgNC4yOTUgMTQuNjYgMTQuNjYgMCAwIDAtNC4yOTUgMTAuMzI4YzAgMTAuMTA0IDEyLjg1NCAyNi42NzMgMTMuMzc0IDI3LjM0MmwxLjE0NCAxLjM1MiAxLjExNS0xLjM1MmMuNTYyLS43MiAxMy42NzEtMTcuMzEyIDEzLjY3MS0yNy4zNDJhMTQuNjMgMTQuNjMgMCAwIDAtNC4zMDItMTAuMzI4IDE0LjYzIDE0LjYzIDAgMCAwLTEwLjMyOC00LjI4N3ptLS4xMjIgMzguNzFjLTMuMTEzLTQuMjY0LTExLjY2NS0xNi41NjgtMTEuNjY1LTI0LjA3MyAwLTMuMTIgMS4yNC02LjEwNyAzLjQ0Ny04LjMyMWExMS43NiAxMS43NiAwIDAgMSA4LjMyMi0zLjQ0OGMzLjEyIDAgNi4xMDcgMS4yNDEgOC4zMjEgMy40NDhhMTEuNzYgMTEuNzYgMCAwIDEgMy40NDggOC4zMjFjMCA3LjQzLTguNjkzIDE5LjgzOS0xMS44ODggMjQuMDc0eiIvPjwvc3ZnPjwvc3ZnPg==;" vertex="1" parent="grp-proxy"><mxGeometry x="56.0" y="28" width="48" height="48" as="geometry" /></mxCell>
        <mxCell id="cap-inet2" value="Internet" style="text;html=1;align=center;verticalAlign=middle;fontSize=13;fontStyle=3;fontColor=#5A6C86;strokeColor=none;fillColor=none;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="840" y="150" width="320" height="22" as="geometry" /></mxCell>
        <mxCell id="hdr-origin" value="Origin site" style="text;html=1;align=left;verticalAlign=middle;fontSize=14;fontStyle=1;fontColor=#232F3E;strokeColor=none;fillColor=none;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="1160" y="126" width="200" height="24" as="geometry" /></mxCell>
        <mxCell id="frame-dc" value="Örnek Holding DC" style="points=[[0,0],[0.25,0],[0.5,0],[0.75,0],[1,0],[0,1],[0.25,1],[0.5,1],[0.75,1],[1,1],[0,0.25],[0,0.5],[0,0.75],[1,0.25],[1,0.5],[1,0.75]];outlineConnect=0;gradientColor=none;html=1;whiteSpace=wrap;fontSize=14;fontStyle=1;shape=mxgraph.aws4.group;grIcon=mxgraph.aws4.group_corporate_data_center;strokeColor=#7D8998;fillColor=light-dark(#7D89980D,#7D89980D);fillStyle=auto;verticalAlign=top;align=left;spacingLeft=30;fontColor=#5A6C86;dashed=0;container=1;pointerEvents=0;collapsible=0;recursiveResize=0;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="1160" y="150" width="760" height="300" as="geometry" /></mxCell>
        <mxCell id="frame-fw" value="&lt;b&gt;fw-dc (DC firewall)&lt;/b&gt;&lt;br&gt;internet address 88.77.40.1" style="rounded=0;whiteSpace=wrap;html=1;container=1;collapsible=0;pointerEvents=0;recursiveResize=0;fillColor=light-dark(#DD344C14,#DD344C14);fillStyle=auto;strokeColor=#DD344C;strokeWidth=1.5;verticalAlign=top;align=left;spacingLeft=8;spacingTop=2;fontColor=#DD344C;fontStyle=0;fontSize=12;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="1180" y="200" width="200" height="232" as="geometry" /></mxCell>
        <mxCell id="grp-fw" value="Firewall" style="fillColor=#FFEBEE;strokeColor=#DD344C;rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;fontStyle=1;fontSize=12;fontColor=#DD344C;fontFamily=Helvetica;container=1;collapsible=0;shadow=1;strokeWidth=1.5;" vertex="1" parent="1"><mxGeometry x="1200" y="270" width="160" height="130" as="geometry" /></mxCell>
        <mxCell id="fw" value="&lt;div&gt;&lt;b&gt;fw-dc&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;stateful firewall,&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;DNAT for 88.77.40.30&lt;/i&gt;&lt;/div&gt;" style="sketch=0;points=[[0,0,0],[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0,0],[0,1,0],[0.25,1,0],[0.5,1,0],[0.75,1,0],[1,1,0],[0,0.25,0],[0,0.5,0],[0,0.75,0],[1,0.25,0],[1,0.5,0],[1,0.75,0]];outlineConnect=0;fontColor=#232F3E;fillColor=#232F3D;strokeColor=#ffffff;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=center;html=1;fontSize=12;fontStyle=0;aspect=fixed;shape=mxgraph.aws4.resourceIcon;resIcon=mxgraph.aws4.generic_firewall;fontFamily=Helvetica;shadow=1;" vertex="1" parent="grp-fw"><mxGeometry x="56.0" y="28" width="48" height="48" as="geometry" /></mxCell>
        <mxCell id="frame-vlan" value="&lt;b&gt;DC VLAN 60 (DMZ)&lt;/b&gt;&lt;br&gt;10.50.60.0/24" style="rounded=0;whiteSpace=wrap;html=1;container=1;collapsible=0;pointerEvents=0;recursiveResize=0;fillColor=light-dark(#00A4A60D,#00A4A60D);fillStyle=auto;strokeColor=#00A4A6;strokeWidth=1.5;verticalAlign=top;align=left;spacingLeft=8;spacingTop=2;fontColor=#00A4A6;fontStyle=0;fontSize=12;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="1700" y="200" width="200" height="232" as="geometry" /></mxCell>
        <mxCell id="grp-shop" value="Origin web server" style="fillColor=#FFF2E8;strokeColor=#ED7100;rounded=1;whiteSpace=wrap;html=1;verticalAlign=top;fontStyle=1;fontSize=12;fontColor=#ED7100;fontFamily=Helvetica;container=1;collapsible=0;shadow=1;strokeWidth=1.5;" vertex="1" parent="1"><mxGeometry x="1720" y="270" width="160" height="130" as="geometry" /></mxCell>
        <mxCell id="shop" value="&lt;div&gt;&lt;b&gt;shop-web&lt;/b&gt;&lt;/div&gt;&lt;div&gt;10.50.60.30&lt;/div&gt;&lt;div&gt;nginx, HTTPS :443&lt;/div&gt;" style="sketch=0;points=[[0,0,0],[0.25,0,0],[0.5,0,0],[0.75,0,0],[1,0,0],[0,1,0],[0.25,1,0],[0.5,1,0],[0.75,1,0],[1,1,0],[0,0.25,0],[0,0.5,0],[0,0.75,0],[1,0.25,0],[1,0.5,0],[1,0.75,0]];outlineConnect=0;fontColor=#232F3E;fillColor=#232F3D;strokeColor=#ffffff;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=center;html=1;fontSize=12;fontStyle=0;aspect=fixed;shape=mxgraph.aws4.resourceIcon;resIcon=mxgraph.aws4.traditional_server;fontFamily=Helvetica;shadow=1;" vertex="1" parent="grp-shop"><mxGeometry x="56.0" y="28" width="48" height="48" as="geometry" /></mxCell>
        <mxCell id="e-1" style="edgeStyle=orthogonalEdgeStyle;html=1;rounded=0;endArrow=block;endFill=1;startArrow=none;strokeColor=#147EBA;strokeWidth=2;fontFamily=Helvetica;exitX=1.0000;exitY=0.5000;exitDx=0;exitDy=0;entryX=0.0000;entryY=0.5000;entryDx=0;entryDy=0;" edge="1" parent="1" source="grp-browser" target="grp-proxy"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e-2" style="edgeStyle=orthogonalEdgeStyle;html=1;rounded=0;endArrow=block;endFill=1;startArrow=none;strokeColor=#147EBA;strokeWidth=2;fontFamily=Helvetica;exitX=1.0000;exitY=0.5000;exitDx=0;exitDy=0;entryX=0.0000;entryY=0.5000;entryDx=0;entryDy=0;" edge="1" parent="1" source="grp-proxy" target="grp-fw"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e-3" style="edgeStyle=orthogonalEdgeStyle;html=1;rounded=0;endArrow=block;endFill=1;startArrow=none;strokeColor=#147EBA;strokeWidth=2;fontFamily=Helvetica;exitX=1.0000;exitY=0.5000;exitDx=0;exitDy=0;entryX=0.0000;entryY=0.5000;entryDx=0;entryDy=0;" edge="1" parent="1" source="grp-fw" target="grp-shop"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="step-1" value="1-Con-A" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#007CBD;strokeColor=default;fontColor=#FFFFFF;fontStyle=1;fontSize=14;fontFamily=Helvetica;shadow=1;glass=0;strokeWidth=2;align=center;verticalAlign=middle;labelBackgroundColor=none;" vertex="1" parent="1"><mxGeometry x="320.0" y="366.0" width="74" height="28" as="geometry" /></mxCell>
        <mxCell id="step-2" value="2-Con-B" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#007CBD;strokeColor=default;fontColor=#FFFFFF;fontStyle=1;fontSize=14;fontFamily=Helvetica;shadow=1;glass=0;strokeWidth=2;align=center;verticalAlign=middle;labelBackgroundColor=none;" vertex="1" parent="1"><mxGeometry x="920.0" y="366.0" width="74" height="28" as="geometry" /></mxCell>
        <mxCell id="step-3" value="3-Con-B" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#007CBD;strokeColor=default;fontColor=#FFFFFF;fontStyle=1;fontSize=14;fontFamily=Helvetica;shadow=1;glass=0;strokeWidth=2;align=center;verticalAlign=middle;labelBackgroundColor=none;" vertex="1" parent="1"><mxGeometry x="1460.0" y="366.0" width="74" height="28" as="geometry" /></mxCell>
        <mxCell id="lbl-1" value="&lt;b&gt;HTTPS request&lt;/b&gt; (the client waits for the response)&lt;br&gt;TLS session TLS-A, TCP 443&lt;br&gt;src 88.77.120.45:51514&lt;br&gt;dst Cloudflare anycast IP:443" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=bottom;fontSize=12;fontColor=#0B5C8C;labelBackgroundColor=none;strokeColor=none;fillColor=none;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="250" y="196" width="300" height="92" as="geometry" /></mxCell>
        <mxCell id="lbl-2" value="&lt;b&gt;New HTTPS request&lt;/b&gt; (the proxy waits)&lt;br&gt;TLS session TLS-B, TCP 443&lt;br&gt;src Cloudflare IP:38214&lt;br&gt;dst 88.77.40.30:443&lt;br&gt;adds CF-Connecting-IP: 88.77.120.45" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=bottom;fontSize=12;fontColor=#0B5C8C;labelBackgroundColor=none;strokeColor=none;fillColor=none;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="850" y="196" width="300" height="92" as="geometry" /></mxCell>
        <mxCell id="lbl-3" value="&lt;b&gt;Packet forwarding, DNAT&lt;/b&gt;&lt;br&gt;dst 88.77.40.30 -&amp;gt; 10.50.60.30&lt;br&gt;TCP 443, same connection Con-B" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=bottom;fontSize=12;fontColor=#0B5C8C;labelBackgroundColor=none;strokeColor=none;fillColor=none;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="1390" y="228" width="300" height="60" as="geometry" /></mxCell>
        <mxCell id="legend-panel-a" value="" style="rounded=1;arcSize=4;html=1;fillColor=light-dark(#EDF3FF,#305363);strokeColor=#147EBA;strokeWidth=1.5;" vertex="1" parent="1"><mxGeometry x="40" y="478" width="613" height="150" as="geometry" /></mxCell>
        <mxCell id="legend-badge-a" value="1-Con-A" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#007CBD;strokeColor=default;fontColor=#FFFFFF;fontStyle=1;fontSize=14;fontFamily=Helvetica;shadow=1;glass=0;strokeWidth=2;align=center;verticalAlign=middle;labelBackgroundColor=none;" vertex="1" parent="1"><mxGeometry x="54" y="490" width="74" height="28" as="geometry" /></mxCell>
        <mxCell id="legend-head-a" value="&lt;b&gt;Connection A (Con-A): browser to reverse proxy&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;fontSize=15;fontColor=#0B5C8C;labelBackgroundColor=none;whiteSpace=wrap;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="140" y="488" width="499" height="30" as="geometry" /></mxCell>
        <mxCell id="legend-text-a" value="&lt;span style=&quot;color: light-dark(rgb(0,0,0), rgb(255,255,255));&quot;&gt;The browser resolves www.example.com. The DNS answer is a Cloudflare anycast IP, not the address of shop-web. The browser opens a TCP connection to port 443 and the TLS session TLS-A. The reverse proxy shows its edge certificate. Then the browser sends the HTTPS request GET /urunler/P-1042. Con-A and TLS-A end at the reverse proxy: the proxy reads the full HTTP request.&lt;/span&gt;" style="text;html=1;align=left;verticalAlign=top;fontSize=13;labelBackgroundColor=none;whiteSpace=wrap;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="54" y="526" width="585" height="94" as="geometry" /></mxCell>
        <mxCell id="legend-panel-b" value="" style="rounded=1;arcSize=4;html=1;fillColor=light-dark(#EDF3FF,#305363);strokeColor=#147EBA;strokeWidth=1.5;" vertex="1" parent="1"><mxGeometry x="673" y="478" width="613" height="150" as="geometry" /></mxCell>
        <mxCell id="legend-badge-b" value="2-Con-B" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#007CBD;strokeColor=default;fontColor=#FFFFFF;fontStyle=1;fontSize=14;fontFamily=Helvetica;shadow=1;glass=0;strokeWidth=2;align=center;verticalAlign=middle;labelBackgroundColor=none;" vertex="1" parent="1"><mxGeometry x="687" y="490" width="74" height="28" as="geometry" /></mxCell>
        <mxCell id="legend-head-b" value="&lt;b&gt;Connection B (Con-B): reverse proxy to shop-web&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;fontSize=15;fontColor=#0B5C8C;labelBackgroundColor=none;whiteSpace=wrap;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="773" y="488" width="499" height="30" as="geometry" /></mxCell>
        <mxCell id="legend-text-b" value="&lt;span style=&quot;color: light-dark(rgb(0,0,0), rgb(255,255,255));&quot;&gt;Step 2: the reverse proxy opens a new TCP connection and a new TLS session (TLS-B) to 88.77.40.30:443. shop-web shows its origin certificate. The proxy writes a new HTTPS request and adds the header CF-Connecting-IP: 88.77.120.45. Step 3: fw-dc permits only sources in the Cloudflare IP ranges, changes the destination to 10.50.60.30 (DNAT) and forwards the packets. fw-dc does not end Con-B.&lt;/span&gt;" style="text;html=1;align=left;verticalAlign=top;fontSize=13;labelBackgroundColor=none;whiteSpace=wrap;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="687" y="526" width="585" height="94" as="geometry" /></mxCell>
        <mxCell id="legend-panel-c" value="" style="rounded=1;arcSize=4;html=1;fillColor=light-dark(#EDF3FF,#305363);strokeColor=#147EBA;strokeWidth=1.5;" vertex="1" parent="1"><mxGeometry x="1306" y="478" width="613" height="150" as="geometry" /></mxCell>
        <mxCell id="legend-badge-c" value="Return" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#007CBD;strokeColor=default;fontColor=#FFFFFF;fontStyle=1;fontSize=14;fontFamily=Helvetica;shadow=1;glass=0;strokeWidth=2;align=center;verticalAlign=middle;labelBackgroundColor=none;" vertex="1" parent="1"><mxGeometry x="1320" y="490" width="74" height="28" as="geometry" /></mxCell>
        <mxCell id="legend-head-c" value="&lt;b&gt;Return path and what each end sees&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;fontSize=15;fontColor=#0B5C8C;labelBackgroundColor=none;whiteSpace=wrap;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="1406" y="488" width="499" height="30" as="geometry" /></mxCell>
        <mxCell id="legend-text-c" value="&lt;span style=&quot;color: light-dark(rgb(0,0,0), rgb(255,255,255));&quot;&gt;shop-web sends the HTTPS response on Con-B. The reverse proxy sends it to the browser on Con-A. shop-web sees a Cloudflare IP as the TCP source; the client address is only in the header. The browser sees only the Cloudflare anycast IP. If shop-web does not answer, the reverse proxy writes the error response itself (for example status 522 or 524).&lt;/span&gt;" style="text;html=1;align=left;verticalAlign=top;fontSize=13;labelBackgroundColor=none;whiteSpace=wrap;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="1320" y="526" width="585" height="94" as="geometry" /></mxCell>
      </root>
    </mxGraphModel>
  </diagram>
</mxfile>