modulepackage
0.0.0-20241104025549-b97ba2b49c52
Repository: https://github.com/pywc/go-ntp-logger.git
Documentation: pkg.go.dev
# README
Go NTP Logger
This tool is intended to be used as a packet logger to be used in conjunction with a preferred NTP server instance. You can use this for filtering NTP packets received from desired IP address ranges.
Setup
- Clone this repo
- Install and configure dependencies
- Option 1: run
setup.sh
which installsgolang
,libpcap-dev
.chrony
, andtmux
, activates thechronyd
service, and sets up atmux
session - Option 2: install
golang
,libpcap-dev
, an NTP service, and a terminal multiplexer of your choice
- Option 1: run
- Specify the identifier and the network interface of the machine in
config/config.go
- Add a text file (e.g.
prefixes.txt
) consisting of IP prefixes desired to be logged - Run
sudo su
- Run
go run .
- Detach from the terminal multiplexer (e.g.
tmux
) - See the pcap files in the
output
folder (pcap files are rotated every midnight)