From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: vtol@gmx.net Received: from krantz.zx2c4.com (localhost [127.0.0.1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id cfcc4aea for ; Tue, 3 Apr 2018 15:06:54 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 390f1501 for ; Tue, 3 Apr 2018 15:06:53 +0000 (UTC) MIME-Version: 1.0 Message-ID: From: vtol@gmx.net To: wireguard@lists.zx2c4.com Subject: wg-quick (script snippets) for OpenWRT/LEDE Content-Type: text/html; charset=UTF-8 Date: Tue, 3 Apr 2018 17:19:46 +0200 List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: ,
Hi,
 
it appears that wg-quick is not provided for OpenWRT/LEDE.
 
The reason is not really clear to me. As far I understand wg-quick depends on BASH whilst the default shell in OpenWRT/LEDE is ASH.
This however can be easily remidied by installing the BASH package from the OpenWRT/LEDE repo.
 
OpenWRT/LEDE is utilising netifd for network configuration which is lacking th3 versatility of wg-quick with there script snippets
 
PRE_UP=( )
POST_UP=( )
PRE_DOWN=( )
POST_DOWN=( )
 
Is there a way to get those script snippets working in OpenWRT/LEDE as such is required in dynamic/split/kill-switch routing scenarios.
 
OpenVPN provides a similar script functionality which is however not stripped on the OpenWRT/LEDE repo, respectively it does not require an extra tool package. I find it rather curious that the aforementioned script snippets are not part of wg but rather implemented in wg-quick which then is absent from OpenWRT/LEDE.