Skip to content

Instantly share code, notes, and snippets.

View patrickmoffitt's full-sized avatar

Patrick Moffitt patrickmoffitt

View GitHub Profile
@dpino
dpino / ns-inet.sh
Last active October 6, 2024 13:07
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*".