cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Who rated this post

PAN-GPLimiter: Limit Concurrent GlobalProtect Sessions/Connections Per Unique User

L2 Linker


PAN-GPLimiter: Limit Concurrent GlobalProtect Sessions/Connections Per Unique User

 

Hi All,

 

I would like to introduce my Go program for limiting concurrent remote user logins in a single GP Gateway on a PAN-OS Firewall.
(Keywords: Limit the maximum number of simultaneous GlobalProtect sessions/connections per unique user.)

 

PAN-GPLimiter [ https://github.com/enginy88/PAN-GPLimiter ]

 

It’s incredibly easy to use, with no prerequisites, dependencies, or installation required, unlike the former initiatives. The project includes pre-compiled ready-to-go binary images for Linux, Windows and MacOS under the releases section. All usage information including explanations of the settings are documented.

 

This project was created in 2021 and has undergone several code updates since then. Although the entire project and its code have been open-sourced from the beginning, I hadn't publicly announced it before to avoid any potential issues in its early stages. After being used by select clients for 3 years without any issues, I now consider it quite stable. So, it's the perfect time to share it with everyone!

 

I am aware of some other early attempts to address this issue, but you can read the full story below or more on the GitHub page as well.

 

What's the motivation?

 

This one is maybe the most ever wanted feature request of Global Protect for decades! (FR4603-Concurrent Session Limiting) After tons of FR votes, endless requests from customers, lots of reddit messages asks for workarounds, people who are in charge don't have in the same opinion with the technical guys who are on the field as they haven't green lighted for developers to implement this super easy feature for years.

 

Finally, I ran out of hope and couldn't remain more indifferent to it. So this forces me to create my own home-brewed solution and I give myself the go-ahead.

 

A Brief History:

 

Once I started to implement this program, there was only a PowerShell script dating from 2018. I haven't tried it by myself but many ones couldn't make it run for some reason. (Or it really doesn't run at all!) Assuming it works, it's also OS (Windows) dependent, inefficient, couldn't handle edge-cases, lacks some features, etc... But besides that, it did its job as it inspired me and led the way to me!

 

After I created this program, I've found that someone else also created a Python script in 2020. I was surprised when faced with that since I didn't realize there was such an attempt at all. Honestly if I had known about it, I may never have started at first. You can also check this work since it provides some different features than this one.

 

Let me know if you need further adjustments. All responses and feedback are welcome. Enjoy!

 

Disclaimer: Even though I am an official Professional Services Consultant and Technical Trainer, this is my personal project, which means it is not officially under support or warranty of Palo Alto Networks. Use at your own risk.

Who rated this post