[Synology] Auto connect VPN at startup

The built-in VPN client of Synology DSM 6 is excellent, but it lacks one key feature: being able to connect the VPN automatically after a reboot. Prerequisite: 1. You need to have SSH enabled on the Synology 2. You need basic knowledge of Unix (sudo, cat, vi, chmod, ln -s)…

READ MORE

[Linux] daemon() considered harmful

I'm currently writing a Linux program that is supposed to run in the background. When it was time to implement the --daemonize, I look at the current options and I was quite surprised to learn that daemon() or fork() are not the best way to write a daemon nowadays. Indeed,…

READ MORE

[Linux] LXC container: from privileged to unprivileged

In a previous article, I showed how to preserve the integrity of your Linux machine by installing unfriendly software in a LXC container. The container was a "privileged" container, meaning that the user ids in the container maps to the user ids of the host. This can easily be confirmed…

READ MORE