summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorsever-sever <v.gletenko@vyos.io>2021-06-07 22:11:48 +0000
committerDaniil Baturin <daniil@baturin.org>2021-06-10 16:08:37 +0200
commitab8f6c73ab70beecc18ddb92eaa30262ac45d1a5 (patch)
tree3e983aabe5bfca14e02b7aea7cbeb3e00313162f /data
parent7905f0d5715bb8da158d09734ba78dc28b2fd4e1 (diff)
downloadvyos-build-ab8f6c73ab70beecc18ddb92eaa30262ac45d1a5.tar.gz
vyos-build-ab8f6c73ab70beecc18ddb92eaa30262ac45d1a5.zip
charon-syslog: T2620: Add ike-name to IPSec logs
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)