wireguard.lists.zx2c4.com archive mirror
 help / color / mirror / Atom feed
* Interface's Address is not saved when SaveConfig = true in config
@ 2018-04-20 10:36 ST
  2018-04-20 21:39 ` Jason A. Donenfeld
  0 siblings, 1 reply; 4+ messages in thread
From: ST @ 2018-04-20 10:36 UTC (permalink / raw)
  To: WireGuard mailing list

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!

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Interface's Address is not saved when SaveConfig = true in config
  2018-04-20 10:36 Interface's Address is not saved when SaveConfig = true in config ST
@ 2018-04-20 21:39 ` Jason A. Donenfeld
  2018-04-21 18:57   ` ST
  2018-04-24  8:59   ` ST
  0 siblings, 2 replies; 4+ messages in thread
From: Jason A. Donenfeld @ 2018-04-20 21:39 UTC (permalink / raw)
  To: ST; +Cc: WireGuard mailing list

[-- Attachment #1: Type: text/plain, Size: 1278 bytes --]

Out of date iproute2?

Which distro? Version?

--
Sent from my telephone.

On Fri, Apr 20, 2018, 12:36 ST <smntov@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@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard
>

[-- Attachment #2: Type: text/html, Size: 2139 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Interface's Address is not saved when SaveConfig = true in config
  2018-04-20 21:39 ` Jason A. Donenfeld
@ 2018-04-21 18:57   ` ST
  2018-04-24  8:59   ` ST
  1 sibling, 0 replies; 4+ messages in thread
From: ST @ 2018-04-21 18:57 UTC (permalink / raw)
  To: Jason A. Donenfeld; +Cc: WireGuard mailing list

Debian 8 Jessie
iproute2/oldstable,now 3.16.0-2 amd64


On Fri, 2018-04-20 at 21:39 +0000, Jason A. Donenfeld wrote:
> Out of date iproute2?
> 
> 
> Which distro? Version?
> 
> --
> Sent from my telephone.
> 
> 
> On Fri, Apr 20, 2018, 12:36 ST <smntov@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@lists.zx2c4.com
>         https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Interface's Address is not saved when SaveConfig = true in config
  2018-04-20 21:39 ` Jason A. Donenfeld
  2018-04-21 18:57   ` ST
@ 2018-04-24  8:59   ` ST
  1 sibling, 0 replies; 4+ messages in thread
From: ST @ 2018-04-24  8:59 UTC (permalink / raw)
  To: Jason A. Donenfeld; +Cc: WireGuard mailing list

Debian 8 Jessie
iproute2/oldstable,now 3.16.0-2 amd64

1. So is the iproute2 version out of date?

2. Is the issue with not saving new peers to the config file immediately as they are add but
rather only on `wg-quick down wg0` related to the version being out of date?

3. How are you going to implement SaveConfig = true once you add support for
/etc/wireguard/conf.d/[interface.conf | peers.conf]? How do you know to which file
should you save new peers?

Thank you!


On Fri, 2018-04-20 at 21:39 +0000, Jason A. Donenfeld wrote:
> Out of date iproute2?
> 
> 
> Which distro? Version?
> 
> --
> Sent from my telephone.
> 
> 
> On Fri, Apr 20, 2018, 12:36 ST <smntov@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@lists.zx2c4.com
>         https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-04-24  8:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-20 10:36 Interface's Address is not saved when SaveConfig = true in config ST
2018-04-20 21:39 ` Jason A. Donenfeld
2018-04-21 18:57   ` ST
2018-04-24  8:59   ` ST

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).