We use cookies on our website to ensure we provide you with the best experience on our website. By using our website, you agree to the use of cookies for analytics and personalized content.This website uses cookies. More Information
It seems like your browser didn't download the required fonts. Please revise your security settings and try again.
Barracuda NextGen Firewall X

How can I make the VPN Client installed on CentOS 7 establish a connection automatically on boot?

  • Type: Knowledgebase
  • Date changed: 5 months ago
Solution #00007043


Scope:


Barracuda VPN Client for Linux installed on CentOS 7 (may be applicable to other flavors)

Answer:

1. Install and configure the Linux VPN Client in accordance with the TechLibrary.

Installation:

https://techlib.barracuda.com/display/BNACV34/How+to+Install+the+Barracuda+VPN+Client+for+Linux+and+Mac+OS+X

Note: In CentOS, the install directory will be /usr/local/bin, not /usr/sbin as stated in the TechLib. Run 'which barracudavpn' on the CLI to confirm.

Configuration:

https://techlib.barracuda.com/display/BNACV34/How+to+Configure+the+Barracuda+VPN+Client+for+Linux+and+Mac+OS+X

2. Edit the /etc/rc.local file to run the VPN client at boot.
a. If using x.509 certificate authentication, add the line:
/usr/local/bin/barracudavpn -sk <cert password> &

b. If using MSAD authentication, add the line:
/usr/local/bin/barracudavpn -s --login <username> --serverpwd <password> &

c. If you would like to log output for debugging, include the "v" flag and specify the log file, as in the example below (for x.509 authentication):
/usr/local/bin/barracudavpn -svk <cert password> > tmp/barracudavpn.log 2>&1

d. For other options and configuration examples, run 'barracudavpn --help' on the CLI.


Link To This Page:

https://campus.barracuda.com/solution/501600000014E1hAAE