From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: network@lists.ipfire.org Subject: Re: [PATCH 3/3] IPsec: Log the content of all PLUTO variables in debug mode Date: Sat, 24 Feb 2018 11:54:42 +0000 Message-ID: <1519473282.5664.12.camel@ipfire.org> In-Reply-To: <1519383935-3556-3-git-send-email-jonatan.schlag@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1227991242683649662==" List-Id: --===============1227991242683649662== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit *thumbs up* On Fri, 2018-02-23 at 11:05 +0000, Jonatan Schlag via network wrote: > Signed-off-by: Jonatan Schlag > --- > src/helpers/ipsec-updown | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/src/helpers/ipsec-updown b/src/helpers/ipsec-updown > index e4d704d..12ead03 100644 > --- a/src/helpers/ipsec-updown > +++ b/src/helpers/ipsec-updown > @@ -29,6 +29,13 @@ network_settings_read > # Make sure we are called by strongSwan > assert isset PLUTO_VERSION > > +if enabled DEBUG; then > + while read line; do > + [[ ${line} =~ ^PLUTO_ ]] || continue > + log DEBUG " ${line}" > + done <<< "$(printenv | sort)" > +fi > + > CONNECTION="${PLUTO_CONNECTION}" > > if ! ipsec_connection_read_config "${CONNECTION}"; then --===============1227991242683649662==--