ARRAY NTB XML
  • ARRAY NTB XML
    • Element <run>
    • Element <filter>
      • Element <find>
    • Element <output>
    • Element <chain>
    • Element <script>
    • Element <action>
    • Element <input>
    • Schema
  • Case Study
    • Mirror
    • Inline & Bypass
    • Load Balance
    • Packet Stripping
    • Packet Editing
    • Packet Tagging
    • Packet Reply
    • Packet > File
    • Tunnel
    • Bandwidth Control
    • Snort Rule > ARRAY NTB XML
    • Offload
    • Service Chain
    • Block Gmail
    • Block Specific Country
    • Block/Detect black list
    • Mobile Edge Computing Breakout
    • L2 GRE Breakout
    • VXLAN Breakout
    • VXLAN Encapsulation
    • L2 Switch Like
    • L3 Switch NAT Breakout
  • Reference
    • TW IP
Powered by GitBook
On this page
  1. Case Study

Block Specific Country

block specific country try to establish TCP/UDP connection from WAN to LAN

        WAN
         |
         |P7 
  --------------- 
 |               |
 |   Array NTB   |
 |               |
  --------------- 
         |P6
         |
        LAN
<run>
    <filter id="778">
        <or>
            <find name="country.iso_code" relation="==" content="CN"/>
            <find name="country.iso_code" relation="==" content="RU"/>
        </or>
    </filter>
    <filter id="1" sessionBase="no">
        <and>
            <find name="tcp.flags.syn" relation="==" content="1"/>
            <find name="tcp.flags.ack" relation="==" content="0"/>
        </and>
    </filter>
    <filter id="2" sessionBase="no">
        <and>
            <find name="udp" relation="==" content=""/>
            <find name="session.packet.nth" relation="==" content="1"/>
        </and>
    </filter>
    <chain>
        <in>P6</in>
        <out>P7</out>
    </chain>
    <chain>
        <in>P7</in>
        <fid>F1,F2</fid>
        <next>
            <fid>F778</fid>
            <out>0</out>
            <next type="notmatch">
                <out>P6</out>
            </next>
        </next>
        <next type="notmatch">
            <out>P6</out>
        </next>
    </chain>
</run>
PreviousBlock GmailNextBlock/Detect black list

Last updated 1 year ago