31 lines
1011 B
Markdown
31 lines
1011 B
Markdown
---
|
|
title: Forticlient VPN
|
|
description: Guide on setting up a headless FortiVPN client
|
|
published: true
|
|
date: 2022-04-30T20:10:28.072Z
|
|
tags: forti, vpn
|
|
editor: markdown
|
|
dateCreated: 2021-09-02T08:14:33.492Z
|
|
---
|
|
|
|
# Forticlient VPN
|
|
Connecting to Forti VPNs on Linux is apparently quite easy thanks to [openfortivpn](https://github.com/adrienverge/openfortivpn).
|
|
|
|
To install, run `emerge net-vpn/openfortivpn` on Gentoo, and follow the docs for everything else.
|
|
|
|
## Set up a config:
|
|
|
|
Create `/etc/openfortivpn/[config]` and fill it according to this pattern:
|
|
```
|
|
host = 185.163.148.98
|
|
port = 10443
|
|
username = matanh
|
|
```
|
|
Replace whatever you need, obviously - that one's out of date.
|
|
## Accept certificate
|
|
|
|
Now, try connecting with `openfortivpn -c /etc/openfortivpn/[config]`, which will complain about a missing trusted-cert and spit out the line to add to the config - ex:
|
|
```
|
|
trusted-cert = 32ad6666ce6ee21f9353ca24392fa3a5db179b00540616965aa8767cd8a2583c
|
|
```
|
|
Add this to the config and log on again. Viola! |