Skip to content

Instantly share code, notes, and snippets.

View akruis's full-sized avatar

Anselm Kruis akruis

View GitHub Profile
@akruis
akruis / altnetworking.sh
Last active March 3, 2024 07:06 — forked from level323/altnetworking.sh
Run a command inside a customised networking environment (using cgroups)
#!/bin/bash
# === INFO ===
# altnetworking.sh
# Description: Run the specified application in a custom networking environment.
# Uses cgroups to run process(es) in a network environment of your own choosing (within limits!)
VERSION="0.2.0"
# Author: John Clark
# adapted for cgroups v2 by Anselm Kruis
# Requirements: Debian 11 bullseye