<?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: Connection Persistence API Call? in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Connection-Persistence-API-Call/m-p/98305#M5209</link>
    <description>&lt;P&gt;Thanks, I was able to set the "fwKeepOldConns" param to True and False - but in both cases, the Connection Persistence option didn't move to "Keep all connections".. it is still at "rematch connections".&lt;/P&gt;&lt;P&gt;My expectation is, setting "fwKeelOldConns" to true, should set the point to "Keep all connections". But nothing happens, is this the correct parameter?&lt;/P&gt;</description>
    <pubDate>Tue, 06 Oct 2020 13:39:13 GMT</pubDate>
    <dc:creator>Kevin_AE</dc:creator>
    <dc:date>2020-10-06T13:39:13Z</dc:date>
    <item>
      <title>Connection Persistence API Call?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Connection-Persistence-API-Call/m-p/97704#M5194</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;our Customer would like to keep the Connection Persistence option to "Keep all connections" during the policy push, so that affected connections doesn't have to reconnect.&lt;/P&gt;&lt;P&gt;But to kill disabled/older connections, they would like to do a policy push in the weekend with the "rematch connections"-option.&lt;/P&gt;&lt;P&gt;Installing policy option over the API is no problem, but I dont find an option to update the Connection Persistence Value - is there a way to update this Value over the API to change it to "Rematch Connections" and back to "Keep all connections"? Or do you have better ideas to solve this?&lt;/P&gt;&lt;P&gt;Thanks in advance and best regards&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:04:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Connection-Persistence-API-Call/m-p/97704#M5194</guid>
      <dc:creator>Kevin_AE</dc:creator>
      <dc:date>2020-09-28T12:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Connection Persistence API Call?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Connection-Persistence-API-Call/m-p/97727#M5195</link>
      <description>&lt;P&gt;Unfortunately, there are several settings that don’t have formal API endpoints.&lt;BR /&gt;However, I believe you may be able to change this via the generic-object API.&lt;BR /&gt;This thread should point you in the right direction:&amp;nbsp;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/set-generic-object-help-me-with-arrays-please/m-p/94505" target="_blank"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/set-generic-object-help-me-with-arrays-please/m-p/94505&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:56:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Connection-Persistence-API-Call/m-p/97727#M5195</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-09-28T14:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Connection Persistence API Call?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Connection-Persistence-API-Call/m-p/97893#M5201</link>
      <description>&lt;P&gt;We use this during the initial configuration of new gateways.&lt;/P&gt;&lt;P&gt;$genericsettings = @"&lt;BR /&gt;{&lt;BR /&gt;"uid" : "$gwuid",&lt;BR /&gt;"firewallSetting" : {&lt;BR /&gt;"optimizeDropsSupport" : "True",&lt;BR /&gt;"fwKeepOldConns" : "True"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;"@&lt;/P&gt;&lt;P&gt;&lt;A href="https://1.2.3.4/web_api/set-generic-object" target="_blank"&gt;https://1.2.3.4/web_api/set-generic-object&lt;/A&gt; -Body $genericsettings&lt;/P&gt;&lt;P&gt;Use a show-simple-gateway with { name : "gateway1" } first to get the uid of the gateway in question.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 10:06:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Connection-Persistence-API-Call/m-p/97893#M5201</guid>
      <dc:creator>Sigbjorn</dc:creator>
      <dc:date>2020-09-30T10:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Connection Persistence API Call?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Connection-Persistence-API-Call/m-p/98305#M5209</link>
      <description>&lt;P&gt;Thanks, I was able to set the "fwKeepOldConns" param to True and False - but in both cases, the Connection Persistence option didn't move to "Keep all connections".. it is still at "rematch connections".&lt;/P&gt;&lt;P&gt;My expectation is, setting "fwKeelOldConns" to true, should set the point to "Keep all connections". But nothing happens, is this the correct parameter?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 13:39:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Connection-Persistence-API-Call/m-p/98305#M5209</guid>
      <dc:creator>Kevin_AE</dc:creator>
      <dc:date>2020-10-06T13:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Connection Persistence API Call?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Connection-Persistence-API-Call/m-p/99575#M5250</link>
      <description>&lt;P&gt;Sorry for the late reply, I've only used this to set "Keep all connections", in which case the example above works well.&lt;/P&gt;
&lt;P&gt;To switch between keep all and rematch, you need to set saveDataConns as well.&lt;/P&gt;
&lt;P&gt;This json body is tested and works for me;&lt;/P&gt;
&lt;P&gt;$rematch = @"&lt;BR /&gt;{&lt;BR /&gt;"uid" : "$gwuid",&lt;BR /&gt;"firewallSetting" : {&lt;BR /&gt;"fwKeepOldConns" : "False",&lt;BR /&gt;"saveDataConns" : "False"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;"@&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;$keepall = @"&lt;BR /&gt;{&lt;BR /&gt;"uid" : "$gwuid",&lt;BR /&gt;"firewallSetting" : {&lt;BR /&gt;"fwKeepOldConns" : "True",&lt;BR /&gt;"saveDataConns" : "False"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;"@&lt;/P&gt;
&lt;P&gt;Remember to also call the /publish endpoint after setting the generic settings.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 11:34:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Connection-Persistence-API-Call/m-p/99575#M5250</guid>
      <dc:creator>Sigbjorn</dc:creator>
      <dc:date>2020-10-20T11:34:39Z</dc:date>
    </item>
  </channel>
</rss>

