From 93a9eeb0e4a6db467f301a87e1430c8d3f581998 Mon Sep 17 00:00:00 2001 From: Jonatan Schlag via network Date: Fri, 23 Feb 2018 11:05:35 +0000 Subject: [PATCH] IPsec: Log the content of all PLUTO variables in debug mode Signed-off-by: Jonatan Schlag Signed-off-by: Michael Tremer --- src/helpers/ipsec-updown | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/helpers/ipsec-updown b/src/helpers/ipsec-updown index e4d704d3..12ead035 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.39.2