Userspace connection + proxy working

This commit is contained in:
Owen Schwartz
2024-11-03 16:34:23 -05:00
parent c572ae0e36
commit 236f5acfc7
11 changed files with 381 additions and 0 deletions

1
test/cleanup.sh Normal file
View File

@@ -0,0 +1 @@
ip link del dev wg0

1
test/key Normal file
View File

@@ -0,0 +1 @@
eN6oRymkBFTCLOwlpEgB9zkCJpl0zb6NL5TRogXzNlk=

9
test/newt_client.sh Normal file
View File

@@ -0,0 +1,9 @@
./newt \
--tunnel-ip=192.168.4.28 \
"--private-key=kAexrEV1OHlMYQU3BZatZxNfKGAbzo+ATspAdtOcRks=" \
"--public-key=Kn4eD0kvcTwjO//zqH/CtNVkMNdMiUkbqFxysEym2D8=" \
--endpoint=192.168.1.16:51820 \
--tcp-targets=127.0.0.1:8080 \
--udp-targets=127.0.0.1:53 \
--listen-ip=192.168.4.28 \
--server-ip=192.168.4.1

6
test/wg_server.sh Normal file
View File

@@ -0,0 +1,6 @@
ip link add dev wg0 type wireguard
ip addr add 192.168.4.1/24 dev wg0
ip link set up dev wg0
wg set wg0 private-key ./key
wg set wg0 listen-port 51820
wg set wg0 peer 3QfirSdDVihYCAz66t6DTAtFtsh+9WVVu7ItlL750hI= allowed-ips 192.168.4.28