summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/sample/wg_tunnel/README
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2020-01-28 18:44:38 +0000
committerMikael Magnusson <mikma@users.sourceforge.net>2020-03-17 20:06:04 +0100
commit046476592c212cf99bd798d3de586fe0478d9700 (patch)
treeb66028886a9e7d91e45760b06b3d5003561efb1d /pkg/tcpip/sample/wg_tunnel/README
parent6397414f52df7d224fb4bf05024715f3b8f88c25 (diff)
WIP add wg tunnel
Diffstat (limited to 'pkg/tcpip/sample/wg_tunnel/README')
-rw-r--r--pkg/tcpip/sample/wg_tunnel/README11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkg/tcpip/sample/wg_tunnel/README b/pkg/tcpip/sample/wg_tunnel/README
new file mode 100644
index 000000000..ee3fd9f8a
--- /dev/null
+++ b/pkg/tcpip/sample/wg_tunnel/README
@@ -0,0 +1,11 @@
+/go/bin/go mod edit -replace="github.com/insomniacslk/dhcp@v0.0.0=golang.m7n.se/insomniacslk-dhcp@v0.0.0"
+
+
+sudo ip tuntap add tun1 mode tun
+sudo ip l set up tun1
+sudo ip a a 10.1.1.1/24 dev tun1
+sudo ip r a 10.1.2.0/24 dev tun1
+ping 10.1.2.1
+ping 10.1.2.2
+
+./wg_tunnel 10003