mirror of
https://github.com/fosrl/olm.git
synced 2026-02-14 00:46:42 +00:00
Userspace connection + proxy working
This commit is contained in:
1
test/cleanup.sh
Normal file
1
test/cleanup.sh
Normal file
@@ -0,0 +1 @@
|
||||
ip link del dev wg0
|
||||
9
test/newt_client.sh
Normal file
9
test/newt_client.sh
Normal 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
6
test/wg_server.sh
Normal 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
|
||||
Reference in New Issue
Block a user