Skip to content

Instantly share code, notes, and snippets.

View PickledDragon's full-sized avatar
🏠
Working from home

Praveen Kottarathil PickledDragon

🏠
Working from home
View GitHub Profile
@ovidiu-ionescu
ovidiu-ionescu / create_network_namespaces.sh
Last active February 15, 2020 20:39
Creates a network namespace and a network connection between that and the current namespace. Can run multiple servers on the same port and all interfaces
#!/bin/bash
if (( $EUID != 0 )); then
echo "Please run this as sudo $0" >&2
exit 1
fi
function create_space {
NS=$1