From: Nick Hainke Date: Sat, 8 Jan 2022 21:08:33 +0000 (+0100) Subject: wg-installer: fix ipv4 meshing via olsr X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=4302bfd3c8b710411bc8572ad218f4b17dfb0c67;p=feed%2Fpackages.git wg-installer: fix ipv4 meshing via olsr The ipv4 address space was not allowed. Signed-off-by: Nick Hainke --- diff --git a/net/wg-installer/wg-client/wg-client-installer.sh b/net/wg-installer/wg-client/wg-client-installer.sh index 2c131d32c2..1df50a5d49 100644 --- a/net/wg-installer/wg-client/wg-client-installer.sh +++ b/net/wg-installer/wg-client/wg-client-installer.sh @@ -85,7 +85,7 @@ register_client_interface () { ip -6 a a dev $ifname $client_ip ip -6 a a dev $ifname fe80::2/64 - wg set $ifname listen-port $port private-key $gw_key peer $pubkey allowed-ips ::/0 endpoint "${endpoint}:${gw_port}" + wg set $ifname listen-port $port private-key $gw_key peer $pubkey allowed-ips 0.0.0.0/0,::0/0 endpoint "${endpoint}:${gw_port}" ip link set up dev $ifname ip link set mtu $mtu_client dev $ifname # configure mtu here! } diff --git a/net/wg-installer/wg-server/lib/wg_functions.sh b/net/wg-installer/wg-server/lib/wg_functions.sh index 9a68fdce95..e431eca987 100644 --- a/net/wg-installer/wg-server/lib/wg_functions.sh +++ b/net/wg-installer/wg-server/lib/wg_functions.sh @@ -57,7 +57,7 @@ wg_register () { # create wg tunnel ip link add dev $ifname type wireguard - wg set $ifname listen-port $port private-key $gw_key peer $public_key allowed-ips ::0/0 + wg set $ifname listen-port $port private-key $gw_key peer $public_key allowed-ips 0.0.0.0/0,::0/0 ip -6 a a $gw_ip_assign dev $ifname ip -6 a a fe80::1/64 dev $ifname