Add ntp protocol sniffing

This commit is contained in:
k9982874 2025-03-15 18:10:35 +08:00 committed by 世界
parent 52d1fcffe2
commit 9d79903da5
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
6 changed files with 96 additions and 0 deletions

View file

@ -607,6 +607,7 @@ func (r *Router) actionSniff(
sniff.UTP,
sniff.UDPTracker,
sniff.DTLSRecord,
sniff.NTP,
}
}
err = sniff.PeekPacket(

View file

@ -368,6 +368,8 @@ func (r *RuleActionSniff) build() error {
r.StreamSniffers = append(r.StreamSniffers, sniff.SSH)
case C.ProtocolRDP:
r.StreamSniffers = append(r.StreamSniffers, sniff.RDP)
case C.ProtocolNTP:
r.PacketSniffers = append(r.PacketSniffers, sniff.NTP)
default:
return E.New("unknown sniffer: ", name)
}