Help -OpenVPN of the Freebox

How to customize and extend your OpenVPN installation.
Post Reply
OpenVpn Newbie
Posts: 1
Joined: Thu Feb 08, 2018 9:02 am

Help -OpenVPN of the Freebox

Post by itsrv01 » Thu Feb 08, 2018 9:08 am

We have a problem with OpenVPN of the Freebox.
I tried some script to be able to connect, without success.
Could you tell me how I connected to the OPENVPN VPN from linux (Ubuntu and Debian)

I have 1 single .ovpn file, the script prints the IP address (GatewayAddress) well but does not extract the files.

Convert .ovpn = .crt .pem .key ??

Here is the script I use:

Code: Select all

# make output file

mkdir -p $basedir
mkdir -p $vpnconfigdir

# print Gateway
sed -n 's/remote \([^ ]\+\) [0-9]\+/passerelle: \1/p' $1

# create client config file
awk '/<ca>/{exit} {print}' $1 > $vpnconfigdir/client.ovpn

# output certificate of CA
awk '/<ca>/ {flag=1;next} /<\/ca>/{flag=0} flag {print}' $1 > $vpnconfigdir/ca.crt

# output certificate of client key
awk '/<cert>/ {flag=1;next} /<\/cert>/{flag=0} flag {print}' $1 > $vpnconfigdir/client.crt

# output client key
awk '/<key>/ {flag=1;next} /<\/key>/{flag=0} flag {print}' $1 > $vpnconfigdir/client.key

# remove rights for other
chmod -R o-rwx $vpnconfigdir/*
I thank you in advance .


Post Reply