<?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: How to disconnect remote users at a specific hour in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-disconnect-remote-users-at-a-specific-hour/m-p/157603#M51672</link>
    <description>&lt;P&gt;I'm using the same GP gateway for internal and external users.&lt;/P&gt;</description>
    <pubDate>Mon, 22 May 2017 07:43:41 GMT</pubDate>
    <dc:creator>FassaSRL</dc:creator>
    <dc:date>2017-05-22T07:43:41Z</dc:date>
    <item>
      <title>How to disconnect remote users at a specific hour</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-disconnect-remote-users-at-a-specific-hour/m-p/157361#M51617</link>
      <description>&lt;P&gt;Goodmorning,&lt;/P&gt;&lt;P&gt;I need to disconnect one or more users from Global Protect VPN at a specific hour.&lt;/P&gt;&lt;P&gt;I try to explain, I don't want that after 7pm the remote suppliers can work on my net. I can't use the scheduled policy rules becouse the sessions started before 7pm (for example Remote desktop or ultraVNC) will stay active.&lt;/P&gt;&lt;P&gt;So I have thought to disconnect the users from Global Protect, and i can use the command "&lt;SPAN&gt;request global-protect-gateway client-logout" or API.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But is it possible to create a scheduled script that runs at a specific hour and, for example, from Monday to Friday, to do that?&amp;nbsp;And is it possible to parameterize this script?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I thought to use "show global-protect-gateway current-user" and save in some variables the "Computer Name", "domain", ... and then passing them to "request global-protect-gateway client-logout".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Have I other easier ways to solve my need?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Massimiliano&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 10:13:55 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-disconnect-remote-users-at-a-specific-hour/m-p/157361#M51617</guid>
      <dc:creator>FassaSRL</dc:creator>
      <dc:date>2017-05-19T10:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to disconnect remote users at a specific hour</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-disconnect-remote-users-at-a-specific-hour/m-p/157401#M51627</link>
      <description>&lt;P&gt;I would use API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;https://firewall-ip/api&lt;/P&gt;&lt;P&gt;API &amp;nbsp;&amp;gt; Operational Commands &amp;gt; clear &amp;gt; session &amp;gt; all &amp;gt; filter &amp;gt; source-user&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then you can even use Windows Task Manager and let your favorite browser to open URL below at 7pm that will kill those sessions. Link below does not include API key that you need to generate first and add it to the URL. API key is used to authenticate the request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;https://firewall-ip/api/?type=op&amp;amp;cmd=&amp;lt;clear&amp;gt;&amp;lt;session&amp;gt;&amp;lt;all&amp;gt;&amp;lt;filter&amp;gt;&amp;lt;source-user&amp;gt;&amp;lt;/source-user&amp;gt;&amp;lt;/filter&amp;gt;&amp;lt;/all&amp;gt;&amp;lt;/session&amp;gt;&amp;lt;/clear&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 13:52:05 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-disconnect-remote-users-at-a-specific-hour/m-p/157401#M51627</guid>
      <dc:creator>Raido_Rattameister</dc:creator>
      <dc:date>2017-05-19T13:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to disconnect remote users at a specific hour</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-disconnect-remote-users-at-a-specific-hour/m-p/157460#M51638</link>
      <description>Are you using the gp gw both for internal and external users or do you have seperate gw's?&lt;BR /&gt;</description>
      <pubDate>Fri, 19 May 2017 16:48:45 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-disconnect-remote-users-at-a-specific-hour/m-p/157460#M51638</guid>
      <dc:creator>Remo</dc:creator>
      <dc:date>2017-05-19T16:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to disconnect remote users at a specific hour</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-disconnect-remote-users-at-a-specific-hour/m-p/157603#M51672</link>
      <description>&lt;P&gt;I'm using the same GP gateway for internal and external users.&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 07:43:41 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-disconnect-remote-users-at-a-specific-hour/m-p/157603#M51672</guid>
      <dc:creator>FassaSRL</dc:creator>
      <dc:date>2017-05-22T07:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to disconnect remote users at a specific hour</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-disconnect-remote-users-at-a-specific-hour/m-p/157618#M51678</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;in the "session" I haven't the GP connections so I can only clear the opened session but the user should re-open a new one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 09:51:26 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-disconnect-remote-users-at-a-specific-hour/m-p/157618#M51678</guid>
      <dc:creator>FassaSRL</dc:creator>
      <dc:date>2017-05-22T09:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to disconnect remote users at a specific hour</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-disconnect-remote-users-at-a-specific-hour/m-p/157622#M51680</link>
      <description>&lt;P&gt;As I see you have different possibilities:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;You split your gateways. so you have one for your internal and one for your external users. This way you could simply disconnect ALL users which are connected to the gateway for external users at a specific time while you only allow the access in the security policy to that gateway with a recurring schedule. just make sure that you disconnect the users after the schedule ends&lt;/LI&gt;&lt;LI&gt;Apply a recurring schedule to all securitypolicies for your external users and disconnect the users you need to which are connected to your shared global protect gateway.&lt;/LI&gt;&lt;LI&gt;As &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/15603"&gt;@Raido_Rattameister&lt;/a&gt; proposed clear all the open sessions for the specific users while also adding a schedule to the security policies for the external users&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;In method 1 the users will not be able to open again the VPN connection. In method 2 and 3 the users are able to connect the vpn but will not be able to open the sessions to the internal systems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;@all : How would a sceduled deny/reset rule behave? Would existing sessions be remached to this by schedule activated security policy or will they stay alive even such a rule becomes active?&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 10:09:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-disconnect-remote-users-at-a-specific-hour/m-p/157622#M51680</guid>
      <dc:creator>Remo</dc:creator>
      <dc:date>2017-05-22T10:09:12Z</dc:date>
    </item>
  </channel>
</rss>

