All Projects → mengzhuo → gontpd

mengzhuo / gontpd

Licence: other
A high performance NTP daemon written in Go.

Programming Languages

go
31211 projects - #10 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to gontpd

easy-admin
Scripts for easy system administration
Stars: ✭ 20 (-58.33%)
Mutual labels:  ntp, ntp-server
Nick-ESP8266
Nick is a series of different Nixie clocks based on ESP8266.
Stars: ✭ 36 (-25%)
Mutual labels:  ntp
NTP
NTP library for Arduino framework
Stars: ✭ 20 (-58.33%)
Mutual labels:  ntp
ntpmon
Monitor for essential NTP metrics
Stars: ✭ 27 (-43.75%)
Mutual labels:  ntp
b2ntp
Kanban style New Tab Page extension with your bookmarks and powerful search
Stars: ✭ 50 (+4.17%)
Mutual labels:  ntp
Yort.Ntp
A cross platform NTP client library for .Net platforms. Allows you to easily retrieve an accurate, current date & time from internet NTP servers.
Stars: ✭ 35 (-27.08%)
Mutual labels:  ntp
ESPNtpClient
High accuracy NTP library for ESP32 and ESP8266
Stars: ✭ 81 (+68.75%)
Mutual labels:  ntp
new-tab
⚡ A high-performance browser new tab page that gets you where you need to go faster.
Stars: ✭ 64 (+33.33%)
Mutual labels:  ntp
ansible-role-ntp-gps
Ansible Role: NTP with GPS on Raspberry Pi
Stars: ✭ 15 (-68.75%)
Mutual labels:  ntp
LongDistance
Long Distance Netflix chrome extension to replace Showgoers and Netflix Party
Stars: ✭ 37 (-22.92%)
Mutual labels:  ntp
munet
Network WiFi access, OTA, NTP time and MQTT (via PubSubClient) for ESP8266 and ESP32
Stars: ✭ 20 (-58.33%)
Mutual labels:  ntp
HitUP
Find top things in New Tab, including GitHub Trending Repositories.
Stars: ✭ 176 (+266.67%)
Mutual labels:  ntp
addon-chrony
chrony - Home Assistant Community Add-ons
Stars: ✭ 23 (-52.08%)
Mutual labels:  ntp
NTPDoser
NTP Doser is a NTP Amplification DoS/DDoS attack tool for penttesting
Stars: ✭ 96 (+100%)
Mutual labels:  ntp

GoNTPd

GoDoc Build Status

GoNTPd is an experimental high-performance NTP server written in Go. It does NOT implement a full NTP client and relies on another NTP client and server to be running on the system instead. It periodically updates its state to mirror the real NTP client/server and uses multiple threads to serve the current system time. Inspired by rsntp

Install

# require go1.11
go get github.com/mengzhuo/gontpd/cmd/gontpd

Run

gontpd -c config.yml

Config

# listen: gontpd service listen port (UDP)
listen: ':123'

# worker_num: goroutines per connection
worker_num: 1

# metric: prometheus stat listen port
metric: ':7370'

# peer_list: upstream peer list that sync to
up_state: 127.0.0.1:123
up_state_sec: 16

# acl: remote address within this list will be drop
# suggest to drop private net request(mostly are spoof request)
acl:
    - "192.168.0.0/16"
    - "172.16.0.0/12"
    - "10.0.0.0/8"
    - "100.64.0.0/10"

Operation

iptables

-A PREROUTING -p udp -m udp -t raw --dport 123 -j NOTRACK
-A OUTPUT -p udp -m udp -t raw --sport 123 -j NOTRACK

sysctl

net.core.rmem_default = 5129920
net.core.rmem_max = 5129920
net.core.wmem_default = 5129920
net.core.wmem_max = 5129920

Performance

Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
~180kpps @ GOMAXPROCS=1
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].