This gist
give all the steps in order to build a VPN (OpenVPN) network with server and clients (automatic generation for clients certificates). 😀
- Server configuration
- Clients configuration
- Security
- Generate automatic certificates for clients
This gist
give all the steps in order to build a VPN (OpenVPN) network with server and clients (automatic generation for clients certificates). 😀
# vim: syntax=nginx | |
server { | |
listen 80; | |
server_name example.com www.example.com; | |
return 301 https://$server_name$request_uri; | |
} | |
server { | |
listen 443 ssl; | |
listen [::]:443 ssl; |
#! /usr/bin/env bash | |
user_list=($(who | grep -E "\(:[0-9](\.[0-9])*\)" | awk '{print $1 "@" $NF}' | sort -u)) | |
for user in $user_list; do | |
username=${user%@*} | |
display=${user#*@} | |
dbus=unix:path=/run/user/$(id -u $username)/bus | |
sudo -u $username DISPLAY=${display:1:-1} \ |
My main development workstation is a Windows 10 machine, so we'll approach this from that viewpoint.
Recently, Google Chrome started giving me a warning when I open a site that uses https and self-signed certificate on my local development machine due to some SSL certificate issues like the one below:
#!/bin/sh | |
docker images --format '{{.Size}}\t{{.Repository}}\t{{.Tag}}\t{{.ID}}' | sed 's/ //' | sort -h -r | column -t |
Collection de badges de licence pour le fichier README de vos projets. Copiez-collez facilement le code dessous les badges dans vos fichier au format Markdown.
Commentez ce gist ou contactez le créateur du gist original via un commentaire ou via courriel ([email protected])
# Upload | |
rsync -av -e "ssh -A JUMP_HOST ssh" FILE_TO_SEND DEST_HOST:/home/gareth/ | |
# Download | |
rsync -av -e "ssh -A JUMP_HOST ssh" DEST_HOST:~/FILE_TO_DOWNLOAD ~/Downloads/ |