Configuration
Customize HookProbe to match your deployment requirements.
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
Primary Settings
# Primary network interface (auto-detected)
# XDP/eBPF DDoS mitigation
XDP_MODE="auto" # auto, drv, skb
DEPLOYMENT_ROLE="server" # server, endpoint
QSECBIT_AMBER_THRESHOLD=0.45
QSECBIT_RED_THRESHOLD=0.70
ANONYMIZE_IP_ADDRESSES=true
ANONYMIZE_MAC_ADDRESSES=true
COLLECT_FULL_PAYLOAD=false
Apply Changes
sudo systemctl restart hookprobe-provision.service
sudo systemctl restart hookprobe-agent.service
XDP Configuration
Enable XDP
XDP Mode
| Mode | Description |
|---|
auto | Select best available |
drv | Native driver mode (fastest) |
skb | Generic mode (all NICs) |
Rate Limits
# DDoS mitigation settings
Verify XDP
hookprobe-ctl metrics | grep xdp
QSecBit Tuning
Thresholds
# Conservative (more alerts)
QSECBIT_AMBER_THRESHOLD=0.30
QSECBIT_RED_THRESHOLD=0.50
QSECBIT_AMBER_THRESHOLD=0.45
QSECBIT_RED_THRESHOLD=0.70
QSECBIT_AMBER_THRESHOLD=0.60
QSECBIT_RED_THRESHOLD=0.85
Component Weights
Edit /etc/hookprobe/config.yaml:
dnsXai Configuration
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
ML Settings
model: "hookprobe-dns-classifier-v3"
confidence_threshold: 0.85
enable_cname_uncloaking: true
Mesh Configuration
DSM Settings
id: "${HOOKPROBE_NODE_ID}"
- "validator1.hookprobe.mesh:7946"
- "validator2.hookprobe.mesh:7946"
HTP Settings
VLAN Configuration (Fortress)
VLAN Definitions
subnet: "192.168.10.0/24"
subnet: "192.168.20.0/24"
subnet: "192.168.30.0/24"
subnet: "192.168.40.0/24"
subnet: "192.168.99.0/24"
OpenFlow Rules
match: "dl_vlan=10,nw_dst=192.168.40.0/24"
Logging
Log Levels
level: "INFO" # DEBUG, INFO, WARNING, ERROR
Log Destinations
path: "/var/log/hookprobe/agent.log"
url: "http://localhost:9428"
Systemd Environment
Override Service Config
sudo systemctl edit hookprobe-agent.service
Example Overrides
Environment="XDP_ENABLED=true"
Environment="LOG_LEVEL=DEBUG"
Environment="DEPLOYMENT_ROLE=endpoint"
Apply Overrides
sudo systemctl daemon-reload
sudo systemctl restart hookprobe-agent.service
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
Check Configuration
hookprobe-ctl config validate
View Active Config
hookprobe-ctl config show
Test Changes
hookprobe-ctl config test --file /etc/hookprobe/config.yaml
Next Steps