<?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 Can you use a different Public IP for VIP than the one at deployment in a vSec Azure cluster? in Cloud Firewall</title>
    <link>https://community.checkpoint.com/t5/Cloud-Firewall/Can-you-use-a-different-Public-IP-for-VIP-than-the-one-at/m-p/27824#M3706</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We deployed a new vSec cluster in Azure a few days ago to upgrade our old one.&amp;nbsp; Support said we could use the old public IP addresses so we moved them from the old resource group.&amp;nbsp; They worked fine for the members, but in a failover, the API deletes "cluster-vip" and when it tries to recreate it on the new active member, it tries to find the original public IP at deployment, which has been moved to a different resource group.&amp;nbsp; If I could rename the Public IP for the VIP in Azure, I think everything would be fine. But we cant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on a work around for either renaming an IP in Azure, or how to adjust the config file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a lengthy description what we tried, I am using dummy names:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Original deployment a year ago named "YearAgovSec".&amp;nbsp; Members were named "YearAgovSec1", "YearAgovSec2".&amp;nbsp; Public IPs for members were named "YearAgovSec1", "YearAgovSec2". Public IP for VIP was named "YearAgovSec".&amp;nbsp; Resource group named "YearAgovSec"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New deployment this year named "ThisYearvSec".&amp;nbsp;&amp;nbsp; Members were named "ThisYearvSec1", "ThisYearvSec2".&amp;nbsp; Public IPs for members were named "ThisYearvSec1", "ThisYearvSec2".&amp;nbsp; Public IP for VIP was named "ThisYearvSec".&amp;nbsp; Resource group named "ThisYearvSec"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We moved out the Public IP Address "ThisYearvSec" to another resource group, and moved in "YearAgovSec" Public IP Address into the "ThisYearvSec" resource group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In failover, the routes would get re-written correctly, the "cluster-vip" would get removed from the failing member, then things would stop.&amp;nbsp; The "cluster-vip" would never get added to the active member.&amp;nbsp; If we added it manually, everything worked fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error we would get is:&lt;BR /&gt;RequestException: HTTP/1.1 404 Not Found&lt;BR /&gt;{"error":{"code":"ResourceNotFound","message":"The Resource'Microsoft.Network/publicIPAddresses/ThisYearvSec' under resource group 'ThisYearvSec' was not found."}}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The azure-ha.json has these settings:&lt;BR /&gt;&amp;nbsp; "clusterName": "ThisYearvSec",&lt;BR /&gt;&amp;nbsp; "clusterNetworkInterfaces": {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "eth0": [&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "10.5.1.9",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ThisYearvSec"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We saw in azure_had.py it determines the public IP name with:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public_ip_id = (conf['baseId'] +&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Microsoft.Network/publicIPAddresses/' + conf['clusterName'])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So we changed "ClusterName" in azure-ha.json from "ThisYearvSec" to "YearAgovSec"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we test the config, now we get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The hostname ThisYearvSec2 should be either 'YearAgovSec1' or 'YearAgovSec2'&amp;nbsp; because of this line in azure_ha_test.py:&lt;BR /&gt;conf['hostname'] = conf.get('hostname', socket.gethostname())&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cluster_name = conf['clusterName'].lower()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if conf['hostname'] not in {cluster_name + '1', cluster_name + '2'}:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise Exception('The hostname %s should be either \'%s\' or \'%s\'' % (&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; conf['hostname'], cluster_name + '1', cluster_name + '2'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;At this point, we gave up trying to trick it with the config file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 Jun 2018 06:20:46 GMT</pubDate>
    <dc:creator>Tom_Gunckel</dc:creator>
    <dc:date>2018-06-03T06:20:46Z</dc:date>
    <item>
      <title>Can you use a different Public IP for VIP than the one at deployment in a vSec Azure cluster?</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/Can-you-use-a-different-Public-IP-for-VIP-than-the-one-at/m-p/27824#M3706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We deployed a new vSec cluster in Azure a few days ago to upgrade our old one.&amp;nbsp; Support said we could use the old public IP addresses so we moved them from the old resource group.&amp;nbsp; They worked fine for the members, but in a failover, the API deletes "cluster-vip" and when it tries to recreate it on the new active member, it tries to find the original public IP at deployment, which has been moved to a different resource group.&amp;nbsp; If I could rename the Public IP for the VIP in Azure, I think everything would be fine. But we cant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on a work around for either renaming an IP in Azure, or how to adjust the config file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a lengthy description what we tried, I am using dummy names:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Original deployment a year ago named "YearAgovSec".&amp;nbsp; Members were named "YearAgovSec1", "YearAgovSec2".&amp;nbsp; Public IPs for members were named "YearAgovSec1", "YearAgovSec2". Public IP for VIP was named "YearAgovSec".&amp;nbsp; Resource group named "YearAgovSec"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New deployment this year named "ThisYearvSec".&amp;nbsp;&amp;nbsp; Members were named "ThisYearvSec1", "ThisYearvSec2".&amp;nbsp; Public IPs for members were named "ThisYearvSec1", "ThisYearvSec2".&amp;nbsp; Public IP for VIP was named "ThisYearvSec".&amp;nbsp; Resource group named "ThisYearvSec"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We moved out the Public IP Address "ThisYearvSec" to another resource group, and moved in "YearAgovSec" Public IP Address into the "ThisYearvSec" resource group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In failover, the routes would get re-written correctly, the "cluster-vip" would get removed from the failing member, then things would stop.&amp;nbsp; The "cluster-vip" would never get added to the active member.&amp;nbsp; If we added it manually, everything worked fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error we would get is:&lt;BR /&gt;RequestException: HTTP/1.1 404 Not Found&lt;BR /&gt;{"error":{"code":"ResourceNotFound","message":"The Resource'Microsoft.Network/publicIPAddresses/ThisYearvSec' under resource group 'ThisYearvSec' was not found."}}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The azure-ha.json has these settings:&lt;BR /&gt;&amp;nbsp; "clusterName": "ThisYearvSec",&lt;BR /&gt;&amp;nbsp; "clusterNetworkInterfaces": {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "eth0": [&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "10.5.1.9",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ThisYearvSec"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We saw in azure_had.py it determines the public IP name with:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public_ip_id = (conf['baseId'] +&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Microsoft.Network/publicIPAddresses/' + conf['clusterName'])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So we changed "ClusterName" in azure-ha.json from "ThisYearvSec" to "YearAgovSec"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we test the config, now we get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The hostname ThisYearvSec2 should be either 'YearAgovSec1' or 'YearAgovSec2'&amp;nbsp; because of this line in azure_ha_test.py:&lt;BR /&gt;conf['hostname'] = conf.get('hostname', socket.gethostname())&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cluster_name = conf['clusterName'].lower()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if conf['hostname'] not in {cluster_name + '1', cluster_name + '2'}:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise Exception('The hostname %s should be either \'%s\' or \'%s\'' % (&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; conf['hostname'], cluster_name + '1', cluster_name + '2'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;At this point, we gave up trying to trick it with the config file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jun 2018 06:20:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/Can-you-use-a-different-Public-IP-for-VIP-than-the-one-at/m-p/27824#M3706</guid>
      <dc:creator>Tom_Gunckel</dc:creator>
      <dc:date>2018-06-03T06:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can you use a different Public IP for VIP than the one at deployment in a vSec Azure cluster?</title>
      <link>https://community.checkpoint.com/t5/Cloud-Firewall/Can-you-use-a-different-Public-IP-for-VIP-than-the-one-at/m-p/27825#M3707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We figured it out with trial and error.&amp;nbsp; You need to change this section of the azure-ha.json file to have the name of the public IP address you are using.&amp;nbsp; The example below is using variables from my posted example.&amp;nbsp; If you were to add a different public IP, you would change "YearAgovSec" to the name of your new public IP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;"proxy": "",&lt;BR /&gt;&amp;nbsp; "virtualNetwork": "{YOUR VNET}",&lt;BR /&gt;&amp;nbsp; "clusterName": "ThisYearvSec",&lt;BR /&gt;&amp;nbsp; "clusterNetworkInterfaces": {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "eth0": [&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "{YOUR VIP ETH0 IP ADDRESS}",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "YearAgovSec"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]&lt;BR /&gt;&amp;nbsp; },&lt;BR /&gt;&amp;nbsp; "lbName": "frontend-lb"&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 14:26:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Cloud-Firewall/Can-you-use-a-different-Public-IP-for-VIP-than-the-one-at/m-p/27825#M3707</guid>
      <dc:creator>Tom_Gunckel</dc:creator>
      <dc:date>2018-06-05T14:26:56Z</dc:date>
    </item>
  </channel>
</rss>

