How pavel-odintsov/fastnetmon works
FastNetMon Community Edition is a DDoS detection sensor. Its principal workflow receives flow records or captured packets, interprets traffic, evaluates host and subnet thresholds, then triggers configured responses such as notifications, scripts, or BGP announcements. Separate capabilities include an API, traffic export, metrics integrations, attack PCAP capture, and router-vendor integrations. The README documents these product-level relationships; many implementation files were not sampled, so internal call paths are not asserted.
Main entry points: fastnetmon_logic.cpp Traffic detection · fastnetmon_actions.hpp Configured actions · simple_packet_parser_ng.cpp Packet parser · netflow_plugin Flow collectors
Components 21
Traffic ingestion
- Flow collectors
src/netflow_plugin - IPFIX collector
src/netflow_plugin/ipfix_collector.cpp - sFlow collector
src/sflow_plugin/sflow_collector.cpp - Packet collectors
src/afpacket_plugin/afpacket_collector.cpp - Other capture backends
src/pcap_plugin/pcap_collector.cpp
Detection and analysis
- Packet parser
src/simple_packet_parser_ng.cpp - Traffic detection
src/fastnetmon_logic.cpp - Traffic counters
src/speed_counters.cpp - Threshold configuration
src/fastnetmon_configuration_scheme.hpp - Attack PCAP capture
src/packet_storage.hpp
Response and control
- Configured actions
src/fastnetmon_actions.hpp - BGP announcements
src/actions/exabgp_action.cpp - GoBGP integration
src/actions/gobgp_action.cpp - Application API
src/api.cpp - Router integrations
src/a10_plugin
Export and observability
- Metrics exporters
src/metrics - Traffic export
src/traffic_output_formats/protobuf/protobuf_traffic_format.cpp
Other components
- Network traffic
- Metrics services
- Routers
- Operators and scripts
Connections 24
- Network traffic → Flow collectors: sends flow records
- Network traffic → IPFIX collector: sends IPFIX
- Network traffic → sFlow collector: sends sFlow
- Network traffic → Packet collectors: mirrors packets
- Network traffic → Other capture backends: provides packets
- Flow collectors → Traffic detection: supplies traffic
- IPFIX collector → Traffic detection: supplies traffic
- sFlow collector → Traffic detection: supplies traffic
- Packet collectors → Packet parser: passes packets
- Other capture backends → Packet parser: passes packets
- Packet parser → Traffic detection: normalizes traffic
- Threshold configuration → Traffic detection: sets thresholds
- Traffic detection → Traffic counters: tracks traffic
- Traffic detection → Configured actions: triggers response
- Configured actions → BGP announcements: announces blocks
- BGP announcements → Routers: announces routes
- Configured actions → Operators and scripts: notifies or runs scripts
- Configured actions → GoBGP integration: announces via GoBGP
src/actions/gobgp_action.cpp - Configured actions → Router integrations: supports router handling
- Operators and scripts → Application API: uses API
- Traffic counters → Metrics exporters: exports metrics
- Metrics exporters → Metrics services: writes metrics
- Traffic detection → Traffic export: exports traffic
- Traffic detection → Attack PCAP capture: captures attack packets