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