summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-03-06 20:12:15 +0100
committerGitHub <noreply@github.com>2024-03-06 20:12:15 +0100
commit836adb807651a7c6bf5042aa81012a9b44e3161d (patch)
treef8fbf2ea9c3d1daa4573cb60e7fea7e891bc6b7f
parent028fd9d9b40aa3dea7a2ea4a875468524d6f7a50 (diff)
parentc37fb4010c50a18029d6c680c42fceb3b8930dbd (diff)
downloadvyos-1x-836adb807651a7c6bf5042aa81012a9b44e3161d.tar.gz
vyos-1x-836adb807651a7c6bf5042aa81012a9b44e3161d.zip
Merge pull request #3099 from natali-rs1985/T6057-current
conntrack-sync: T6057: Add ability to disable syslog for conntrackd
-rw-r--r--data/templates/conntrackd/conntrackd.conf.j22
-rw-r--r--interface-definitions/service_conntrack-sync.xml.in6
2 files changed, 7 insertions, 1 deletions
diff --git a/data/templates/conntrackd/conntrackd.conf.j2 b/data/templates/conntrackd/conntrackd.conf.j2
index 8f56c8171..669b20877 100644
--- a/data/templates/conntrackd/conntrackd.conf.j2
+++ b/data/templates/conntrackd/conntrackd.conf.j2
@@ -76,7 +76,7 @@ General {
HashSize {{ hash_size }}
HashLimit {{ table_size | int *2 }}
LogFile off
- Syslog on
+ Syslog {{ 'off' if disable_syslog is vyos_defined else 'on' }}
LockFile /var/lock/conntrack.lock
UNIX {
Path /var/run/conntrackd.ctl
diff --git a/interface-definitions/service_conntrack-sync.xml.in b/interface-definitions/service_conntrack-sync.xml.in
index 46dc8adc0..397864867 100644
--- a/interface-definitions/service_conntrack-sync.xml.in
+++ b/interface-definitions/service_conntrack-sync.xml.in
@@ -52,6 +52,12 @@
<valueless/>
</properties>
</leafNode>
+ <leafNode name="disable-syslog">
+ <properties>
+ <help>Disable connection logging via Syslog</help>
+ <valueless/>
+ </properties>
+ </leafNode>
<leafNode name="event-listen-queue-size">
<properties>
<help>Queue size for local conntrack events</help>