Skip to content

Commit 7d7e95d

Browse files
committed
doc(readme): create the doc for install, use and uninstall
1 parent 6788979 commit 7d7e95d

File tree

1 file changed

+84
-1
lines changed

1 file changed

+84
-1
lines changed

README.md

Lines changed: 84 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,84 @@
1-
# barracuda-vpn-encrypted-automated-scripts
1+
# Barracuda VPN: encrypted automated scripts
2+
3+
> I created this repository to simplify my use of barracuda vpn by accessing with username and password in linux distributions based on debian.
4+
5+
The goal is simple, instead of having to enter the username and password every time you want to connect or reconnect to barracuda-vpn, just enter the ``vpn`` command in the terminal.
6+
7+
The password is stored in encrypted way and to decrypt you will need your root password.
8+
9+
Instead of memorizing the username and password, you only need to know your root password and only the first time you open a terminal session.
10+
11+
## Prerequisites
12+
13+
### Install *make* and clone this repository
14+
````
15+
$ sudo apt-get install make
16+
$ git clone git@github.com:lorival/barracuda-vpn-encrypted-automated-scripts.git
17+
````
18+
19+
### Barracuda VPN version
20+
The version of the package used here for installing the barracuda-vpn is **5.1.4** from **Feb 13, 2020**.
21+
22+
If you want a different version, do the following:
23+
- Access the [barracuda portal](http://dlportal.barracudanetworks.com/), create a credential and login.
24+
- In the left menu click *NAC / VPN Client* and Download the **Barracuda VPN Client ?.?.? for Linux**
25+
- Unzip the downloaded file and move the .deb file to this directory
26+
- Edit the first line of the Makefile, putting the name of the new downloaded file
27+
- Follow normal installation procedures
28+
29+
## Installation procedures
30+
31+
### 1. Install the barracuda-vpn
32+
````
33+
$ make install
34+
````
35+
36+
### 2. Generate your credential files with a new key
37+
````
38+
$ make credentials user=value pwd=value
39+
$ make test
40+
````
41+
> - Replace *value* by your credentials
42+
> - The root password will be ask to change the owner key to root
43+
44+
### 3. Test the connection
45+
````
46+
$ make test
47+
````
48+
> The test is just connect and disconnect showing the log
49+
50+
### 4. Configure the bash
51+
````
52+
$ make configuration
53+
$ source ~/.zshrc
54+
````
55+
56+
## How to use it
57+
58+
### Connect or reconnect
59+
````
60+
$ vpn
61+
````
62+
> Every new terminal session, you will need to enter your root password for the first time
63+
64+
### Check vpn status or close
65+
````
66+
$ vpn-status
67+
$ vpn-close
68+
````
69+
70+
## Uninstall procedures
71+
72+
### 1. Remove the credential files and key
73+
````
74+
$ make clean
75+
````
76+
> This will remove the credential files and the key
77+
78+
### 2. Edit bash (~/.zshrc)
79+
> Remove the lines between the comment: # Used to automate barracuda-vpn
80+
81+
## Help
82+
````
83+
$ make help
84+
````

0 commit comments

Comments
 (0)