I created this repository to simplify my use of barracuda vpn just with username and password in linux distributions debian based.
The goal is simple, instead of having to enter the username and password every time I want to connect or reconnect to barracuda-vpn, I just enter the vpn
command in the terminal.
One RSA key are created as root and the credentials are stored in a encrypted file using this RSA key.
$ sudo sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
$ sudo apt-get install make
$ git clone [email protected]:lorival/barracuda-vpn-encrypted-automated-scripts.git
The version of the package used here for installing the barracuda-vpn is 5.1.4 from Feb 13, 2020.
If you want a different version, do the following:
- Access the barracuda portal, create a credential and login.
- In the left menu click NAC / VPN Client and Download the Barracuda VPN Client ?.?.? for Linux
- Unzip the downloaded file and move the .deb file to this directory
- Edit the first line of the Makefile, putting the name of the new downloaded file
- Follow the normal installation procedures
$ make install
Your root password will be asked to install it
After the installation the configuration will open automatically:
- Go to option "Configure Client"
- In Authentication select: "User/Pass only"
- In Server Address add your server
- "Save configuration" and "Exit"
$ make credentials user=value pwd=value
$ make test
- Replace value by your credentials
- The test is just connect and disconnect showing the log
$ make zshell-configuration
$ source ~/.zshrc
$ vpn
$ vpn-status
$ vpn-close
Do this step before configure a new release of this project
$ make clean
Remove the lines between the comment and inclusive the comment: # Used to automate barracuda-vpn
$ make show-credentials
$ make help