sourceTemplate

Names the template that provides the spoofed source IP address for sent messages.

This parameter applies to omudpspoof: UDP spoofing output module.

Name:

sourceTemplate

Scope:

action

Type:

word

Default:

RSYSLOG_omudpspoofDfltSourceTpl

Required?:

no

Introduced:

5.1.3

Description

This is the name of the template that contains a numerical IP address that is to be used as the source system IP address. While it may often be a constant value, it can be generated as usual via the property replacer, as long as it is a valid IPv4 address. If not specified, the built-in default template RSYSLOG_omudpspoofDfltSourceTpl is used. This template is defined as follows:

template(name="RSYSLOG_omudpspoofDfltSourceTpl" type="string" string="%fromhost-ip%")

So in essence, the default template spoofs the address of the system the message was received from. This is considered the most important use case.

Action usage

template(name="spoofaddr" type="string" string="192.0.2.100")
action(type="omudpspoof" target="192.0.2.1" sourceTemplate="spoofaddr")

Legacy names (for reference)

Historic names/directives for compatibility. Do not use in new configs.

  • $ActionOMUDPSpoofSourceNameTemplate — maps to sourceTemplate (status: legacy)

See also

See also omudpspoof: UDP spoofing output module.


Support: rsyslog Assistant | GitHub Discussions | GitHub Issues: rsyslog source project

Contributing: Source & docs: rsyslog source project

© 2008–2025 Rainer Gerhards and others. Licensed under the Apache License 2.0.