Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

firo yang firogh

🎯
Focusing
View GitHub Profile
@firogh
firogh / ns-inet.sh
Created Jun 6, 2020 — forked from dpino/ns-inet.sh
Setup a network namespace with Internet access
View ns-inet.sh
#!/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=()
You can’t perform that action at this time.