<?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 happens to long-term (long open) connections on a scale in event. in Cloud Firewall</title>
    <link>https://community.checkpoint.com/t5/Cloud-Firewall/What-happens-to-long-term-long-open-connections-on-a-scale-in/m-p/193695#M4319</link>
    <description>&lt;P&gt;That is great info. thanks Bryan!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2023 17:18:28 GMT</pubDate>
    <dc:creator>Don_Paterson</dc:creator>
    <dc:date>2023-09-27T17:18:28Z</dc:date>
    <item>
      <title>What happens to long-term (long open) connections on a scale in event.</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/What-happens-to-long-term-long-open-connections-on-a-scale-in/m-p/193265#M4311</link>
      <description>&lt;P&gt;What happens to long-term (long open) connections on a Scale In event where the connection/s are being handled by the gateway marked for termination, which is then terminated?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked the documentation and it is not clear to me:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what they have in there right now:&lt;/P&gt;&lt;H3&gt;“Scale In&lt;/H3&gt;&lt;P&gt;A scale in event occurs as a result of a decrease of the current load. When a scale in event triggers,&amp;nbsp;Azure&amp;nbsp;Autoscale designates one or more of the&amp;nbsp;gateways&amp;nbsp;as candidates for termination. The&amp;nbsp;External Load Balancer&amp;nbsp;stops forwarding new connections to these&amp;nbsp;gateways, and Autoscale ends them. The&amp;nbsp;Check Point&amp;nbsp;Security Management Server&amp;nbsp;detects that these&amp;nbsp;CloudGuard&amp;nbsp;Network Security&amp;nbsp;Security Gateways&amp;nbsp;are stopped and automatically deletes these&amp;nbsp;gateways&amp;nbsp;from its database.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note -&lt;/STRONG&gt;&amp;nbsp;We recommend that you have at least two&amp;nbsp;Security Gateways&amp;nbsp;for redundancy and availability purposes.”&lt;/P&gt;&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/IaaS/WebAdminGuides/EN/CP_VMSS_for_Azure/Content/Topics-Azure-VMSS/Overview.htm#Scale_In_and_Scale_Out_Events" target="_blank"&gt;https://sc1.checkpoint.com/documents/IaaS/WebAdminGuides/EN/CP_VMSS_for_Azure/Content/Topics-Azure-VMSS/Overview.htm#Scale_In_and_Scale_Out_Events&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I have sent in as feedback:&lt;BR /&gt;“This sentence does not seem to make sense:&lt;/P&gt;&lt;P&gt;" The External Load Balancer stops forwarding new connections to these gateways, and Autoscale ends them. "&lt;/P&gt;&lt;P&gt;It will help to understand the Azure and Check Point behaviour with regards to connections handling during Scale In events and deleted gateways.&lt;/P&gt;&lt;P&gt;One detail missing is handing of long-term connections by the deleted gateway and the connection possibly moving to another gateway where there is no synchronisation in the VMSS group.”&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I wonder what is meant by&amp;nbsp;"Autoscale ends them".&lt;/P&gt;&lt;P&gt;Can't test this now.&lt;/P&gt;&lt;P&gt;Any feedback or shared experience appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Don&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 15:46:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/What-happens-to-long-term-long-open-connections-on-a-scale-in/m-p/193265#M4311</guid>
      <dc:creator>Don_Paterson</dc:creator>
      <dc:date>2023-09-21T15:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: What happens to long-term (long open) connections on a scale in event.</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/What-happens-to-long-term-long-open-connections-on-a-scale-in/m-p/193278#M4313</link>
      <description>&lt;P&gt;The way I read this is: they die because the load balancer won’t forward the packets to a different gateway.&lt;BR /&gt;Even if the load balancer did, we don’t sync state information between gateways in this situation.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 16:27:26 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/What-happens-to-long-term-long-open-connections-on-a-scale-in/m-p/193278#M4313</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-09-21T16:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: What happens to long-term (long open) connections on a scale in event.</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/What-happens-to-long-term-long-open-connections-on-a-scale-in/m-p/193285#M4315</link>
      <description>&lt;P&gt;"&lt;SPAN&gt;we don’t sync state information between gateways in this situation&lt;/SPAN&gt;" - Agreed. Done by design.&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;they die because the load balancer won’t forward the packets to a different gateway.&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;Thoughts:&lt;/P&gt;&lt;P&gt;Azure seems to have some options which I need to look into.&lt;BR /&gt;This one does not seem to be well described. I can't find anything on it in their docs:&lt;BR /&gt;'&lt;SPAN&gt;Apply force delete to scale-in operations'&amp;nbsp; (also see attachment/screenshot)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This one looks interesting but would is work for CloudGuard?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-terminate-notification" target="_blank"&gt;Terminate notification for Azure Virtual Machine Scale Set instances - Azure Virtual Machine Scale Sets | Microsoft Learn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe there is an Azure VMSS best practice or ATRG that I have missed, or maybe they don't exist but they want to &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Nothing CloudGuard in here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.checkpoint.com/results/sk/sk111303" target="_blank"&gt;https://support.checkpoint.com/results/sk/sk111303&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Admin Guide has lots of useful info but the Scale In doesn't seem to have enough details.&lt;BR /&gt;&lt;A href="https://sc1.checkpoint.com/documents/IaaS/WebAdminGuides/EN/CP_VMSS_for_Azure/Content/Topics-Azure-VMSS/Additional-Information.htm" target="_blank"&gt;https://sc1.checkpoint.com/documents/IaaS/WebAdminGuides/EN/CP_VMSS_for_Azure/Content/Topics-Azure-VMSS/Additional-Information.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe the Scale in policy can be configured to satisfy the draining of connections for a limited time.&lt;/P&gt;&lt;P&gt;But it would be good to hear from R&amp;amp;D on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is good info too:&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/architecture/best-practices/auto-scaling" target="_blank"&gt;Autoscaling guidance - Best practices for cloud applications | Microsoft Learn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Don&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 17:47:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/What-happens-to-long-term-long-open-connections-on-a-scale-in/m-p/193285#M4315</guid>
      <dc:creator>Don_Paterson</dc:creator>
      <dc:date>2023-09-21T17:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: What happens to long-term (long open) connections on a scale in event.</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/What-happens-to-long-term-long-open-connections-on-a-scale-in/m-p/193388#M4318</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/18248"&gt;@Don_Paterson&lt;/a&gt;&amp;nbsp;- TCP flows and connection draining are all based on the standard azure load balancer (&lt;STRONG&gt;az lb&lt;/STRONG&gt;) healh probe function. For example, if the az lb health probe that is configured for the backend pool marks a gateway as unhealthy then the default TCP timeout is 60 seconds. UDP flows would immediately move to a healthy gateway.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/load-balancer/load-balancer-custom-probe-overview" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/load-balancer/load-balancer-custom-probe-overview&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;A&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/load-balancer/load-balancer-custom-probe-overview#probe-down-behavior" data-linktype="self-bookmark" target="_blank"&gt;probe down&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;signal always allows TCP flows to continue until &lt;STRONG&gt;idle timeout&lt;/STRONG&gt; or &lt;STRONG&gt;connection closure&lt;/STRONG&gt; in a Standard Load Balancer.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/load-balancer/load-balancer-custom-probe-overview#probe-down-behavior" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/load-balancer/load-balancer-custom-probe-overview#probe-down-behavior&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;In order to ensure a timely response is received, health probes have built-in timeouts. The following are the timeout durations for TCP and HTTP/S probes:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;TCP probe timeout duration: 60 seconds&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;HTTP/S probe timeout duration: 30 seconds (60 seconds for establishing a connection)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Addtional TCP Flow timer information&lt;/STRONG&gt;&lt;/U&gt;:&lt;/P&gt;
