Interface's Address is not saved when SaveConfig = true in config
Jason A. Donenfeld
Jason at zx2c4.com
Fri Apr 20 23:39:12 CEST 2018
Out of date iproute2?
Which distro? Version?
--
Sent from my telephone.
On Fri, Apr 20, 2018, 12:36 ST <smntov at gmail.com> wrote:
> Hello,
>
> I have
> ...
> Address = 192.168.4.1/24
> SaveConfig = true
> in wg0.conf
>
> 1. if I add a peer with `wg set wg0 peer ...` WG doesn't add it
> immediately to the wg0.conf file, only after I run `wg-quick down wg0`.
> Why not? What happens if the system crashes unexpectedly?... The peer
> will not be saved to the config file and the information will be lost.
>
>
> 2. once I run `wg-quick down wg0` I get:
>
> Option "-all" is unknown, try "ip -help".
> cat: /etc/resolvconf/run/interface/wg0: No such file or directory
> [#] wg showconf wg0
> sync: ignoring all arguments
> [#] ip link delete dev wg0
>
> Now the wg0.conf is enhanced with the peer details that was added
> through command line, but the Address = 192.168.4.1/24 disappears from
> the config. So running `wg-quick up wg0` again doesn't assigns IP to the
> wg0 interface... What's wrong?
>
> I'm using version:
> apt list wireguard
> wireguard/unstable,now 0.0.20180304-1 all [installed]
>
> Thank you!
>
>
> _______________________________________________
> WireGuard mailing list
> WireGuard at lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/wireguard/attachments/20180420/548ad0a8/attachment-0001.html>
More information about the WireGuard
mailing list