Skip to content

Instantly share code, notes, and snippets.

View firogh's full-sized avatar
🎯
Focusing

firo yang firogh

🎯
Focusing
View GitHub Profile
Nietzsche
@firogh
firogh / ns-inet.sh
Created June 6, 2020 09:57 — forked from dpino/ns-inet.sh
Setup a network namespace with Internet access
#!/usr/bin/env bash
# set -x
# Returns all available interfaces, except "lo" and "veth*".
available_interfaces()
{
local ifaces=(`ip li sh | cut -d " " -f 2`)
local ret=()