Development discussion of WireGuard
 help / color / mirror / Atom feed
* Reading configuration from stdin
@ 2017-12-10 12:43 Manuel Schölling
  2017-12-11  4:12 ` Aaron Jones
  2017-12-11  4:24 ` Jason A. Donenfeld
  0 siblings, 2 replies; 5+ messages in thread
From: Manuel Schölling @ 2017-12-10 12:43 UTC (permalink / raw)
  To: wireguard

Hi,

I am currently working on a NetworkManager plugin for WireGuard in Rust
[1/2].
The plugin has to pass the configuration to the wg tool and I am
wondering if this could be done using interprocess communication.

Would it make sense (aka be secure) if we make it possible to call 'wg
setconf wg0 -' so the wg tool does not read the configuration from a
file but from stdin? Same for 'wg set wg0 private-key -' and 'wg set
wg0 psk -'?

Btw, this NetworkManager plugin should not only work for the regular
WireGuard but also for my wireguard peer-to-peer tool [3] whose
development is currently stalled by a rust bug [4].

This wireguard peer-to-peer tool allows you to use wireguard in
situations where you do not have a static IP and/or you are behind a
NAT.

Anyway, what do you think about reading the configuration from stdin?

Bye,

Manuel


[1] https://github.com/manuels/wg-p2p-nm-plugin
[2] https://github.com/manuels/wg-p2p-nm-plugin/blob/master/Screenshot.
png
[3] https://github.com/manuels/wireguard-p2p
[4] https://github.com/rust-lang/rust/issues/45259

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

end of thread, other threads:[~2017-12-11 20:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-10 12:43 Reading configuration from stdin Manuel Schölling
2017-12-11  4:12 ` Aaron Jones
2017-12-11 20:31   ` Manuel Schölling
2017-12-11  4:24 ` Jason A. Donenfeld
2017-12-11 20:36   ` Manuel Schölling

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).