Skip to content

Instantly share code, notes, and snippets.

View beyondszine's full-sized avatar
💭
learning to code :)

Saurabh Shandilya beyondszine

💭
learning to code :)
View GitHub Profile
@beyondszine
beyondszine / ns-inet.sh
Last active December 5, 2018 12:09 — forked from dpino/ns-inet.sh
Setup a network namespace with Internet access using NAT & IP forwarding
#!/usr/bin/env bash
set -x
NS="ns1"
VETH="veth1"
VPEER="vpeer1"
VETH_ADDR="10.200.1.1"
VPEER_ADDR="10.200.1.2"