Skip to content

contracker - tool for logging outbound tcp connections using eBPF

Notifications You must be signed in to change notification settings

espegro/contracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

contracker

contracker - tool for logging outbound tcp connections using eBPF

A simple rewrite of tcpconnect

Tested on RHEL8 and Fedora34+, needs python3-bcc

/etc/contracker.yaml may be used to configure port, uid or process name to be "muted" from the log.

The log file is written in JSONL format.

The provided unit file should work, but may run into SELinux issues writing to /var/log/

May be used to log tcp-forwarding using SSH or to log network activity on a multi user machine.

Typical log format:

{ "timestamp": "2021-11-19 20:20:25.287887", "user": "espegro", "uid": "127040", "comm": "nc", "pid": "380740", "ipv": "6", "srcip": "2001:700:100:202::144", "dstip": "2001:700:100:12::61", "dstport": "22" }                              

About

contracker - tool for logging outbound tcp connections using eBPF

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published