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 September 23, 2024 06:13
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*".