diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-06-08 07:34:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-08 07:34:50 +0200 |
commit | 65b596062f015cd421c59f80916029c2b144748a (patch) | |
tree | a6b37035c0ccee562137db2a9453c37cf425d01f | |
parent | f12394c0f350180c465de0984a47547b855e7f2d (diff) | |
parent | f0166cc4b2ba66c7cd2d2d2ab9aa8be839a26543 (diff) | |
download | vyos-build-65b596062f015cd421c59f80916029c2b144748a.tar.gz vyos-build-65b596062f015cd421c59f80916029c2b144748a.zip |
Merge pull request #169 from sever-sever/T2620
charon-syslog: T2620: Add ike-name to IPSec logs
-rwxr-xr-x | data/live-build-config/hooks/live/30-strongswan-configs.chroot | 19 |
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) |