summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/sample/wg_tunnel
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/tcpip/sample/wg_tunnel')
-rw-r--r--pkg/tcpip/sample/wg_tunnel/README10
1 files changed, 2 insertions, 8 deletions
diff --git a/pkg/tcpip/sample/wg_tunnel/README b/pkg/tcpip/sample/wg_tunnel/README
index ee3fd9f8a..32eb75184 100644
--- a/pkg/tcpip/sample/wg_tunnel/README
+++ b/pkg/tcpip/sample/wg_tunnel/README
@@ -1,11 +1,5 @@
/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
+sudo ./setup tun tun1
+sudo ./wg_tunnel 10003