Skip to content

Automates config provisioning of Palo Alto Networks - Terminal Services Agents in a highly scalable Citrix environment

License

Notifications You must be signed in to change notification settings

nabbi/pan-ts-agent-discovery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PAN TS Agent Discovery

Automation routines for provisioning Palo Alto Networks Terminal Services Agents into Panorama from dynamically deployed Citrix XenApp "golden" images.

traffic flows

discover.tcl

Performs network probing to "discover" which servers have the PAN Terminal Services Agent running

  • icmp ping sweep subnets for alive servers
  • openssl client socket connects to confirm presence of TSAgent certificate
  • reverse ddns lookup ip address for constructing object and hostname
  • Panorama running configurations are checked if the discovered agents are new, or skipped if already defined

Changes are committed and pushed to defined template stacks

purge.tcl

Removes stale not-connected PAN TS Agents from Panorama

  • Retrieve idle agents from an active firewall member
  • confirms again with an openssl tls connect that agent is unreachable
  • removes config from panorama template

Changes are committed and pushed to defined template stacks

configuration

Create your local inc/config.tcl file.

crontab

I run the crontab discovery hourly and purge daily (after the overnight server reboot maintenance window).

Use the provided logrotate to manage the logs files this generates.

Install

See INSTALL for more hints on setting up your environment, a Dockerfile exists now too.

About

Automates config provisioning of Palo Alto Networks - Terminal Services Agents in a highly scalable Citrix environment

Topics

Resources

License

Stars

Watchers

Forks