summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-12-26 10:01:22 +0100
committerChristian Poessinger <christian@poessinger.com>2021-12-26 10:01:32 +0100
commitde28cb2036af6e7786ff54f1732d3a33439442e8 (patch)
treef4da920b3bfdc7ba37c37c4174fd66644476d406 /data
parent3854031667c397412d04697509f02b097e401e9a (diff)
downloadvyos-1x-de28cb2036af6e7786ff54f1732d3a33439442e8.tar.gz
vyos-1x-de28cb2036af6e7786ff54f1732d3a33439442e8.zip
flow-accounting: T4097: move configuration file to /run
Diffstat (limited to 'data')
-rw-r--r--data/templates/netflow/uacctd.conf.tmpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/data/templates/netflow/uacctd.conf.tmpl b/data/templates/netflow/uacctd.conf.tmpl
index b6d31746f..f81002dc1 100644
--- a/data/templates/netflow/uacctd.conf.tmpl
+++ b/data/templates/netflow/uacctd.conf.tmpl
@@ -1,7 +1,7 @@
# Genereated from VyOS configuration
daemonize: true
promisc: false
-pidfile: /var/run/uacctd.pid
+pidfile: /run/pmacct/uacctd.pid
uacctd_group: 2
uacctd_nl_size: 2097152
snaplen: {{ packet_length }}
@@ -54,6 +54,7 @@ nfprobe_source_ip[nf_{{ server }}]: {{ netflow.source_address }}
{% if netflow.timeout is defined and netflow.timeout is not none %}
nfprobe_timeouts[nf_{{ server }}]: expint={{ netflow.timeout.expiry_interval }}:general={{ netflow.timeout.flow_generic }}:icmp={{ netflow.timeout.icmp }}:maxlife={{ netflow.timeout.max_active_life }}:tcp.fin={{ netflow.timeout.tcp_fin }}:tcp={{ netflow.timeout.tcp_generic }}:tcp.rst={{ netflow.timeout.tcp_rst }}:udp={{ netflow.timeout.udp }}
{% endif %}
+
{% endfor %}
{% endif %}
@@ -68,5 +69,6 @@ sampling_rate[sf_{{ server }}]: {{ sflow.sampling_rate }}
{% if sflow.source_address is defined and sflow.source_address is not none %}
sfprobe_source_ip[sf_{{ server }}]: {{ sflow.source_address }}
{% endif %}
+
{% endfor %}
{% endif %}