Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

UNLIMITED

Linux Format

Monitor your TCP/IP networks with eBPF

S ure to send a shiver down the nerdiest of geek’s spines, the idea of monitoring TCP/IP S packets and connections can be confusing at best. Just scan this article and the output of the eBPF tools, and you realise you need to be familiar with TCP/ IP and its cryptic options in order to understand the provided information. Before diving into the TCP/IP tools, we’ll begin by explaining how to trace eBPF related system calls with the help of the Strace utility.

Let’s use Strace to trace eBPF-related system calls along with their parameters. For example, we can find out the eBPF system calls executed with Opensnoop:

This is a small part of the generated output but you get the idea and the insights of the system calls related to eBPF. Using filtering tools such as Grep can help you locate what you are looking for because Strace produces lots of output.

What we see here is three versions of the BPF system call. The first one using the BPF_MAP_CREATE command, the second one using BPF_MAP_UPDATE_ELEM and the last one using BPF_RAW_TRACEPOINT_OPEN . In LXF297, we discussed eBPF maps and how each map has

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format2 min read
Back Issues » Missed One?
November 2024 Product code: LXFDB0321 Build your own Linux fortress and protect your privacy with Qubes OS, and learn all about Matter, the new Internet of Things standard. Plus, discover which media server is best, find out how to secure your files,
Linux Format2 min read
Rclone
Version: 1.68.1 Web: https://rclone.org There’s no such thing as being too cautious when it comes to safeguarding data. Although a lot of people stress over using secure passwords and even encryption, not many bother with keeping secure copies of dat
Linux Format10 min read
Answers
Q Notwork booting I have a Dell Inspiron 3583 laptop that came with Windows 10. I didn’t like it and switched to Ubuntu. All went well until I installed 23.10, when my laptop crashed. When I tried to reinstall, all I got was PXE over IPv4. Fortunatel

Related