aboutsummaryrefslogtreecommitdiffstats
path: root/tests/netsh.sh
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2019-04-08 22:05:59 +0200
committerThomas Gschwantner <tharre3@gmail.com>2019-05-26 01:07:46 +0200
commit4fbff9a4454ac6bd71aebc0df6d8442a467201db (patch)
treedc7d619b110a8d77d51418ac4c40fd6b1224cca5 /tests/netsh.sh
parentImplement faked allocations, server side (diff)
downloadwg-dynamic-4fbff9a4454ac6bd71aebc0df6d8442a467201db.tar.xz
wg-dynamic-4fbff9a4454ac6bd71aebc0df6d8442a467201db.zip
Implement client sending ip-request and configuring interface
Diffstat (limited to '')
-rwxr-xr-xtests/netsh.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/netsh.sh b/tests/netsh.sh
index 27979c5..3d98550 100755
--- a/tests/netsh.sh
+++ b/tests/netsh.sh
@@ -55,7 +55,7 @@ client_public=$(wg pubkey <<< $client_private)
configure_peers() {
ip1 addr add fe80::/64 dev wg0
- ip2 addr add fe80::badc:0ffe:e0dd:f00d/64 dev wg0
+ ip2 addr add fe80::badc:0ffe:e0dd:f00d/128 dev wg0
n1 wg set wg0 \
private-key <(echo $server_private) \
@@ -71,6 +71,8 @@ configure_peers() {
ip1 link set up dev wg0
ip2 link set up dev wg0
+
+ ip2 route add fe80::/128 dev wg0
}
configure_peers