- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
12-05-2020 10:17 PM - edited 12-05-2020 10:19 PM
Hi everyone!
I was asked to use Python to automate processes that download files from multiple servers. In order to connect to the servers, I must connect to the Global Protect VPN first. That said, in order to automate the process, I must also automate the VPN connection/disconnection. I tried to search for information about how to automate the GP VPN connection in Python but couldn't find any helpful posts. Could anyone please help with it? Thank you!
12-07-2020 07:04 PM
Hello there, since you are able to use linux and openconnect, maybe you can add inside your script a command line like:
openconnect --protocol=gp -u user -p password host:port
Best regards.
02-25-2021 01:56 AM - edited 02-25-2021 01:57 AM
@IbestSec Thanks. Could you please elaborate the solution? For example, is the openconnect a module needed to be installed? If so, could you please provide the link for the library? I couldn't find it.
Thank you again for the help!
02-25-2021 01:57 AM
@jimzam Thanks. Could you please elaborate the solution? Not sure what I need to do in order to script network manager.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!