From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonatan Schlag To: network@lists.ipfire.org Subject: [PATCH 3/3] IPsec: Log the content of all PLUTO variables in debug mode Date: Fri, 23 Feb 2018 11:05:35 +0000 Message-ID: <1519383935-3556-3-git-send-email-jonatan.schlag@ipfire.org> In-Reply-To: <1519383935-3556-1-git-send-email-jonatan.schlag@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8355380292676155260==" List-Id: --===============8355380292676155260== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 -- 2.6.3 --===============8355380292676155260==--