<?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: Monitor number of third party VPN connections using the API in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/monitor-number-of-third-party-vpn-connections-using-the-api/m-p/5433305#M5390</link>
    <description>&lt;P&gt;Oh! I just realized, you can match the returned users' IPv4 address against your client VPN address range! That'll tell you for sure if they're local or remote. &lt;/P&gt;</description>
    <pubDate>Fri, 20 Mar 2020 15:51:15 GMT</pubDate>
    <dc:creator>jdsilva</dc:creator>
    <dc:date>2020-03-20T15:51:15Z</dc:date>
    <item>
      <title>Monitor number of third party VPN connections using the API</title>
      <link>https://community.cisco.com/t5/network-platform-api/monitor-number-of-third-party-vpn-connections-using-the-api/m-p/5433302#M5387</link>
      <description>&lt;P&gt;We currently have a requirement (with the new COVID 19 working from home strategies) to be able to monitor client vpn connections - the originating machine name, calling address, connection time, duration of connection, data sent/received and endpoint connected to etc throughout our organisation.  Is this possible through the API or would we have to employ a different strategy to understand the loads/patterns going through the system?  Thanks in advance for any help with this.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 14:24:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/monitor-number-of-third-party-vpn-connections-using-the-api/m-p/5433302#M5387</guid>
      <dc:creator>Paul_Jefferies</dc:creator>
      <dc:date>2020-03-20T14:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor number of third party VPN connections using the API</title>
      <link>https://community.cisco.com/t5/network-platform-api/monitor-number-of-third-party-vpn-connections-using-the-api/m-p/5433303#M5388</link>
      <description>&lt;P&gt;Hey Paul, thanks for writing in!&lt;/P&gt;&lt;P&gt;All API calls that we've developed so far will be listed on your dashboard under Help &amp;gt; API Docs. Doing a quick check myself it looks like one call, "Return the firewall rules for an organization's site-to-site VPN", comes as close as possible. That said, I haven't run the call myself and it likely only applies to AutoVPN settings. You can give this a try and see what you get. If it doesn't return any useful information you'll have to consider other monitoring tools for these specific connections. Good luck!&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 15:05:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/monitor-number-of-third-party-vpn-connections-using-the-api/m-p/5433303#M5388</guid>
      <dc:creator>phcoburn</dc:creator>
      <dc:date>2020-03-20T15:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor number of third party VPN connections using the API</title>
      <link>https://community.cisco.com/t5/network-platform-api/monitor-number-of-third-party-vpn-connections-using-the-api/m-p/5433304#M5389</link>
      <description>&lt;P&gt;&lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/39096"&gt;@Paul_Jefferies&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;The closest thing I see is this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.meraki.com/api_docs/v0#list-the-clients-that-have-used-this-network-in-the-timespan" target="_blank" rel="noopener nofollow noreferrer"&gt;https://api.meraki.com/api_docs/v0#list-the-clients-that-have-used-this-network-in-the-timespan&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But when I just tried pulling the data from there it would seem that there's no specific field that identifies the client as a VPN client, even though this same data in the Dashboard does show a VPN icon beside the user... So that's lame. &lt;/P&gt;&lt;P&gt;You might still be able to use this endpoint if you're not doing any other authentication on your network. If you're not, then the "user" field will always be blank for non-VPN users, and VPN users will have the user field populated. &lt;/P&gt;&lt;P&gt;If you can use that to get all the VPN users then you can hit this endpoint:&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.meraki.com/api_docs/v0#return-the-clients-daily-usage-history" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.meraki.com/api_docs/v0#return-the-clients-daily-usage-history&lt;/A&gt;&lt;/P&gt;&lt;P&gt;to get usage data.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 15:31:14 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/monitor-number-of-third-party-vpn-connections-using-the-api/m-p/5433304#M5389</guid>
      <dc:creator>jdsilva</dc:creator>
      <dc:date>2020-03-20T15:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor number of third party VPN connections using the API</title>
      <link>https://community.cisco.com/t5/network-platform-api/monitor-number-of-third-party-vpn-connections-using-the-api/m-p/5433305#M5390</link>
      <description>&lt;P&gt;Oh! I just realized, you can match the returned users' IPv4 address against your client VPN address range! That'll tell you for sure if they're local or remote. &lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 15:51:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/monitor-number-of-third-party-vpn-connections-using-the-api/m-p/5433305#M5390</guid>
      <dc:creator>jdsilva</dc:creator>
      <dc:date>2020-03-20T15:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor number of third party VPN connections using the API</title>
      <link>https://community.cisco.com/t5/network-platform-api/monitor-number-of-third-party-vpn-connections-using-the-api/m-p/5433306#M5391</link>
      <description>&lt;P&gt;If you have this kind of requirement you should use RADIUS for authentication.  It provides for this kind of auditing information.&lt;/P&gt;&lt;P&gt;If you use NPS on Windows server (a RADIUS server) you can then also use excellent tools like ADAudit Plus.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.manageengine.com/products/active-directory-audit/active-directory-auditing-solutions.html" target="_self" rel="nofollow noopener noreferrer"&gt;https://www.manageengine.com/products/active-directory-audit/active-directory-auditing-solutions.html&lt;/A&gt; &lt;/P&gt;&lt;P&gt;This will chain together all the events and tell you stuff like the person attached via VPN, and then authenticated to a specific server, etc.&lt;/P&gt;&lt;P&gt;It also does anomaly detection.  For example, it attempts people repeatedly trying to authenticate using a privileged account and failing (aka brute force attack).&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 19:29:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/monitor-number-of-third-party-vpn-connections-using-the-api/m-p/5433306#M5391</guid>
      <dc:creator>Philip D'Ath</dc:creator>
      <dc:date>2020-03-20T19:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor number of third party VPN connections using the API</title>
      <link>https://community.cisco.com/t5/network-platform-api/monitor-number-of-third-party-vpn-connections-using-the-api/m-p/5433307#M5392</link>
      <description>&lt;P&gt;Some of the data that you're looking for can be pulled with the event log API endpoint. As you can see in the sample response that I got from my own MX we get a lot of data about the specific Client VPN connection. I'm using Systems Manager sentry VPN to connect which is why the user_id is a Meraki.com email. &lt;/P&gt;&lt;P&gt;For your example we are going to only be looking for two specific event types:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;client_vpn_connect&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;client_vpn_disconnect&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The full URL will look something like this. This was created by Postman (download the &lt;A href="http://postman.meraki.com/" target="_blank" rel="noopener nofollow noreferrer"&gt;Postman collection&lt;/A&gt;). I know the includedEventTypes look odd but it's the best way to do it. &lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;https://api.meraki.com/api/v0/networks/&lt;/SPAN&gt;&lt;SPAN class="resolvedVariable"&gt;&lt;SPAN&gt;{{networkId}}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;/events/?perPage=3&amp;amp;productType=appliance&amp;amp;includedEventTypes[]=client_vpn_connect&amp;amp;includedEventTypes[]=client_vpn_disconnect&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screen Shot 2020-03-21 at 10.21.43 AM.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/262266i4AE0C985501A1C92/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The output:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;{&lt;BR /&gt;"message": null,&lt;BR /&gt;"pageStartAt": "2020-02-21T18:49:30.000000Z",&lt;BR /&gt;"pageEndAt": "2020-03-21T17:49:30.156563Z",&lt;BR /&gt;"events": [&lt;BR /&gt;{&lt;BR /&gt;"occurredAt": "2020-03-21T17:48:56.583000Z",&lt;BR /&gt;"networkId": "L_60535",&lt;BR /&gt;"type": "client_vpn_disconnect",&lt;BR /&gt;"description": "VPN client disconnected",&lt;BR /&gt;"clientId": "kc2dddd",&lt;BR /&gt;"clientDescription": "03:5e:d6:c1:b2:a3",&lt;BR /&gt;"deviceSerial": "Q2KN-ZXYW-RYMS",&lt;BR /&gt;"deviceName": "myMX",&lt;BR /&gt;"eventData": {&lt;BR /&gt;"local_ip": "172.17.8.64",&lt;BR /&gt;"user_id": "sm_6655559290@meraki.com",&lt;BR /&gt;"remote_ip": "166.255.249.20"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"occurredAt": "2020-03-21T17:48:02.830001Z",&lt;BR /&gt;"networkId": "L_60535",&lt;BR /&gt;"type": "client_vpn_connect",&lt;BR /&gt;"description": "VPN client connected",&lt;BR /&gt;"clientId": "kc2dddd",&lt;BR /&gt;"clientDescription": "03:5e:d6:c1:b2:a3",&lt;BR /&gt;"deviceSerial": "Q2KN-ZXYW-RYMS",&lt;BR /&gt;"deviceName": "myMX",&lt;BR /&gt;"eventData": {&lt;BR /&gt;"local_ip": "172.17.8.64",&lt;BR /&gt;"user_id": "sm_6655559290@meraki.com",&lt;BR /&gt;"remote_ip": "166.255.249.20"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Another great resource you might also want to check out: &lt;A href="https://cs.co/meraki_tools" target="_self" rel="nofollow noopener noreferrer"&gt;cs.co/meraki_tools&lt;/A&gt;, it's a &lt;A href="https://community.meraki.com/t5/Developers-APIs/Meraki-Tools-for-Google-Sheets-add-on/m-p/50838/highlight/true#M1498" target="_self"&gt;google sheet integration&lt;/A&gt; with the API all done in your browser. It has a great event log viewer where you can filter for VPN client disconnected and VPN client connected to have the data populated into rows and columns. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-03-21 at 11.03.28 AM.png" style="width: 203px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/262267i45C5185D6983419D/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-03-21 at 11.08.15 AM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/262269iF2B9EFCB584A7A23/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Mar 2020 18:12:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/monitor-number-of-third-party-vpn-connections-using-the-api/m-p/5433307#M5392</guid>
      <dc:creator>cfn</dc:creator>
      <dc:date>2020-03-21T18:12:26Z</dc:date>
    </item>
  </channel>
</rss>

