<?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: What does match-by-protocol-signature do? in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/What-does-match-by-protocol-signature-do/m-p/107497#M5471</link>
    <description>&lt;P&gt;So it's entirely separate from the Protocol option for the service?&lt;/P&gt;
&lt;P&gt;What protocol signatures can be matched? Where do we tell the firewall which protocol signature we want to match for a given service object?&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jan 2021 14:42:21 GMT</pubDate>
    <dc:creator>Bob_Zimmerman</dc:creator>
    <dc:date>2021-01-11T14:42:21Z</dc:date>
    <item>
      <title>What does match-by-protocol-signature do?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/What-does-match-by-protocol-signature-do/m-p/107404#M5464</link>
      <description>&lt;P&gt;While building a framework to translate data between Check Point's API and another tool I'm working on, I noticed the "&lt;SPAN&gt;match-by-protocol-signature" property of TCP and UDP services is always false. This is the case even for objects with the protocol inspection set to a non-null value:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;[Expert@LabSC1]# mgmt_cli -r true show services-tcp limit 500 details-level full --format json | jq -c '.objects[]|{name:.name,matchProtocol:."match-by-protocol-signature"}' | grep -v false | wc -l
0
[Expert@LabSC1]# mgmt_cli -r true show services-tcp limit 500 details-level full --format json | jq -c '.objects[]|{name:.name,matchProtocol:."match-by-protocol-signature",protocol:.protocol}'
...
{"name":"Freak2k","matchProtocol":false,"protocol":null}
{"name":"ftp","matchProtocol":false,"protocol":"FTP"}
{"name":"ftp-bidir","matchProtocol":false,"protocol":"FTP-BIDIR"}
{"name":"ftp-pasv","matchProtocol":false,"protocol":"FTP-PASV"}
{"name":"ftp-port","matchProtocol":false,"protocol":"FTP-PORT"}
{"name":"FW1","matchProtocol":false,"protocol":null}
...&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This property does not appear to be related to protocol inspection, so what does it actually&amp;nbsp;&lt;EM&gt;do&lt;/EM&gt;?&lt;/P&gt;
&lt;P&gt;I'm on R80.40 with API v1.6.1, but the property dates back to API v1.1.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jan 2021 19:14:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/What-does-match-by-protocol-signature-do/m-p/107404#M5464</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2021-01-10T19:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: What does match-by-protocol-signature do?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/What-does-match-by-protocol-signature-do/m-p/107412#M5468</link>
      <description>&lt;P&gt;&lt;STRONG class="bold"&gt;Protocol Signature&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;- A unique signature created by Check Point for each protocol and stored on the gateway. The signature identifies the protocol as genuine. Select this option to limit the port to the specified protocol.&lt;/P&gt;
&lt;P&gt;Refer also:&amp;nbsp;&lt;A href="https://community.checkpoint.com/t5/General-Topics/Protocol-Signatures/td-p/54945" target="_blank" rel="noopener"&gt;https://community.checkpoint.com/t5/General-Topics/Protocol-Signatures/td-p/54945&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 03:44:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/What-does-match-by-protocol-signature-do/m-p/107412#M5468</guid>
      <dc:creator>Chris_Atkinson</dc:creator>
      <dc:date>2021-01-11T03:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: What does match-by-protocol-signature do?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/What-does-match-by-protocol-signature-do/m-p/107497#M5471</link>
      <description>&lt;P&gt;So it's entirely separate from the Protocol option for the service?&lt;/P&gt;
&lt;P&gt;What protocol signatures can be matched? Where do we tell the firewall which protocol signature we want to match for a given service object?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 14:42:21 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/What-does-match-by-protocol-signature-do/m-p/107497#M5471</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2021-01-11T14:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: What does match-by-protocol-signature do?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/What-does-match-by-protocol-signature-do/m-p/140634#M6592</link>
      <description>&lt;P&gt;Please see my lengthy post here which should answer all your questions about Protocol Signatures:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.checkpoint.com/t5/Management/Enable-Protocol-Signature-by-default/m-p/139285/highlight/true#M29469" target="_blank"&gt;https://community.checkpoint.com/t5/Management/Enable-Protocol-Signature-by-default/m-p/139285/highlight/true#M29469&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Feb 2022 14:56:18 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/What-does-match-by-protocol-signature-do/m-p/140634#M6592</guid>
      <dc:creator>Timothy_Hall</dc:creator>
      <dc:date>2022-02-05T14:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: What does match-by-protocol-signature do?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/What-does-match-by-protocol-signature-do/m-p/140637#M6593</link>
      <description>&lt;P&gt;That does answer most of them. One big one remains, though:&lt;/P&gt;
&lt;P&gt;How do we tell which service objects have protocol signatures which can be matched? And&amp;nbsp;what happens if the "Match by protocol signature option" is enabled on a service which doesn't have a protocol signature? It looks like all services—even ones created by the user—have this flag in their object definitions, but it sounds like the protocol signatures only actually exist for included objects.&lt;/P&gt;
&lt;P&gt;Just did a little experimenting to find out:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@DallasSA]# mgmt_cli -f json -s session.txt add service-tcp name "TCP_23" port 23 match-by-protocol-signature true
{
  "code" : "generic_err_invalid_parameter",
  "message" : "Invalid parameter for [match-by-protocol-signature]. Matching by protocol signature is not possible without assigning a protocol to the service."
}
[Expert@DallasSA]# mgmt_cli -f json -s session.txt add service-tcp name "TCP_2323" port 2323 protocol telnet match-by-protocol-signature true
{
  "uid" : "db65f535-b0d0-4d97-9906-16a630951559",
  "name" : "TCP_2323",
  "type" : "service-tcp",
  "domain" : {...},
  "port" : "2323",
  "protocol" : "TELNET",
  "match-by-protocol-signature" : true,
...&lt;/LI-CODE&gt;
&lt;P&gt;So this says to me the "Match by protocol signature" field is like extra enforcement of the "protocol" field. Interesting.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Feb 2022 15:19:22 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/What-does-match-by-protocol-signature-do/m-p/140637#M6593</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2022-02-05T15:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: What does match-by-protocol-signature do?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/What-does-match-by-protocol-signature-do/m-p/140640#M6594</link>
      <description>&lt;P&gt;Doesn't seem to be any way in the SmartConsole to find/filter services that have Protocol/Protocol Signature set without manually opening each of them and looking.&amp;nbsp; Probably going to have to be done through the API to get a list of them.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Feb 2022 16:23:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/What-does-match-by-protocol-signature-do/m-p/140640#M6594</guid>
      <dc:creator>Timothy_Hall</dc:creator>
      <dc:date>2022-02-05T16:23:24Z</dc:date>
    </item>
  </channel>
</rss>

