doc:appunti:linux:sa:ulogd2
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
doc:appunti:linux:sa:ulogd2 [2025/04/03 12:25] – [/etc/ulogd.conf] niccolo | doc:appunti:linux:sa:ulogd2 [2025/04/03 12:43] (current) – [/etc/logrotate.d/ulogd2] niccolo | ||
---|---|---|---|
Line 79: | Line 79: | ||
So if I want to track new and destroyed connections, | So if I want to track new and destroyed connections, | ||
+ | |||
+ | ==== Logging bytes_sent and bytes_received ==== | ||
+ | |||
+ | Check that conntrack has the **bytes=** field in this output: | ||
+ | |||
+ | < | ||
+ | conntrack -L -o extended | ||
+ | </ | ||
+ | |||
+ | Run the following: | ||
+ | |||
+ | < | ||
+ | sysctl -w net.netfilter.nf_conntrack_acct=1 | ||
+ | </ | ||
+ | |||
+ | for permanent setting across reboot create the file **/ | ||
+ | |||
+ | < | ||
+ | net.netfilter.nf_conntrack_acct=1 | ||
+ | </ | ||
+ | |||
+ | |||
==== / | ==== / |
doc/appunti/linux/sa/ulogd2.txt · Last modified: 2025/04/03 12:43 by niccolo