Skip to content

Instantly share code, notes, and snippets.

View activeshadow's full-sized avatar

Bryan Richardson activeshadow

View GitHub Profile
@dpino
dpino / ns-inet.sh
Last active December 21, 2025 14:32
Setup a network namespace with Internet access
#!/usr/bin/env bash
# set -x
if [[ $EUID -ne 0 ]]; then
echo "You must be root to run this script"
exit 1
fi
# Returns all available interfaces, except "lo" and "veth*".