Sign inSign up

publicarray/rsntp

By publicarray

•Updated over 6 years ago

High-performance NTP server written in Rust. https://github.com/mlichvar/rsntp

Image
0

1.1K

publicarray/rsntp repository overview

⁠Docker container for rsntp⁠

# Build
docker build -t publicarray/rsntp .
# Run
docker run -it --rm --name rsntp -p123:123/udp publicarray/rsntp
# Or use your own arguments
docker run -it --rm --name rsntp -p123:123/udp publicarray/rsntp -- -h
docker run -it --rm --name rsntp -p123:123/udp publicarray/rsntp -d ntp
# Always restart, run as a daemon and limit logfile size
docker run -d --restart always --name rsntp -p123:123/udp --log-opt max-size=1m --log-opt max-file=3 publicarray/rsntp

⁠Prevent conntrack from filling up

# get current status:
$ conntrack -C
$ sysctl net.netfilter.nf_conntrack_max

# disable conntrack on NTP port 123
$ iptables -t raw -A PREROUTING -p udp -m udp --dport 123 -j NOTRACK
$ iptables -t raw -A OUTPUT -p udp -m udp --sport 123 -j NOTRACK

Tag summary

Content type

Image

Digest

Size

4.8 MB

Last updated

over 6 years ago

docker pull publicarray/rsntp