Skip to content

Instantly share code, notes, and snippets.

View nlacourte's full-sized avatar

Nicolas LACOURTE nlacourte

  • dotinfra
  • Paris
View GitHub Profile
@NicolasEhrhardt
NicolasEhrhardt / extractinfo.sh
Last active March 30, 2022 00:11
{OpenVPN, Freebox, Ubuntu} Script de reformatage du fichier de configuarion
#/bin/bash
# make output file
basedir=~/.openvpn
vpnconfigdir=$basedir/$2
mkdir -p $basedir
mkdir -p $vpnconfigdir
# print Gateway
sed -n 's/remote \([^ ]\+\) [0-9]\+/passerelle: \1/p' $1