<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Palo Alto Networks on The Network Stack</title>
    <link>https://thenetworkstack.com/tags/palo-alto-networks/</link>
    <description>Recent content in Palo Alto Networks on The Network Stack</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Sat, 12 Aug 2017 18:54:21 +0000</lastBuildDate>
    <atom:link href="https://thenetworkstack.com/tags/palo-alto-networks/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Palo Alto Dynamic Block List and AWS</title>
      <link>https://thenetworkstack.com/palo-alto-dynamic-block-list-and-aws/</link>
      <pubDate>Wed, 28 Jun 2017 04:36:34 +0000</pubDate>
      <guid>https://thenetworkstack.com/palo-alto-dynamic-block-list-and-aws/</guid>
      <description>&lt;p&gt;Palo Alto firewalls have a neat feature called &amp;ldquo;DBL&amp;rdquo; - Dynamic Block List. This feature allows the firewall to grab a list of ip addresses or domains from an http page.  You have to format the web page cleanly (&lt;a href=&#34;https://live.paloaltonetworks.com/t5/Learning-Articles/Working-with-External-Block-List-EBL-Formats-and-Limitations/ta-p/58795&#34;&gt;https://live.paloaltonetworks.com/t5/Learning-Articles/Working-with-External-Block-List-EBL-Formats-and-Limitations/ta-p/58795&lt;/a&gt;), but it allows you to update the web page dynamically, and the firewall will update it&amp;rsquo;s policy accordingly.&lt;/p&gt;
&lt;p&gt;For my use case, we had some new dynamic dev services being tested in AWS, with service ports that we typically don&amp;rsquo;t allow for outbound traffic.  Instead of opening up our security policy to the internet (&lt;em&gt;any&lt;/em&gt; destination), I used a DBL to open up the ports to AWS ip addresses only.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Palo Alto firewalls have a neat feature called &ldquo;DBL&rdquo; - Dynamic Block List. This feature allows the firewall to grab a list of ip addresses or domains from an http page.  You have to format the web page cleanly (<a href="https://live.paloaltonetworks.com/t5/Learning-Articles/Working-with-External-Block-List-EBL-Formats-and-Limitations/ta-p/58795">https://live.paloaltonetworks.com/t5/Learning-Articles/Working-with-External-Block-List-EBL-Formats-and-Limitations/ta-p/58795</a>), but it allows you to update the web page dynamically, and the firewall will update it&rsquo;s policy accordingly.</p>
<p>For my use case, we had some new dynamic dev services being tested in AWS, with service ports that we typically don&rsquo;t allow for outbound traffic.  Instead of opening up our security policy to the internet (<em>any</em> destination), I used a DBL to open up the ports to AWS ip addresses only.</p>
<p>Luckily Amazon publishes their ip addresses here: <a href="https://ip-ranges.amazonaws.com/ip-ranges.json">https://ip-ranges.amazonaws.com/ip-ranges.json</a></p>
<p>I created a quick script that curls the address above, then greps the file and creates a new file with only the ip ranges, so that the palo alto firewall can read the ip ranges successfully.</p>
<pre tabindex="0"><code>#!/bin/bash
dir=/usr/share/nginx/html/dynamiclist

curl https://ip-ranges.amazonaws.com/ip-ranges.json &gt; $dir/aws-ip.json
grep -E -o &#34;([0-9]{1,3}[\.]){3}[0-9]{1,3}/[0-9]{1,2}&#34; $dir/aws-ip.json &gt; $dir/aws-ip.txt
</code></pre><p>As you can probably figure out, I&rsquo;m hosting this file on a nginx server, so the palo alto firewall just needs to read &ldquo;<a href="http://myservername/dynamiclist/aws-ip.txt">http://myservername/dynamiclist/aws-ip.txt</a>&rdquo;. You can put this script it your cron.d directory and have it run as often as you&rsquo;d like!</p>
<p>DBL setup from Palo Alto&rsquo;s support site:<br>
<a href="https://live.paloaltonetworks.com/t5/Configuration-Articles/How-to-Configure-Dynamic-Block-List-DBL-or-External-Block-List/ta-p/53414">https://live.paloaltonetworks.com/t5/Configuration-Articles/How-to-Configure-Dynamic-Block-List-DBL-or-External-Block-List/ta-p/53414</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>Palo Alto Firewall LDAP Failover</title>
      <link>https://thenetworkstack.com/palo-alto-firewall-ldap-failover/</link>
      <pubDate>Mon, 09 Feb 2015 19:14:51 +0000</pubDate>
      <guid>https://thenetworkstack.com/palo-alto-firewall-ldap-failover/</guid>
      <description>&lt;p&gt;With the default LDAP settings on a Palo Alto firewall, failing over from one LDAP server to another may not work correctly.  You need to tune the LDAP timers and retry intervals down to a lower level.  The settings I used are:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Time Limit: 3&lt;/strong&gt;\&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Bind Time Limit: 4&lt;/strong&gt;\&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Retry Interval: 900&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The official doc is found here: &lt;a href=&#34;https://live.paloaltonetworks.com/docs/DOC-7420&#34; title=&#34;https://live.paloaltonetworks.com/docs/DOC-7420&#34;&gt;https://live.paloaltonetworks.com/docs/DOC-7420&lt;/a&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>With the default LDAP settings on a Palo Alto firewall, failing over from one LDAP server to another may not work correctly.  You need to tune the LDAP timers and retry intervals down to a lower level.  The settings I used are:</p>
<p><strong>Time Limit: 3</strong>\</p>
<p><strong>Bind Time Limit: 4</strong>\</p>
<p><strong>Retry Interval: 900</strong></p>
<p>The official doc is found here: <a href="https://live.paloaltonetworks.com/docs/DOC-7420" title="https://live.paloaltonetworks.com/docs/DOC-7420">https://live.paloaltonetworks.com/docs/DOC-7420</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>Palo Alto Firewall HA PAN-OS Upgrade</title>
      <link>https://thenetworkstack.com/palo-alto-firewall-ha-pan-os-upgrade/</link>
      <pubDate>Tue, 25 Nov 2014 20:19:11 +0000</pubDate>
      <guid>https://thenetworkstack.com/palo-alto-firewall-ha-pan-os-upgrade/</guid>
      <description>&lt;p&gt;Below are the steps I used to perform an PAN-OS upgrade from 6.0.4 to 6.0.6 successfully.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;On the active fw (fw1), log into the cli and enter: &lt;code&gt;request high-availability state suspend&lt;/code&gt;.  This will force a failover to the secondary firewall (fw2).  I lost 2 pings during the failover.&lt;/li&gt;
&lt;li&gt;Install the new PAN-OS on fw1, and reboot when requested.&lt;/li&gt;
&lt;li&gt;Once rebooted, log into the CLI and enter: &lt;code&gt;show jobs all&lt;/code&gt; to verify auto commit has completed (it should show FIN OK).  Then log into the web gui and verify the HA state of fw1 is Passive.&lt;/li&gt;
&lt;li&gt;Now, log into fw2 (which is currently the active fw), and force failover back to fw1 with: &lt;code&gt;request high-availability state suspend&lt;/code&gt;. I lost 0 pings during the fail-back.&lt;/li&gt;
&lt;li&gt;Install the new PAN-OS on fw2, and reboot when requested.&lt;/li&gt;
&lt;li&gt;From the web gui of fw1, monitor the HA state and verify fw2 comes back up in Passive mode.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;a href=&#34;https://live.paloaltonetworks.com/docs/DOC-4043&#34;&gt;https://live.paloaltonetworks.com/docs/DOC-4043&lt;/a&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Below are the steps I used to perform an PAN-OS upgrade from 6.0.4 to 6.0.6 successfully.</p>
<ol>
<li>On the active fw (fw1), log into the cli and enter: <code>request high-availability state suspend</code>.  This will force a failover to the secondary firewall (fw2).  I lost 2 pings during the failover.</li>
<li>Install the new PAN-OS on fw1, and reboot when requested.</li>
<li>Once rebooted, log into the CLI and enter: <code>show jobs all</code> to verify auto commit has completed (it should show FIN OK).  Then log into the web gui and verify the HA state of fw1 is Passive.</li>
<li>Now, log into fw2 (which is currently the active fw), and force failover back to fw1 with: <code>request high-availability state suspend</code>. I lost 0 pings during the fail-back.</li>
<li>Install the new PAN-OS on fw2, and reboot when requested.</li>
<li>From the web gui of fw1, monitor the HA state and verify fw2 comes back up in Passive mode.</li>
</ol>
<p><a href="https://live.paloaltonetworks.com/docs/DOC-4043">https://live.paloaltonetworks.com/docs/DOC-4043</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>Palo Alto Firewall HA CLI Commands</title>
      <link>https://thenetworkstack.com/palo-alto-firewall-ha-cli-commands/</link>
      <pubDate>Tue, 25 Nov 2014 18:13:29 +0000</pubDate>
      <guid>https://thenetworkstack.com/palo-alto-firewall-ha-cli-commands/</guid>
      <description>&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;&amp;gt;show high-availability all
&amp;gt;show high-availability state
&amp;gt;show high-availability link-monitoring
&amp;gt;show high-availability path-monitoring
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Configuring High Availability: &lt;a href=&#34;https://live.paloaltonetworks.com/docs/DOC-2926&#34; title=&#34;https://live.paloaltonetworks.com/docs/DOC-2926&#34;&gt;https://live.paloaltonetworks.com/docs/DOC-2926&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After enabling HA, the interfaces on the firewall will switch from using the interface MAC address to a virtual MAC address.  In my case, the Palo Alto updated the MAC address to connected devices, except for the loopback interfaces. I had to clear the arp table of my internet edge routers to update the MAC of the loopbacks (I&amp;rsquo;m terminating GlobalProtect to the loopback interfaces).&lt;/p&gt;</description>
      <content:encoded><![CDATA[<pre tabindex="0"><code>&gt;show high-availability all
&gt;show high-availability state
&gt;show high-availability link-monitoring
&gt;show high-availability path-monitoring
</code></pre><p>Configuring High Availability: <a href="https://live.paloaltonetworks.com/docs/DOC-2926" title="https://live.paloaltonetworks.com/docs/DOC-2926">https://live.paloaltonetworks.com/docs/DOC-2926</a></p>
<p>After enabling HA, the interfaces on the firewall will switch from using the interface MAC address to a virtual MAC address.  In my case, the Palo Alto updated the MAC address to connected devices, except for the loopback interfaces. I had to clear the arp table of my internet edge routers to update the MAC of the loopbacks (I&rsquo;m terminating GlobalProtect to the loopback interfaces).</p>
<p>More information regarding the MAC address change can be found here: <a href="https://live.paloaltonetworks.com/docs/DOC-4144" title="https://live.paloaltonetworks.com/docs/DOC-4144">https://live.paloaltonetworks.com/docs/DOC-4144</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>Palo Alto GlobalProtect VPN Users</title>
      <link>https://thenetworkstack.com/palo-alto-globalprotect-vpn-users/</link>
      <pubDate>Tue, 07 Oct 2014 17:29:06 +0000</pubDate>
      <guid>https://thenetworkstack.com/palo-alto-globalprotect-vpn-users/</guid>
      <description>&lt;p&gt;Two quick cli commands to see who is currently logged in, and who logged in previously:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;show global-protect-gateway current-user
&lt;/code&gt;&lt;/pre&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;show global-protect-gateway previous-user
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;You can also specify the username with each command to see specific results.&lt;/p&gt;
&lt;p&gt;If want want to force a user logout (from my testing, the user will not see a notification they have been logged out):&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;request global-protect-gateway client-logout domain your_domain reason force-logout computer computer_name gateway gateway_name user user_name
&lt;/code&gt;&lt;/pre&gt;</description>
      <content:encoded><![CDATA[<p>Two quick cli commands to see who is currently logged in, and who logged in previously:</p>
<pre tabindex="0"><code>show global-protect-gateway current-user
</code></pre><pre tabindex="0"><code>show global-protect-gateway previous-user
</code></pre><p>You can also specify the username with each command to see specific results.</p>
<p>If want want to force a user logout (from my testing, the user will not see a notification they have been logged out):</p>
<pre tabindex="0"><code>request global-protect-gateway client-logout domain your_domain reason force-logout computer computer_name gateway gateway_name user user_name
</code></pre>]]></content:encoded>
    </item>
    <item>
      <title>Palo Alto Firewall AD Group Mapping</title>
      <link>https://thenetworkstack.com/palo-alto-firewall-ad-group-mapping/</link>
      <pubDate>Mon, 29 Sep 2014 19:53:06 +0000</pubDate>
      <guid>https://thenetworkstack.com/palo-alto-firewall-ad-group-mapping/</guid>
      <description>&lt;p&gt;These commands will help troubleshoot and resolve issues with Active Directory groups on your PAN firewall.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. Shows every AD group added to the PAN firewall:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;show user group list
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;2. Shows the user and IP address mapping (or specific user):&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;show user ip-user-mapping all
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;3. Gives more detailed statistics of the command above:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;show user group-mapping state all
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;4. Shows the user members of the group specified:&lt;/strong&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;show user group name &amp;#34;group_name&amp;#34;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;5. Re-pulls the user-to-group mapping from AD:&lt;/strong&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>These commands will help troubleshoot and resolve issues with Active Directory groups on your PAN firewall.</p>
<p><strong>1. Shows every AD group added to the PAN firewall:</strong></p>
<pre tabindex="0"><code>show user group list
</code></pre><p><strong>2. Shows the user and IP address mapping (or specific user):</strong></p>
<pre tabindex="0"><code>show user ip-user-mapping all
</code></pre><p><strong>3. Gives more detailed statistics of the command above:</strong></p>
<pre tabindex="0"><code>show user group-mapping state all
</code></pre><p><strong>4. Shows the user members of the group specified:</strong></p>
<pre tabindex="0"><code>show user group name &#34;group_name&#34;
</code></pre><p><strong>5. Re-pulls the user-to-group mapping from AD:</strong></p>
<pre tabindex="0"><code>debug user-id reset group-mapping all
</code></pre><p><strong>6. Refreshes all user-to-IP mappings:</strong></p>
<pre tabindex="0"><code>debug user-id refresh user-id agent all
</code></pre><p><strong>7. Restarts the user-id service (this command is usually not needed):</strong></p>
<pre tabindex="0"><code>debug software restart user-id
</code></pre>]]></content:encoded>
    </item>
  </channel>
</rss>
