diff options
Diffstat (limited to 'pkg/tcpip/sample/wg_tunnel/README')
-rw-r--r-- | pkg/tcpip/sample/wg_tunnel/README | 11 |
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 |