summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2025-04-03 15:58:33 +0100
committerGitHub <noreply@github.com>2025-04-03 15:58:33 +0100
commit85d44fbe2befb4789a38996ea899dec57c40a29a (patch)
tree673c58e91b032167ae6dcef5556ec97b90b83e89 /data/templates
parentfa3140b0efe3a6194e5fff44e71f34ff8903e13b (diff)
parent453c5e6dc90f3dc15d697884625195abd445b8ab (diff)
downloadvyos-1x-current.tar.gz
vyos-1x-current.zip
Merge pull request #4431 from sever-sever/T7290HEADcurrent
T7290: Fix VPN IPsec log level processing
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/ipsec/charon_systemd.conf.j218
1 files changed, 18 insertions, 0 deletions
diff --git a/data/templates/ipsec/charon_systemd.conf.j2 b/data/templates/ipsec/charon_systemd.conf.j2
new file mode 100644
index 000000000..368aa1ae3
--- /dev/null
+++ b/data/templates/ipsec/charon_systemd.conf.j2
@@ -0,0 +1,18 @@
+# Generated by ${vyos_conf_scripts_dir}/vpn_ipsec.py
+
+charon-systemd {
+
+ # Section to configure native systemd journal logger, very similar to the
+ # syslog logger as described in LOGGER CONFIGURATION in strongswan.conf(5).
+ journal {
+
+ # Loglevel for a specific subsystem.
+ # <subsystem> = <default>
+
+{% if log.level is vyos_defined %}
+ # Default loglevel.
+ default = {{ log.level }}
+{% endif %}
+ }
+
+}