<mxfile host="Electron" version="29.6.1">
  <diagram name="F01 layer 4 reverse proxy" id="f01-l4">
    <mxGraphModel dx="1960" dy="720" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="1960" pageHeight="720" 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 4 reverse proxy in front of lnx-ops01" 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 SSH session to ssh.example.com travels on two TCP connections. The proxy copies the bytes and reads nothing above TCP." 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-deniz" value="&lt;b&gt;pc-deniz&lt;/b&gt;&lt;br&gt;Deniz Kaya's managed laptop&lt;br&gt;home network, public IP 88.77.90.25" 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-client" value="SSH 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="client" value="&lt;div&gt;&lt;b&gt;OpenSSH client&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;checks the host key&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;of lnx-ops01&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_application;fontFamily=Helvetica;shadow=1;" vertex="1" parent="grp-client"><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="TCP 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;Spectrum&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;layer 4: ends TCP,&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;copies the payload&lt;/i&gt;&lt;/div&gt;" style="sketch=0;shape=image;cfIcon=spectrum;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+PHBhdGggZD0iTTI0LjY2NyA0NC44NDNoLTEuMzM1bC0uNTQtLjI3Yy0uNTkyLS4zLTE0LjY0LTcuNS0xNC42NC0yMi4xNFYxMS44MjhsMS4yOS0xLjVMMTAuNSAxMC4yYTIwLjk0IDIwLjk0IDAgMCAwIDExLjQ5Ny01LjdsLjg4NS0uOTloMi4yNWwuODc4Ljk5YTIwLjg3IDIwLjg3IDAgMCAwIDExLjUyNyA1LjdsMS4wMi4xNDMgMS4yOSAxLjV2MTAuNTljMCAxNC42NTQtMTQuMDQ3IDIxLjgxNy0xNC42NCAyMi4xNHptLTEzLjUtMzEuNzE4djkuMzA4YzAgMTIuMjU1IDExLjM4NSAxOC42MjIgMTIuODQ4IDE5LjM4NyAxLjUtLjc1IDEyLjg0Ny03LjEzMyAxMi44NDctMTkuMzg3di05LjMwOEEyNCAyNCAwIDAgMSAyNCA2Ljc1YTI0IDI0IDAgMCAxLTEyLjg0OCA2LjM3NXoiLz48cGF0aCBkPSJNMjUuNSAxNC4yNjVoLTN2Ni42MTVoM3oiLz48cGF0aCBkPSJtMjkuODIgMTYuMDU1LTQuNjc4IDQuNjc4IDIuMTIgMi4xMjEgNC42NzgtNC42Nzd6Ii8+PHBhdGggZD0iTTMzLjczNSAyMi41SDI3LjEydjNoNi42MTV6Ii8+PHBhdGggZD0ibTI3LjI3IDI1LjEzOC0yLjEyIDIuMTIxIDQuNjc3IDQuNjc4IDIuMTIxLTIuMTIxeiIvPjxwYXRoIGQ9Ik0yNS41IDI3LjEyaC0zdjYuNjE1aDN6Ii8+PHBhdGggZD0ibTIwLjczNyAyNS4xNDYtNC42NzggNC42NzcgMi4xMjEgMi4xMjIgNC42NzgtNC42Nzh6Ii8+PHBhdGggZD0iTTIwLjg4IDIyLjVoLTYuNjE1djNoNi42MTV6Ii8+PHBhdGggZD0ibTE4LjE3MyAxNi4wNTYtMi4xMjEgMi4xMiA0LjY3NyA0LjY3OCAyLjEyMS0yLjEyeiIvPjwvc3ZnPjwvc3ZnPg==;" 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.35&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 50 (Internal servers)&lt;/b&gt;&lt;br&gt;10.50.50.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-lnx" value="SSH 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="lnx" value="&lt;div&gt;&lt;b&gt;lnx-ops01&lt;/b&gt;&lt;/div&gt;&lt;div&gt;10.50.50.35&lt;/div&gt;&lt;div&gt;sshd, SSH :22&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-lnx"><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-client" 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-lnx"><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;TCP connection&lt;/b&gt; (byte stream, no HTTP)&lt;br&gt;TCP 22, payload: SSH&lt;br&gt;src 88.77.90.25:49822&lt;br&gt;dst Cloudflare anycast IP:22" 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 TCP connection&lt;/b&gt;, payload copied as-is&lt;br&gt;TCP 22, payload: SSH&lt;br&gt;src Cloudflare IP:40117&lt;br&gt;dst 88.77.40.35:22" 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.35 -&amp;gt; 10.50.50.35&lt;br&gt;TCP 22, 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="e-ssh" style="edgeStyle=orthogonalEdgeStyle;html=1;rounded=0;endArrow=block;endFill=1;startArrow=block;startFill=1;strokeColor=#3F8624;strokeWidth=2;fontFamily=Helvetica;dashed=1;exitX=0.5000;exitY=1.0000;exitDx=0;exitDy=0;entryX=0.5000;entryY=1.0000;entryDx=0;entryDy=0;" edge="1" parent="1" source="grp-client" target="grp-lnx"><mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="140" y="480" /><mxPoint x="1800" y="480" /></Array></mxGeometry></mxCell>
        <mxCell id="lbl-ssh" value="&lt;b&gt;One SSH session, end to end&lt;/b&gt; (key exchange, host key check, user authentication, encryption): pc-deniz and lnx-ops01. It rides on Con-A and Con-B. The proxy holds no SSH key and cannot read it." style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#2E6B14;labelBackgroundColor=none;strokeColor=none;fillColor=none;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="480" y="486" width="1000" height="46" 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="538" 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="550" width="74" height="28" as="geometry" /></mxCell>
        <mxCell id="legend-head-a" value="&lt;b&gt;Connection A (Con-A): SSH client to TCP 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="548" 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 SSH client resolves ssh.example.com. The DNS answer is a Cloudflare anycast IP. The client opens a TCP connection to port 22. Con-A ends at the TCP proxy. The proxy does not speak SSH: it accepts the connection and waits for bytes. It asks for no identity.&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="586" 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="538" 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="550" width="74" height="28" as="geometry" /></mxCell>
        <mxCell id="legend-head-b" value="&lt;b&gt;Connection B (Con-B): TCP proxy to lnx-ops01&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="548" 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 proxy opens a new TCP connection to 88.77.40.35:22 and copies each byte of Con-A to Con-B, and back. Step 3: fw-dc permits only sources in the Cloudflare IP ranges, changes the destination to 10.50.50.35 (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="586" 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="538" 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="550" 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="548" 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;sshd sends its bytes on Con-B; the proxy copies them to Con-A. lnx-ops01 sees a Cloudflare IP as the TCP source and logs that address: SSH has no header that can carry 88.77.90.25. If lnx-ops01 does not answer, the client gets no status code: it sees only what TCP shows.&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="586" width="585" height="94" as="geometry" /></mxCell>
      </root>
    </mxGraphModel>
  </diagram>
</mxfile>