Simple Network Tunnel
It's not that great yet.
go run cmd/server/main.go
or
make server
cd build
./server
Add or uncomment line net.ipv4.ip_forward=1
in /etc/sysctl.conf
$ sysctl -p
$ ip addr add 192.168.1.1/24 dev {interface}
$ ip link set dev {interface} up
$ iptables -t nat -A POSTROUTING -j MASQUERADE
go run cmd/client/main.go
or
make client
cd build
./client
$ ip addr add 192.168.1.{2-254}/24 dev {interface}
$ ip link set dev {interface} up
$ ip route add default via 192.168.1.1 dev {interface}