Skip to content

This script automates the process of connecting to a VPN using OpenFortiVPN on GNU/Linux systems, providing a seamless and efficient way to establish secure connections.

License

Notifications You must be signed in to change notification settings

yanbrasiliano/openfortivpn-gnu-linux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Openfortivpn GNU/Linux

Script to access VPN via openfortivpn on GNU/Linux

Ubuntu and derivatives
# Installl 'openfortivpn'
sudo apt install openfortivpn

Setup openfortivpn(example).

  1. Create a folder called openfortivpn in the ~/Development folder.

  2. Add the start-fortclientvpn.sh and openfortivpn-config files to the openfortivpn folder.

  3. Enter your user and password in the openfortivpn-config file. Example:

username = user
password = passwd
  1. Create an alias to start running it via terminal with the vpn-linux command.

4.1. Go to the .zshrc file (if you use ZSH as your terminal) or the .bashrc file (if you use Bash as your terminal).

ZSH
nano ~/.zshrc
Bash
nano ~/.bashrc

4.2. After accessing the file, create an alias by adding the line below to the end of the file

alias vpn-linux="sh ~/Development/openfortivpn/start-fortclientvpn.sh"

Then run the command below to apply change:

ZSH
source ~/.zshrc
Bash
source ~/.bashrc

5. Now just run the `vpn-linux` command in the terminal and the connection will start.

6. In some cases, it is necessary to remove the following lines:
set-dns = 1
pppd-use-peerdns = 1

About

This script automates the process of connecting to a VPN using OpenFortiVPN on GNU/Linux systems, providing a seamless and efficient way to establish secure connections.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages