<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: confusion abt tcp flags and tcp mask in signatures in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/confusion-abt-tcp-flags-and-tcp-mask-in-signatures/m-p/626552#M87998</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tcp mask is the relevant bits that you want to check.  Of those that you want to check, the tcp flags are the ones that must be set.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This allows you to ignore whether some bits set or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Dec 2006 14:34:33 GMT</pubDate>
    <dc:creator>mhellman</dc:creator>
    <dc:date>2006-12-20T14:34:33Z</dc:date>
    <item>
      <title>confusion abt tcp flags and tcp mask in signatures</title>
      <link>https://community.cisco.com/t5/network-security/confusion-abt-tcp-flags-and-tcp-mask-in-signatures/m-p/626551#M87997</link>
      <description>&lt;P&gt;hi all can someone pls tell me what is the difference between tcp flags and tcp mask in the signatures. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as far as i understood is that tcp flags are the bits which need to be present in the tcp packet for the signature to match. then why the tcp mask how it uses the tcp masks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am really little confused abt the same. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can someone pls help me out. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sebastan&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2019 10:23:03 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/confusion-abt-tcp-flags-and-tcp-mask-in-signatures/m-p/626551#M87997</guid>
      <dc:creator>sebastan_bach</dc:creator>
      <dc:date>2019-03-10T10:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: confusion abt tcp flags and tcp mask in signatures</title>
      <link>https://community.cisco.com/t5/network-security/confusion-abt-tcp-flags-and-tcp-mask-in-signatures/m-p/626552#M87998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tcp mask is the relevant bits that you want to check.  Of those that you want to check, the tcp flags are the ones that must be set.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This allows you to ignore whether some bits set or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 14:34:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/confusion-abt-tcp-flags-and-tcp-mask-in-signatures/m-p/626552#M87998</guid>
      <dc:creator>mhellman</dc:creator>
      <dc:date>2006-12-20T14:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: confusion abt tcp flags and tcp mask in signatures</title>
      <link>https://community.cisco.com/t5/network-security/confusion-abt-tcp-flags-and-tcp-mask-in-signatures/m-p/626553#M87999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PData AND Mask =? Flags   is the operation being checked.  PData is the data from the packet, bitwise AND with tcp_mask and compare to tcp_flags.  The result is TRUE if the comparison is EQUAL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 19:31:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/confusion-abt-tcp-flags-and-tcp-mask-in-signatures/m-p/626553#M87999</guid>
      <dc:creator>scothrel</dc:creator>
      <dc:date>2006-12-20T19:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: confusion abt tcp flags and tcp mask in signatures</title>
      <link>https://community.cisco.com/t5/network-security/confusion-abt-tcp-flags-and-tcp-mask-in-signatures/m-p/626554#M88000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi u mean to say in the tcp flags are the flags which need to be present in the tcp packet for the signature to be matched. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the mask field are the bits which needs t be checked . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example in the tcp flags say i set syn and fin bit. and in the mask field i only set the fin bit. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now when the tcp packet has both the syn and fin bits will the signature be fired. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or the signature will be fired only if the tcp packet is having the fin bit. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u pls clear my doubt regarding the same. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;waiting for ur reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sebastan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 09:45:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/confusion-abt-tcp-flags-and-tcp-mask-in-signatures/m-p/626554#M88000</guid>
      <dc:creator>sebastan_bach</dc:creator>
      <dc:date>2006-12-21T09:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: confusion abt tcp flags and tcp mask in signatures</title>
      <link>https://community.cisco.com/t5/network-security/confusion-abt-tcp-flags-and-tcp-mask-in-signatures/m-p/626555#M88001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"example in the tcp flags say i set syn and fin bit. and in the mask field i only set the fin bit."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"now when the tcp packet has both the syn and fin bits will the signature be fired."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the signature _might_ fire, but I wonder if you understand the settings?  You essentially said:&lt;/P&gt;&lt;P&gt;"i only care about the fin flag" (mask)&lt;/P&gt;&lt;P&gt;"make sure the syn and fin flags are set" (flags)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on my understanding the tcp flags should always be a subset of the mask. remember, your saying "of these flags (mask), make sure only these are set(flags)". The IPS software does allow you to make the selection though and I'm not sure what it does.  Based on scothrel's earlier response, it should not fire the alarm:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0 0 0 0 0 0 0 1 (mask)&lt;/P&gt;&lt;P&gt;0 0 0 0 0 0 1 1 (pdata)&lt;/P&gt;&lt;P&gt;---------------&lt;/P&gt;&lt;P&gt;0 0 0 0 0 0 0 1&lt;/P&gt;&lt;P&gt;0 0 0 0 0 0 1 1 (flags)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 14:39:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/confusion-abt-tcp-flags-and-tcp-mask-in-signatures/m-p/626555#M88001</guid>
      <dc:creator>mhellman</dc:creator>
      <dc:date>2006-12-21T14:39:04Z</dc:date>
    </item>
  </channel>
</rss>

