- Solved
- Minor
I tried creating a client wireguard connection with the built in VPN Manger, after creating config the UI reports that peers have to be updated
This seems to be a reappearance of the old issue and the fix suggested in that topic did not work
I am on 7.1.0-rc.1 and on wifi connection
/etc/wireguard/wg0.conf
[Interface] PrivateKey=PrivateKey Address=10.0.0.2 ListenPort=51820 PostUp=logger -t wireguard -- 'Tunnel WireGuard-wg0 started'; /usr/local/emhttp/webGui/scripts/update_services PostUp=iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -o br0 -j MASQUERADE; iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -o vhost0 -j MASQUERADE; iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -o wlan0 -j MASQUERADE PostDown=logger -t wireguard -- 'Tunnel WireGuard-wg0 stopped'; /usr/local/emhttp/webGui/scripts/update_services PostDown=iptables -t nat -D POSTROUTING -s 10.0.0.0/24 -o br0 -j MASQUERADE; iptables -t nat -D POSTROUTING -s 10.0.0.0/24 -o vhost0 -j MASQUERADE; iptables -t nat -D POSTROUTING -s 10.0.0.0/24 -o wlan0 -j MASQUERADE PostUp=ip -4 route flush table 200 PostUp=ip -4 route add default via 10.0.0.2 dev wg0 table 200 PostUp=ip -4 route add 0.0.0.0/24 via dev br0 table 200 PostDown=ip -4 route flush table 200 PostDown=ip -4 route add unreachable default table 200 PostDown=ip -4 route add 0.0.0.0/24 via dev br0 table 200 [Peer] PublicKey=PublicKey Endpoint=ip:51820 AllowedIPs=10.0.0.2 PersistentKeepalive=25
/var/log/wg-quick.log
wg-quick up wg0 [#] ip link add wg0 type wireguard [#] wg setconf wg0 /dev/fd/63 [#] ip -4 address add 10.0.0.2 dev wg0 [#] ip link set mtu 1420 up dev wg0 [#] ip -4 route add 10.0.0.2/32 dev wg0 [#] logger -t wireguard -- 'Tunnel WireGuard-wg0 started'; /usr/local/emhttp/webGui/scripts/update_services [#] iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -o br0 -j MASQUERADE; iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -o vhost0 -j MASQUERADE; iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -o wlan0 -j MASQUERADE [#] ip -4 route flush table 200 [#] ip -4 route add default via 10.0.0.2 dev wg0 table 200 [#] ip -4 route add 0.0.0.0/24 via dev br0 table 200 Error: inet address is expected rather than "dev". [#] ip link delete dev wg0