Please refer to previous revisions if you know what to do.
The patch proposed was merged into kernel in 5.8 release, but no longer working as of linux 5.11
#!/bin/bash | |
# Uncomment the following line to debug the script: | |
#set -x | |
##################################################################################### | |
# fuckForticlient.sh | |
# | |
# Script to authenticate against Fortinet SAML servers using Firefox and | |
# openfortivpn. This replaces Forticlient for GNU/Linux completely. | |
# Because openfortivpn does not support SAML login (yet), this script uses Firefox | |
# to authenticate, grabs SVPNCOOKIE and then calls openfortivpn to setup |
install packages first:
yay -S xl2tpd strongswan networkmanager-l2tp
ref: https://wiki.archlinux.org/index.php/Openswan_L2TP/IPsec_VPN_client_setup
/* | |
* A simple example of json string parsing with json-c. | |
* | |
* clang -Wall -g -I/usr/include/json-c/ -o json_parser json_parser.c -ljson-c | |
*/ | |
#include <json.h> | |
#include <stdio.h> | |
int main() { | |
struct json_object *jobj; |