Skip to content

Instantly share code, notes, and snippets.

View danielmdPhantom's full-sized avatar

Daniel Meir Doron danielmdPhantom

View GitHub Profile
@dpino
dpino / ns-inet.sh
Last active April 19, 2024 18:12
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*".