https://github.com/yanbrasiliano/openfortivpn-gnu-linux
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.
https://github.com/yanbrasiliano/openfortivpn-gnu-linux
gnu-linux openfortivpn shell-script
Last synced: 8 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/yanbrasiliano/openfortivpn-gnu-linux
- Owner: yanbrasiliano
- License: gpl-3.0
- Created: 2022-11-30T11:57:04.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-30T12:16:41.000Z (almost 3 years ago)
- Last Synced: 2024-12-28T17:31:48.244Z (10 months ago)
- Topics: gnu-linux, openfortivpn, shell-script
- Language: Shell
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Openfortivpn GNU/Linux
Script to access VPN via openfortivpn on GNU/Linux##### Ubuntu and derivatives
```shell
# 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
> ```4. 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
> ```shell
> nano ~/.zshrc
> ```
>
> ##### Bash
> ```shell
> nano ~/.bashrc
> ```
>
> 4.2. After accessing the file, create an alias by adding the line below to the end of the file
>
> ```shell
> alias vpn-linux="sh ~/Development/openfortivpn/start-fortclientvpn.sh"
> ```
>
> Then run the command below to apply change:
>
> ##### ZSH
> ```shell
> source ~/.zshrc
> ```
>
> ##### Bash
> ```shell
> 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:> ```shell
> set-dns = 1
>pppd-use-peerdns = 1
> ```