<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/data/templates/pmacct, branch current</title>
<subtitle>VyOS command definitions, scripts, and utilities (mirror of https://github.com/marekm72/vyos-1x.git)
</subtitle>
<id>https://git.amelek.net/marekm72/vyos-1x.git/atom?h=current</id>
<link rel='self' href='https://git.amelek.net/marekm72/vyos-1x.git/atom?h=current'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/'/>
<updated>2023-10-12T17:16:38+00:00</updated>
<entry>
<title>pmacct: T5232: Fixed pmacct service control via systemctl</title>
<updated>2023-10-12T17:16:38+00:00</updated>
<author>
<name>zsdc</name>
<email>taras@vyos.io</email>
</author>
<published>2023-10-03T22:57:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=e364e9813b6833f6b108e7177ef7ea2d9e7bac33'/>
<id>urn:sha1:e364e9813b6833f6b108e7177ef7ea2d9e7bac33</id>
<content type='text'>
pmacct daemons have one very important specific - they handle control signals in
the same loop as packets. And packets waiting is blocking operation.

Because of this, when systemctl sends SIGTERM to uacctd, this signal has no
effect until uacct receives at least one packet via nflog. In some cases, this
leads to a 90-second timeout, sending SIGKILL, and improperly finished tasks.
As a result, a working folder is not cleaned properly.

This commit contains several changes to fix service issues:

- add a new nftables table for pmacct with a single rule to get the ability to
send a packet to nflog and unlock uacctd
- remove PID file options from the uacctd and a systemd service file. Systemd
can detect proper PID, and PIDfile is created by uacctd too late, which leads
to extra errors in systemd logs
- KillMode changed to mixed. Without this, SIGTERM is sent to all plugins and
the core process exits with status 1 because it loses connection to plugins too
early. As a result, we have errors in logs, and the systemd service is in a
failed state.
- added logging to uacctd
- systemctl service modified to send packets to specific address during a service
stop which unlocks uacctd and allows systemctl to finish its work properly
</content>
</entry>
<entry>
<title>T5257: Fix netflow VRF and bracketize v6 source addresses for netflow/sflow</title>
<updated>2023-06-03T00:34:57+00:00</updated>
<author>
<name>Wered</name>
<email>kylem@serverforge.org</email>
</author>
<published>2023-06-03T00:34:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=6e46958c3fdd6ed7d0052c6f49933f5e7b7481ea'/>
<id>urn:sha1:6e46958c3fdd6ed7d0052c6f49933f5e7b7481ea</id>
<content type='text'>
</content>
</entry>
<entry>
<title>netflow: T4532: replace dot and colons to dash</title>
<updated>2022-07-15T10:54:37+00:00</updated>
<author>
<name>Viacheslav Hletenko</name>
<email>v.gletenko@vyos.io</email>
</author>
<published>2022-07-15T10:54:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=1bee7e62b6659eb39166331305c7924a16b8f4b5'/>
<id>urn:sha1:1bee7e62b6659eb39166331305c7924a16b8f4b5</id>
<content type='text'>
Fix for IPv6 netflow_plugin name
When we use IPv6 uacctd.conf doesnt expect coluns in the plugin
name. Replace dots and colons to dash.
</content>
</entry>
<entry>
<title>flow-accounting: T4437: bugfix IPv6 flow collector address</title>
<updated>2022-05-21T17:13:12+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2022-05-21T17:13:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=2bdcd70005660ca94468a30b921dcb8796e392c2'/>
<id>urn:sha1:2bdcd70005660ca94468a30b921dcb8796e392c2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>flow-accounting: T4353: fix Jinja2 linting errors</title>
<updated>2022-05-01T17:01:30+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2022-05-01T17:01:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=e0f1e495b81c8b214a8e12678bf5c643b36567dd'/>
<id>urn:sha1:e0f1e495b81c8b214a8e12678bf5c643b36567dd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>netflow: T4333: migrate to new vyos_defined Jinja2 test</title>
<updated>2022-04-13T20:52:17+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2022-04-13T20:52:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=d93daa4e6d219d61a102532684ab33717fd2eedb'/>
<id>urn:sha1:d93daa4e6d219d61a102532684ab33717fd2eedb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>flow-accounting: T4277: support sending flow-data via VRF interface</title>
<updated>2022-03-01T18:10:15+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2022-03-01T18:09:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=42c011224e5aef3c27f9de6b5a74e594a404131e'/>
<id>urn:sha1:42c011224e5aef3c27f9de6b5a74e594a404131e</id>
<content type='text'>
It should be possible to send the gathered data via a VRF bound interface to
the collector. This is somehow related to T3981 but it's the opposite side of
the netflow process.

set system flow-accounting vrf &lt;name&gt;
</content>
</entry>
</feed>
