# How to store the headers of all TCP and UDP packets in the database. that pass through the RockyLinux router?

**URL:** <https://forums.rockylinux.org/t/how-to-store-the-headers-of-all-tcp-and-udp-packets-in-the-database-that-pass-through-the-rockylinux-router/7179>\
**Category:** Rocky Linux Help & Support\
**Created:** [September 8, 2022, 8:58am UTC](https://forums.rockylinux.org/t/how-to-store-the-headers-of-all-tcp-and-udp-packets-in-the-database-that-pass-through-the-rockylinux-router/7179 "2022-09-08T08:58:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rlamintegrator](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@rlamintegrator](https://forums.rockylinux.org/u/rlamintegrator)\
**Post date:** [September 8, 2022, 8:58am UTC](https://forums.rockylinux.org/t/how-to-store-the-headers-of-all-tcp-and-udp-packets-in-the-database-that-pass-through-the-rockylinux-router/7179/1 "2022-09-08T08:58:37Z")

</div>

How to store the headers of all TCP and UDP packets in the database. that pass through the RockyLinux router?

---

<div class="post-metadata">

**Author:** ![BillT](https://avatars.discourse-cdn.com/v4/letter/b/ecc23a/32.png) [@BillT](https://forums.rockylinux.org/u/BillT)\
**Post date:** [September 12, 2022, 1:25pm UTC](https://forums.rockylinux.org/t/how-to-store-the-headers-of-all-tcp-and-udp-packets-in-the-database-that-pass-through-the-rockylinux-router/7179/2 "2022-09-12T13:25:13Z")

</div>

You can use tcpdump to capture the packets and store them into a file but you would need something to read the file and store into a database.

---

<div class="post-metadata">

**Author:** ![neil](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/neil/32/34_2.png) [@neil](https://forums.rockylinux.org/u/neil)\
**Post date:** [September 13, 2022, 1:48am UTC](https://forums.rockylinux.org/t/how-to-store-the-headers-of-all-tcp-and-udp-packets-in-the-database-that-pass-through-the-rockylinux-router/7179/3 "2022-09-13T01:48:08Z")

</div>

I would look into using something like IPFIX or Netflow to accomplish this, as these are purpose built to extract the information you’re looking for.

Lots of open source tools can help do this on lInux 🙂

---

<div class="post-metadata">

**Author:** ![rlamintegrator](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@rlamintegrator](https://forums.rockylinux.org/u/rlamintegrator)\
**Post date:** [September 13, 2022, 9:12am UTC](https://forums.rockylinux.org/t/how-to-store-the-headers-of-all-tcp-and-udp-packets-in-the-database-that-pass-through-the-rockylinux-router/7179/4 "2022-09-13T09:12:25Z")

</div>

> [@neil](#):
>
> Lots of open source tools can help do this on lInux

For example? Which one packet by this ?

---

<div class="post-metadata">

**Author:** ![neil](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/neil/32/34_2.png) [@neil](https://forums.rockylinux.org/u/neil)\
**Post date:** [September 15, 2022, 1:51pm UTC](https://forums.rockylinux.org/t/how-to-store-the-headers-of-all-tcp-and-udp-packets-in-the-database-that-pass-through-the-rockylinux-router/7179/5 "2022-09-15T13:51:35Z")

</div>

Lots of options in this space… Ntopng, elastiflow with some ipfix exporter, goflow from cloudflare, all come to mind right now

---

<div class="post-metadata">

**Author:** ![neil](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/neil/32/34_2.png) [@neil](https://forums.rockylinux.org/u/neil)\
**Post date:** [September 16, 2022, 5:34pm UTC](https://forums.rockylinux.org/t/how-to-store-the-headers-of-all-tcp-and-udp-packets-in-the-database-that-pass-through-the-rockylinux-router/7179/6 "2022-09-16T17:34:24Z")

</div>

remembered the name of a new flow collector I’d seen lately, too! [https://demo.akvorado.net/](https://demo.akvorado.net/)

This one is pretty exciting, IMO

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)\
**Post date:** [August 25, 2023, 3:40am UTC](https://forums.rockylinux.org/t/how-to-store-the-headers-of-all-tcp-and-udp-packets-in-the-database-that-pass-through-the-rockylinux-router/7179/7 "2023-08-25T03:40:09Z")

</div>

Closed on August 25, 2023, 3:40am UTC


