diff options
author | Christian Breunig <christian@breunig.cc> | 2025-01-13 19:39:50 +0100 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2025-02-03 07:16:07 +0100 |
commit | 04d296a3446fa8488add17ce1ec7931d43c4a4d0 (patch) | |
tree | 1d57133cf77f39d62b310a1c36cb4a3d43b959f2 /data/templates/rsyslog | |
parent | e143e496e28b9d6d5803278fa76a14bf2bc2304e (diff) | |
download | vyos-1x-04d296a3446fa8488add17ce1ec7931d43c4a4d0.tar.gz vyos-1x-04d296a3446fa8488add17ce1ec7931d43c4a4d0.zip |
syslog: T6989: add new source-address CLI option for outgoing connections
Diffstat (limited to 'data/templates/rsyslog')
-rw-r--r-- | data/templates/rsyslog/rsyslog.conf.j2 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/data/templates/rsyslog/rsyslog.conf.j2 b/data/templates/rsyslog/rsyslog.conf.j2 index efb23ca7d..779ae8d04 100644 --- a/data/templates/rsyslog/rsyslog.conf.j2 +++ b/data/templates/rsyslog/rsyslog.conf.j2 @@ -113,6 +113,10 @@ if prifilt("{{ tmp | join(',') }}") then { template="SyslogProtocol23Format" {% endif %} TCP_Framing="{{ 'octed-counted' if remote_options.format.octet_counted is vyos_defined else 'traditional' }}" +{% if source_address is vyos_defined %} + # Sender IP address + Address="{{ source_address }}" +{% endif %} {% if vrf is vyos_defined %} Device="{{ vrf }}" {% endif %} |