Configuration
Configuration
Section titled “Configuration”Customize HookProbe to match your deployment requirements.
Configuration Files
Section titled “Configuration Files”| File | Purpose |
|---|---|
/etc/hookprobe/network-config.sh |
Network and XDP settings |
/etc/hookprobe/config.yaml |
Advanced configuration |
/etc/hookprobe/dnsxai.yaml |
DNS protection settings |
/etc/hookprobe/dsm.yaml |
Mesh configuration |
Network Configuration
Section titled “Network Configuration”Primary Settings
Section titled “Primary Settings”# Primary network interface (auto-detected)PRIMARY_NIC="eth0"
# XDP/eBPF DDoS mitigationXDP_ENABLED=falseXDP_MODE="auto" # auto, drv, skb
# Deployment roleDEPLOYMENT_ROLE="server" # server, endpoint
# QSecBit thresholdsQSECBIT_AMBER_THRESHOLD=0.45QSECBIT_RED_THRESHOLD=0.70
# Privacy settingsANONYMIZE_IP_ADDRESSES=trueANONYMIZE_MAC_ADDRESSES=trueCOLLECT_FULL_PAYLOAD=falseApply Changes
Section titled “Apply Changes”sudo systemctl restart hookprobe-provision.servicesudo systemctl restart hookprobe-agent.serviceXDP Configuration
Section titled “XDP Configuration”Enable XDP
Section titled “Enable XDP”XDP_ENABLED=trueXDP Mode
Section titled “XDP Mode”| Mode | Description |
|---|---|
auto |
Select best available |
drv |
Native driver mode (fastest) |
skb |
Generic mode (all NICs) |
Rate Limits
Section titled “Rate Limits”# DDoS mitigation settingsXDP_RATE_LIMIT_PPS=10000XDP_SYN_RATE_LIMIT=1000XDP_UDP_RATE_LIMIT=5000Verify XDP
Section titled “Verify XDP”ip link show | grep xdphookprobe-ctl metrics | grep xdpQSecBit Tuning
Section titled “QSecBit Tuning”Thresholds
Section titled “Thresholds”# Conservative (more alerts)QSECBIT_AMBER_THRESHOLD=0.30QSECBIT_RED_THRESHOLD=0.50
# DefaultQSECBIT_AMBER_THRESHOLD=0.45QSECBIT_RED_THRESHOLD=0.70
# Relaxed (fewer alerts)QSECBIT_AMBER_THRESHOLD=0.60QSECBIT_RED_THRESHOLD=0.85Component Weights
Section titled “Component Weights”Edit /etc/hookprobe/config.yaml:
qsecbit: weights: threats: 0.30 mobile: 0.20 ids: 0.25 xdp: 0.15 network: 0.02 dnsxai: 0.08dnsXai Configuration
Section titled “dnsXai Configuration”Blocklists
Section titled “Blocklists”dnsxai: blocklists: - "https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts" - "https://blocklistproject.github.io/Lists/tracking.txt" - "https://blocklistproject.github.io/Lists/malware.txt"
# Custom blocklist (local) custom_blocklist: "/etc/hookprobe/blocked-domains.txt"Whitelist
Section titled “Whitelist”dnsxai: whitelist: - "example.com" - "*.mycompany.com"ML Settings
Section titled “ML Settings”dnsxai: model: "hookprobe-dns-classifier-v3" confidence_threshold: 0.85 entropy_threshold: 4.0 enable_cname_uncloaking: trueMesh Configuration
Section titled “Mesh Configuration”DSM Settings
Section titled “DSM Settings”dsm: node: id: "${HOOKPROBE_NODE_ID}" role: "edge"
gossip: port: 7946 bootstrap_nodes: - "validator1.hookprobe.mesh:7946" - "validator2.hookprobe.mesh:7946"
consensus: epoch_duration: 300 quorum_threshold: 0.67HTP Settings
Section titled “HTP Settings”htp: port: 8144 heartbeat_interval: 30 session_timeout: 300VLAN Configuration (Fortress)
Section titled “VLAN Configuration (Fortress)”VLAN Definitions
Section titled “VLAN Definitions”vlans: - id: 10 name: "iot" policy: "internet_only" subnet: "192.168.10.0/24"
- id: 20 name: "cameras" policy: "nvr_only" subnet: "192.168.20.0/24"
- id: 30 name: "guest" policy: "isolated" subnet: "192.168.30.0/24"
- id: 40 name: "trusted" policy: "full_access" subnet: "192.168.40.0/24"
- id: 99 name: "quarantine" policy: "blocked" subnet: "192.168.99.0/24"OpenFlow Rules
Section titled “OpenFlow Rules”openflow: rules: - priority: 100 match: "ct_state=+est" action: "normal"
- priority: 50 match: "dl_vlan=10,nw_dst=192.168.40.0/24" action: "drop"
- priority: 50 match: "dl_vlan=40" action: "normal"Logging
Section titled “Logging”Log Levels
Section titled “Log Levels”logging: level: "INFO" # DEBUG, INFO, WARNING, ERROR format: "json" max_size_mb: 100 max_files: 10 compress: trueLog Destinations
Section titled “Log Destinations”logging: destinations: - type: "file" path: "/var/log/hookprobe/agent.log"
- type: "syslog" address: "localhost:514"
- type: "victoria_logs" url: "http://localhost:9428"Systemd Environment
Section titled “Systemd Environment”Override Service Config
Section titled “Override Service Config”sudo systemctl edit hookprobe-agent.serviceExample Overrides
Section titled “Example Overrides”[Service]Environment="XDP_ENABLED=true"Environment="LOG_LEVEL=DEBUG"Environment="DEPLOYMENT_ROLE=endpoint"Apply Overrides
Section titled “Apply Overrides”sudo systemctl daemon-reloadsudo systemctl restart hookprobe-agent.serviceEnvironment Variables
Section titled “Environment Variables”| Variable | Default | Description |
|---|---|---|
PRIMARY_NIC |
auto | Network interface |
XDP_ENABLED |
false | Enable XDP |
DEPLOYMENT_ROLE |
server | server or endpoint |
LOG_LEVEL |
INFO | Log verbosity |
QSECBIT_AMBER |
0.45 | Amber threshold |
QSECBIT_RED |
0.70 | Red threshold |
Validation
Section titled “Validation”Check Configuration
Section titled “Check Configuration”hookprobe-ctl config validateView Active Config
Section titled “View Active Config”hookprobe-ctl config showTest Changes
Section titled “Test Changes”# Dry runhookprobe-ctl config test --file /etc/hookprobe/config.yamlNext Steps
Section titled “Next Steps”- CLI Reference - Management commands
- Hot Shot Mode - Performance tuning
- Debugging - Troubleshooting