Bypassing a VPN Using Cgroups

Posted on Thu 30 June 2022 in Hackery • Tagged with vpn, cgroups, linux, networking

Changes

2022-08-27

  • Fixed small bug in /usr/local/bin/if-up-novpn script

2022-08-10

  • Added ~/bin/bash-novpn script example.
  • Made /usr/local/bin/if-up-novpn script more robust

Setting up a VPN bypass for applications

You use a VPN and all your traffic gets routed through it. But what if you want some …


Continue reading

Setting a global MAILTO environment variable in Cron

Posted on Wed 27 April 2022 in Sysadmin • Tagged with linux

On Debian/Ubuntu sysetems you can set MAILTO in /etc/environment(nor in /etc/default/cron, nor in systemd unit files with DefaultEnvironment) and have it apply to all of your crontabs. MAILTO(among other Cron "environment" variables) must be set within the crontab itself. This dissapoints.

If there is …


Continue reading