technote:ebpf_configuration
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
technote:ebpf_configuration [2025/10/03 02:44] – created Scott Cunliffe | technote:ebpf_configuration [2025/10/03 02:58] (current) – [eBPF Configuration] Scott Cunliffe | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== eBPF Configuration | + | ====== eBPF Configuration |
- | This page outlines how to configure and enable | + | This page outlines how to configure and enable eBPF integration for TapeTrack Server on Linux systems. eBPF (Extended Berkeley Packet Filter) allows TapeTrack to dynamically manage IP-level blocking at the kernel level during the time-out period. |
+ | {{ebpf_logo.png}} | ||
===== Prerequisites ===== | ===== Prerequisites ===== | ||
Before enabling eBPF support, ensure the following: | Before enabling eBPF support, ensure the following: | ||
- | * Linux kernel version | + | * Linux kernel version 4.4 or later |
- | | + | * Root or sudo privileges |
* TapeTrack Server binary supports the `-B` argument | * TapeTrack Server binary supports the `-B` argument | ||
- | * A **preloaded eBPF table** is available and accessible | + | * A preloaded eBPF table is available and accessible |
===== Setup ===== | ===== Setup ===== | ||
Line 22: | Line 23: | ||
Example: | Example: | ||
- | ```bash | + | < |
bpftool map create / | bpftool map create / | ||
+ | </ | ||
+ | ==== Start TapeTrack Server with eBPF Integration ==== | ||
+ | |||
+ | Launch the TapeTrack Server with the -B argument pointing to the eBPF table: | ||
+ | |||
+ | < | ||
+ | ./ | ||
+ | </ | ||
+ | |||
+ | This enables dynamic IP blocking. When a client sends a non-TapeTrack packet, its IP will be added to the eBPF table and blocked at the kernel level for the duration of the time-out period. | ||
+ | |||
+ | ==== Monitor and Verify ==== | ||
+ | |||
+ | To confirm that IPs are being added and removed correctly: | ||
+ | |||
+ | < | ||
+ | bpftool map dump name tapetrack_block_map | ||
+ | </ | ||
+ | |||
+ | You should see entries corresponding to banned IP addresses. | ||
+ | |||
+ | ===== Notes ===== | ||
+ | |||
+ | eBPF integration is optional but recommended for public-facing servers | ||
+ | |||
+ | Ensure firewall rules do not conflict with eBPF behavior | ||
+ | |||
+ | TapeTrack will manage the table dynamically — manual edits may be overwritten | ||
+ | |||
+ | ===== See Also ===== | ||
+ | |||
+ | [[technote: | ||
+ | |||
+ | |||
+ | |||
+ | {{tag> |
technote/ebpf_configuration.1759459455.txt.gz · Last modified: 2025/10/03 02:44 by Scott Cunliffe