summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorsever-sever <v.gletenko@vyos.io>2021-06-07 22:11:48 +0000
committerChristian Poessinger <christian@poessinger.com>2021-06-08 14:57:34 +0200
commitf35648f2966061840563502763e5665787a8875b (patch)
tree25a33cdf985e2d8e99a27c300744e1a3feea84c8 /data
parent23076b4c8956368ca954ce0769b4bb855db75b33 (diff)
downloadvyos-build-f35648f2966061840563502763e5665787a8875b.tar.gz
vyos-build-f35648f2966061840563502763e5665787a8875b.zip
charon-syslog: T2620: Add ike-name to IPSec logs
(cherry picked from commit f0166cc4b2ba66c7cd2d2d2ab9aa8be839a26543)
Diffstat (limited to 'data')
-rwxr-xr-xdata/live-build-config/hooks/live/30-strongswan-configs.chroot19
1 files changed, 19 insertions, 0 deletions
diff --git a/data/live-build-config/hooks/live/30-strongswan-configs.chroot b/data/live-build-config/hooks/live/30-strongswan-configs.chroot
index 25562a65..59e000a9 100755
--- a/data/live-build-config/hooks/live/30-strongswan-configs.chroot
+++ b/data/live-build-config/hooks/live/30-strongswan-configs.chroot
@@ -36,3 +36,22 @@ with open('/etc/strongswan.d/charon/farp.conf', 'r') as f:
with open('/etc/strongswan.d/charon/farp.conf', 'w') as f:
f.write(farp_conf)
+
+
+# Add ike-name to logging
+charon_logging = """
+charon {
+ syslog {
+ # prefix for each log message
+ identifier = charon
+ # use default settings to log to the LOG_DAEMON facility
+ daemon {
+ default = 1
+ ike_name = yes
+ }
+ }
+}
+"""
+
+with open('/etc/strongswan.d/charon-logging.conf', 'w') as f:
+ f.write(charon_logging)