From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: luci@createc.ro Received: from krantz.zx2c4.com (localhost [127.0.0.1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id d48311d6 for ; Fri, 27 Oct 2017 20:57:26 +0000 (UTC) Received: from mail.crimel.ro (mail.crimel.ro [5.2.196.145]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 759c9570 for ; Fri, 27 Oct 2017 20:57:26 +0000 (UTC) Subject: Re: wg-quick add_route To: "Jason A. Donenfeld" References: <079f400c-a2ed-9f11-c8e1-a7a7da1074b9@createc.ro> From: Lucian Cristian Message-ID: <83f79ed2-4dff-c197-7b4f-40df3a6b7fe5@createc.ro> Date: Fri, 27 Oct 2017 23:59:17 +0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Cc: WireGuard mailing list List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 27.10.2017 22:48, Jason A. Donenfeld wrote: > Hey Lucian, > > If you're using WireGuard for real purposes and not just for a quick > "turn it on turn it off" situation with a remote endpoint, then > wg-quick probably isn't the right tool for you. Instead, I think > you'll be better off just calling wg(8) and ip(8) normally. > > The usage of WireGuard in general is supposed to be trivial enough > that you can script this without too much fuss. After all, wg-quick > itself is just a silly little bash script trivially wrapping some > common functionality. > > I think if we go down the road of adding a nob for every possible > configuration, you'll wind up having to spend time learning about > which nobs map to which sequence of commands, which will be more > complex than just doing it yourself. > > So, I think probably I wouldn't accept such a patch, and you'd be > better off just scripting 4 lines yourself: > > ip link add wg0 type wireguard > wg setconf wg0 path/to/conf.conf > ip addr add 10.0.0.1/24 dev wg0 > ip link set wg0 up > > Especially if you're using rip+eigrp, you already know what you're > doing, and this shouldn't be too difficult for you. > > I'm happy to bikeshed this if you'd like; other opinions are always > interesting. But my initial instinct is that needless complexity is > needless. > > Jason I Jason, I just liked how systemd integrated with wg-quick that's why I used it and if things are already this way in LEDE then why not have it in here too if is not gonna happen is your call and I accept i but is just and if to the bash script, nothing in the core system Regards