<mxfile host="Electron" version="29.6.1">
  <diagram name="2 Policy order" id="page-1">
    <mxGraphModel dx="1600" dy="1200" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="1700" pageHeight="1200" math="0" shadow="0">
      <root>
        <mxCell id="0" />
        <mxCell id="1" parent="0" />
        <mxCell id="title" value="S31-03 Gateway network policies on Mesh traffic: first match wins" style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=24;fontColor=#16191F;fillColor=none;strokeColor=none;spacing=4;fontStyle=1;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="20" y="10" width="1480" height="34" as="geometry" /></mxCell>
        <mxCell id="subtitle" value="Read each column from top to bottom. Grey: no match, the next policy is tried. Green or red: the first match decides and the evaluation stops. Below the stop nothing is evaluated." style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=13;fontColor=#16191F;fillColor=none;strokeColor=none;spacing=4;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="20" y="44" width="1480" height="40" as="geometry" /></mxCell>
        <mxCell id="sep" value="" style="line;strokeWidth=2;html=1;strokeColor=#FF9900;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="20" y="86" width="1480" height="6" as="geometry" /></mxCell>
        <mxCell id="cfgf" value="Gateway network policies (Cloudflare admin) · top to bottom" style="rounded=0;whiteSpace=wrap;html=1;container=1;pointerEvents=0;collapsible=0;recursiveResize=0;fillColor=light-dark(#F380200D,#F380200D);fillStyle=auto;strokeColor=#F38020;strokeWidth=1.5;verticalAlign=top;align=left;spacingRight=8;spacingLeft=8;spacingTop=2;fontColor=#F38020;fontStyle=1;fontSize=12;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="20" y="130" width="560" height="466" as="geometry" /></mxCell>
        <mxCell id="pol0" value="1 allow-it-admins-rds-01" style="rounded=1;arcSize=6;whiteSpace=wrap;html=1;fillColor=#FFF7EE;strokeColor=#F38020;align=left;verticalAlign=middle;spacingLeft=6;spacingRight=4;fontSize=12;fontColor=#16191F;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="32" y="170" width="536" height="42" as="geometry" /></mxCell>
        <mxCell id="pol1" value="2 allow-it-admins-lnx-ops01" style="rounded=1;arcSize=6;whiteSpace=wrap;html=1;fillColor=#FFF7EE;strokeColor=#F38020;align=left;verticalAlign=middle;spacingLeft=6;spacingRight=4;fontSize=12;fontColor=#16191F;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="32" y="218" width="536" height="42" as="geometry" /></mxCell>
        <mxCell id="pol2" value="3 allow-employees-vdi-443" style="rounded=1;arcSize=6;whiteSpace=wrap;html=1;fillColor=#FFF7EE;strokeColor=#F38020;align=left;verticalAlign=middle;spacingLeft=6;spacingRight=4;fontSize=12;fontColor=#16191F;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="32" y="266" width="536" height="42" as="geometry" /></mxCell>
        <mxCell id="pol3" value="4 allow-employees-vdi-8443" style="rounded=1;arcSize=6;whiteSpace=wrap;html=1;fillColor=#FFF7EE;strokeColor=#F38020;align=left;verticalAlign=middle;spacingLeft=6;spacingRight=4;fontSize=12;fontColor=#16191F;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="32" y="314" width="536" height="42" as="geometry" /></mxCell>
        <mxCell id="pol4" value="5 allow-sccm-01-mesh-ips · src 10.50.50.50 → dst 100.96.0.0/12 · TCP 2701, TCP 135, TCP 3389 · Allow" style="rounded=1;arcSize=6;whiteSpace=wrap;html=1;fillColor=#FFF7EE;strokeColor=#F38020;align=left;verticalAlign=middle;spacingLeft=6;spacingRight=4;fontSize=12;fontColor=#16191F;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="32" y="362" width="536" height="42" as="geometry" /></mxCell>
        <mxCell id="pol5" value="6 allow-access-infra-targets" style="rounded=1;arcSize=6;whiteSpace=wrap;html=1;fillColor=#FFF7EE;strokeColor=#F38020;align=left;verticalAlign=middle;spacingLeft=6;spacingRight=4;fontSize=12;fontColor=#16191F;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="32" y="410" width="536" height="42" as="geometry" /></mxCell>
        <mxCell id="pol6" value="7 block-mesh-ips-default · dst 100.96.0.0/12 · Block" style="rounded=1;arcSize=6;whiteSpace=wrap;html=1;fillColor=#FFF7EE;strokeColor=#F38020;align=left;verticalAlign=middle;spacingLeft=6;spacingRight=4;fontSize=12;fontColor=#16191F;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="32" y="458" width="536" height="42" as="geometry" /></mxCell>
        <mxCell id="pol7" value="8 block-private-default · dst 10.0.0.0/8 · Block" style="rounded=1;arcSize=6;whiteSpace=wrap;html=1;fillColor=#FFF7EE;strokeColor=#F38020;align=left;verticalAlign=middle;spacingLeft=6;spacingRight=4;fontSize=12;fontColor=#16191F;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="32" y="506" width="536" height="42" as="geometry" /></mxCell>
        <mxCell id="pol8" value="no match → Allow (network default)" style="rounded=1;arcSize=6;whiteSpace=wrap;html=1;fillColor=#F5F5F5;strokeColor=#5A6C86;align=left;verticalAlign=middle;spacingLeft=6;spacingRight=4;fontSize=12;fontColor=#16191F;dashed=1;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="32" y="554" width="536" height="42" as="geometry" /></mxCell>
        <mxCell id="fh0" value="&lt;b&gt;sccm-01 → pc-elif&lt;br&gt;TCP 2701&lt;/b&gt;" style="rounded=1;arcSize=6;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#3F8624;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=4;fontSize=12;fontColor=#16191F;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="600" y="118" width="180" height="50" as="geometry" /></mxCell>
        <mxCell id="c0-0" value="no match" style="rounded=1;arcSize=6;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#C8CED6;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=4;fontSize=12;fontColor=#16191F;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="600" y="170" width="180" height="42" as="geometry" /></mxCell>
        <mxCell id="c0-1" value="no match" style="rounded=1;arcSize=6;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#C8CED6;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=4;fontSize=12;fontColor=#16191F;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="600" y="218" width="180" height="42" as="geometry" /></mxCell>
        <mxCell id="c0-2" value="no match" style="rounded=1;arcSize=6;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#C8CED6;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=4;fontSize=12;fontColor=#16191F;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="600" y="266" width="180" height="42" as="geometry" /></mxCell>
        <mxCell id="c0-3" value="no match" style="rounded=1;arcSize=6;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#C8CED6;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=4;fontSize=12;fontColor=#16191F;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="600" y="314" width="180" height="42" as="geometry" /></mxCell>
        <mxCell id="c0-4" value="&lt;b&gt;Allow&lt;/b&gt; · stops here" style="rounded=1;arcSize=6;whiteSpace=wrap;html=1;fillColor=#E8F5E9;strokeColor=#3F8624;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=4;fontSize=12;fontColor=#16191F;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="600" y="362" width="180" height="42" as="geometry" /></mxCell>
        <mxCell id="fh1" value="&lt;b&gt;pc-deniz → pc-elif&lt;br&gt;TCP 3389 (only if the SYN is answered)&lt;/b&gt;" style="rounded=1;arcSize=6;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#DD344C;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=4;fontSize=12;fontColor=#16191F;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="790" y="118" width="180" height="50" as="geometry" /></mxCell>
        <mxCell id="c1-0" value="no match" style="rounded=1;arcSize=6;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#C8CED6;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=4;fontSize=12;fontColor=#16191F;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="790" y="170" width="180" height="42" as="geometry" /></mxCell>
        <mxCell id="c1-1" value="no match" style="rounded=1;arcSize=6;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#C8CED6;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=4;fontSize=12;fontColor=#16191F;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="790" y="218" width="180" height="42" as="geometry" /></mxCell>
        <mxCell id="c1-2" value="no match" style="rounded=1;arcSize=6;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#C8CED6;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=4;fontSize=12;fontColor=#16191F;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="790" y="266" width="180" height="42" as="geometry" /></mxCell>
        <mxCell id="c1-3" value="no match" style="rounded=1;arcSize=6;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#C8CED6;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=4;fontSize=12;fontColor=#16191F;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="790" y="314" width="180" height="42" as="geometry" /></mxCell>
        <mxCell id="c1-4" value="no match" style="rounded=1;arcSize=6;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#C8CED6;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=4;fontSize=12;fontColor=#16191F;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="790" y="362" width="180" height="42" as="geometry" /></mxCell>
        <mxCell id="c1-5" value="no match" style="rounded=1;arcSize=6;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#C8CED6;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=4;fontSize=12;fontColor=#16191F;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="790" y="410" width="180" height="42" as="geometry" /></mxCell>
        <mxCell id="c1-6" value="&lt;b&gt;Block&lt;/b&gt; · stops here" style="rounded=1;arcSize=6;whiteSpace=wrap;html=1;fillColor=#FDECEE;strokeColor=#DD344C;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=4;fontSize=12;fontColor=#16191F;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="790" y="458" width="180" height="42" as="geometry" /></mxCell>
        <mxCell id="fh2" value="&lt;b&gt;pc-elif → vdi-gw&lt;br&gt;TCP 443 (S31-02)&lt;/b&gt;" style="rounded=1;arcSize=6;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#147EBA;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=4;fontSize=12;fontColor=#16191F;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="980" y="118" width="180" height="50" as="geometry" /></mxCell>
        <mxCell id="c2-0" value="no match" style="rounded=1;arcSize=6;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#C8CED6;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=4;fontSize=12;fontColor=#16191F;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="980" y="170" width="180" height="42" as="geometry" /></mxCell>
        <mxCell id="c2-1" value="no match" style="rounded=1;arcSize=6;whiteSpace=wrap;html=1;fillColor=#FFFFFF;strokeColor=#C8CED6;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=4;fontSize=12;fontColor=#16191F;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="980" y="218" width="180" height="42" as="geometry" /></mxCell>
        <mxCell id="c2-2" value="&lt;b&gt;Allow&lt;/b&gt; · stops here" style="rounded=1;arcSize=6;whiteSpace=wrap;html=1;fillColor=#E8F5E9;strokeColor=#3F8624;align=center;verticalAlign=middle;spacingLeft=6;spacingRight=4;fontSize=12;fontColor=#16191F;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="980" y="266" width="180" height="42" as="geometry" /></mxCell>
        <mxCell id="why7" value="Why policy 7 exists: policy 8 covers 10.0.0.0/8 and does not cover the Mesh IP range 100.96.0.0/12. Without 7, device-to-device traffic falls to the network default: Allow." style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#5A6C86;fillColor=none;strokeColor=none;spacing=4;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="20" y="612" width="560" height="42" as="geometry" /></mxCell>
        <mxCell id="synf" value="TCP: the SYN goes before the policy" style="rounded=0;whiteSpace=wrap;html=1;container=1;pointerEvents=0;collapsible=0;recursiveResize=0;fillColor=light-dark(#5A6C860D,#5A6C860D);fillStyle=auto;strokeColor=#5A6C86;strokeWidth=1.5;verticalAlign=top;align=left;spacingRight=8;spacingLeft=8;spacingTop=2;fontColor=#5A6C86;fontStyle=1;fontSize=12;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="1180" y="124" width="300" height="250" as="geometry" /></mxCell>
        <mxCell id="syn" value="&lt;b&gt;1&lt;/b&gt; Gateway sends a TCP SYN to the destination (Mesh IP).&lt;br&gt;&lt;b&gt;2&lt;/b&gt; SYN-ACK? &lt;b&gt;No&lt;/b&gt;: no policy runs; the try is only in Network Session Logs, not in the Gateway network log.&lt;br&gt;&lt;b&gt;3&lt;/b&gt; &lt;b&gt;Yes&lt;/b&gt;: the policy list decides.&lt;br&gt;&lt;b&gt;4&lt;/b&gt; Allow: Gateway proxies both directions. Block: Gateway closes the connection; the network log shows Action Block.&lt;br&gt;&lt;br&gt;In the reference setup pc-elif&#x27;s firewall drops the SYN from 100.96.0.10, so step 2 is No and policy 7 never runs." style="text;html=1;whiteSpace=wrap;align=left;verticalAlign=top;fontSize=12;fontColor=#16191F;fillColor=none;strokeColor=none;spacing=4;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="1190" y="154" width="282" height="215" as="geometry" /></mxCell>
      </root>
    </mxGraphModel>
  </diagram>
</mxfile>
