<?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: dynamic access policy using &amp;quot;Identity Awareness&amp;quot; infrastructure in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/dynamic-access-policy-using-quot-Identity-Awareness-quot/m-p/2763#M189</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since my initial comment, &lt;A href="https://community.checkpoint.com/migrated-users/43467"&gt;Dana Traversie&lt;/A&gt;​ has posted the following information about the git library on Exchange point.&lt;BR /&gt;&lt;A href="https://community.checkpoint.com/docs/DOC-1945"&gt;Check Point Code Sample Template [1]&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Oct 2016 18:27:01 GMT</pubDate>
    <dc:creator>Quinn_Yost</dc:creator>
    <dc:date>2016-10-28T18:27:01Z</dc:date>
    <item>
      <title>dynamic access policy using "Identity Awareness" infrastructure</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/dynamic-access-policy-using-quot-Identity-Awareness-quot/m-p/2761#M187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to accomplish the following;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Build a script that will poll a DNS server for a domain (&lt;A href="http://www.example.com/"&gt;www.example.com&lt;/A&gt; or microsoft.com)&lt;/P&gt;&lt;P&gt;And then use the response (host/user object) of the DNS server to update the security gateway firewall policy.&lt;/P&gt;&lt;P&gt;Preferrably I would like to give the ‘host/user object’ a timeout settings so it will dissapear from the policy automatically.&lt;/P&gt;&lt;P&gt;In order to accomplish the timeout feature my idea was to use the Identity Awareness functionality (the same infrastructure used when integrating with Active Directory and VMWare NSX).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main reason for doing this is to build a dynamic policy based on DNS. So the firewall policy is periodically updated with the latest ip-addresses retreived from the DNS server.&lt;/P&gt;&lt;P&gt;I get quite some customers asking a more dynamic firewall policy. Our current domain objects are not suitable for this. And the new R80.10 feature will not provide this as well (as far as I understand now)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps the above can be used to accomplish this.&lt;/P&gt;&lt;P&gt;Is this possible using R80 and the REST API’s?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've seen a "R80 dynamic DNS rule auto update" script. But I don't think this is using timeout settings and is only for 1 host object (ip-addres)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 06:38:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/dynamic-access-policy-using-quot-Identity-Awareness-quot/m-p/2761#M187</guid>
      <dc:creator>Hans_van_den_Bo</dc:creator>
      <dc:date>2016-10-20T06:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic access policy using "Identity Awareness" infrastructure</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/dynamic-access-policy-using-quot-Identity-Awareness-quot/m-p/2762#M188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're certainly on the right track.&amp;nbsp;&amp;nbsp;&amp;nbsp; I have a code snippet from a CheckPoint rep that may get you closer to what you're looking for.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;# Do the work&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;url="&lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.checkpoint.com/" rel="nofollow"&gt;https://&lt;/A&gt;&lt;SPAN&gt;"+fw_ip+"/_IA_MU_Agent/idasdk/add-identity"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;print url&lt;/P&gt;&lt;P&gt;headers = {'Content-Type':'application/json'}&lt;/P&gt;&lt;P&gt;req=requests.post(url,json=object_list,headers=headers,verify=False)&lt;/P&gt;&lt;P&gt;print json.dumps(req.text,indent=4)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Similarly, the code also includes in a cleanup routine:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN&gt;url="&lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.checkpoint.com/" rel="nofollow"&gt;https://&lt;/A&gt;&lt;SPAN&gt;"+fw_ip+"/_IA_MU_Agent/idasdk/delete-identity"&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There also appears to be a git repository that was working on pulling identity from several cloud providers and using the idaapi (look at checkpoint.py) to update the gateways.&lt;BR /&gt;&lt;A href="https://github.com/dana-at-cp/cpcloud" title="https://github.com/dana-at-cp/cpcloud"&gt;GitHub - dana-at-cp/cpcloud: cpcloud is a convenience library, written in Python, that is useful for querying instance i…&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2016 17:42:12 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/dynamic-access-policy-using-quot-Identity-Awareness-quot/m-p/2762#M188</guid>
      <dc:creator>Quinn_Yost</dc:creator>
      <dc:date>2016-10-25T17:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic access policy using "Identity Awareness" infrastructure</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/dynamic-access-policy-using-quot-Identity-Awareness-quot/m-p/2763#M189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since my initial comment, &lt;A href="https://community.checkpoint.com/migrated-users/43467"&gt;Dana Traversie&lt;/A&gt;​ has posted the following information about the git library on Exchange point.&lt;BR /&gt;&lt;A href="https://community.checkpoint.com/docs/DOC-1945"&gt;Check Point Code Sample Template [1]&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 18:27:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/dynamic-access-policy-using-quot-Identity-Awareness-quot/m-p/2763#M189</guid>
      <dc:creator>Quinn_Yost</dc:creator>
      <dc:date>2016-10-28T18:27:01Z</dc:date>
    </item>
  </channel>
</rss>