&lt;DIV id="tinyMceEditor_29ff7ec471ebb6BryanSmith_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;Azure Load Balancer has a 4 minutes to 100 minutes timeout range for Load Balancer rules, Outbound Rules, and Inbound NAT rules.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;By default, it's set to 4 minutes.&lt;/STRONG&gt; If a period of inactivity is longer than the timeout value, there's no guarantee that the TCP or HTTP session is maintained between the client and your cloud service.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/load-balancer/load-balancer-tcp-reset" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/load-balancer/load-balancer-tcp-reset&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 20:46:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/What-happens-to-long-term-long-open-connections-on-a-scale-in/m-p/193388#M4318</guid>
      <dc:creator>Bryan-Smith</dc:creator>
      <dc:date>2023-09-22T20:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: What happens to long-term (long open) connections on a scale in event.</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/What-happens-to-long-term-long-open-connections-on-a-scale-in/m-p/193695#M4319</link>
      <description>&lt;P&gt;That is great info. thanks Bryan!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 17:18:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/What-happens-to-long-term-long-open-connections-on-a-scale-in/m-p/193695#M4319</guid>
      <dc:creator>Don_Paterson</dc:creator>
      <dc:date>2023-09-27T17:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: What happens to long-term (long open) connections on a scale in event.</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/What-happens-to-long-term-long-open-connections-on-a-scale-in/m-p/198589#M4417</link>
      <description>&lt;P&gt;Adding a note here after feedback from R&amp;amp;D via Gil Frantsus:&lt;/P&gt;&lt;P&gt;"This is the information we received from RnD: The Azure Load Balancer does not support connection draining, which means that the connection will be lost, however, the Azure Application Gateway does support it.&lt;/P&gt;&lt;P&gt;The use of a Gateway Load Balancer is supported and mentioned in the Azure VMSS admin guide.&lt;/P&gt;&lt;P&gt;Refer to &lt;A href="https://support.checkpoint.com/results/sk/sk170304" target="_blank"&gt;sk170304&lt;/A&gt; for instructions on how to enable connection draining within CloudGuard Network Security. I added the SK to the Azure VMSS admin guide.&lt;/P&gt;&lt;P&gt;For Azure Application Gateway with connection draining support refer to &lt;A href="https://learn.microsoft.com/en-us/azure/application-gateway/features" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/application-gateway/features&lt;/A&gt;."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Preview of sk170304:&lt;BR /&gt;"Solution&lt;/P&gt;&lt;DIV&gt;As of Autumn 2020, the Azure network load balancer from Microsoft does not support "connection draining", where the load balancer stops assigning connections to a node (for example, in preparation for maintenance or reboot).&lt;BR /&gt;&lt;BR /&gt;If you would like this feature to be added to the Azure load balancer, contact Microsoft or your Microsoft partner and request it."&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;And gateway commands used during manual drain:&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;"&lt;SPAN&gt;fw tab -t connections -s&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fw ctl get int cloud_balancer_port&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fw ctl set int cloud_balancer_port 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fw tab -t connections -s&lt;/SPAN&gt;"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;As always, refer to the SK for full details and new updates, and TAC for assistance, and of course Microsoft for draining feature where required.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Nov 2023 21:40:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/What-happens-to-long-term-long-open-connections-on-a-scale-in/m-p/198589#M4417</guid>
      <dc:creator>Don_Paterson</dc:creator>
      <dc:date>2023-11-21T21:40:28Z</dc:date>
    </item>
  </channel>
</rss>

