diff options
author | Christian Breunig <christian@breunig.cc> | 2024-03-06 23:22:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-06 23:22:48 +0100 |
commit | 171ceda96321f7b7e24a1267f844025a6d8563ea (patch) | |
tree | 51d87677203d29afd1462b6dd76cf478681a309b | |
parent | 8e185b78a308fd5202bb3913e228db7e45b297ba (diff) | |
parent | e4ef1cc967beccf78643da58d7d603003b748aae (diff) | |
download | vyos-1x-171ceda96321f7b7e24a1267f844025a6d8563ea.tar.gz vyos-1x-171ceda96321f7b7e24a1267f844025a6d8563ea.zip |
Merge pull request #3101 from vyos/mergify/bp/sagitta/pr-3099
conntrack-sync: T6057: Add ability to disable syslog for conntrackd (backport #3099)
-rw-r--r-- | data/templates/conntrackd/conntrackd.conf.j2 | 2 | ||||
-rw-r--r-- | interface-definitions/service_conntrack-sync.xml.in | 6 |
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> |