Listener/Logger: A simple RUST project on Linux OS - Part 1
The project, named Raptor6, is a simple service written in Rust that listens on a specific network port and echoes back any data it receives. It has a strong focus (still a work in progress) on logging connection details—such as successful, closed, or failed connections—into the /var/log/raptor6/connection.log directory on a Linux system. The listener component of this service is intentionally minimal, acting solely as a simple request handler, as my primary goal is to capture all possible information from a TCP connection. As mentioned, it offers several advantages, including gathering details about the connection’s related process, such as the Process ID (PID) and Parent PID (PPID), with log rotation and a readable timestamp format. After compiling it using Cargo on my Ubuntu server, I deployed it as a systemd service by providing the necessary configuration file, available in my GitHub repository for deployment on Linux systems. Additionally, I created a corresponding Dockerfile to run the project as a Docker container.
You can explore it via the following link. I welcome any suggestions you may have:
Comments
Post a Comment