Use Makefile for Vpn Automation

Introduction In previous note I’ve showed how to run OpenVPN client inside of the Docker container. Today, we will prepare makefile to automate establishing connectivity. Functions Makefile should: verify if configuration is in place connect to VPN disconnect from VPN configure credentials (if required) Makefile development Let’s start development with simple, empty file: touch makefile Variables declaration A Makefile can handle variables, and I find it useful to declare some of them at the beginning of the file....

April 23, 2023 · 6 min

Diagrams as a Code

Introduction Recently, I wanted to draw a simple network diagram, and I recalled a nice application I know. It can be used to draw cloud diagrams, and it supports main Cloud providers like Azure, AWS, and GCP. Just take a look at the webpage where you can find some nice examples. I’ve prepared a simple Docker image, so you can try the application without installing anything. Usage The Diagrams webpage is full of nice examples and documentation, so go there for further reading....

April 17, 2023 · 2 min

OpenVPN in Docker

Introduction OpenVPN is one of the most popular VPN systems. It runs smoothly on Windows, Linux, and macOS. But sometimes you would like to have the option to access some service (like an HTTP server or SSH), but you don’t want to install new software on your machine. Docker comes to the rescue 🐳 Access service behind VPN In this simple scenario, I would like to access a server (SSH, web, or anything else) located in a private network....

April 17, 2023 · 3 min