# LEAF-PROTO prototype config — run on the LEAF VM (eth1 P2P link to VIPERA). # Secrets stay in env: export LEAF_VYOS_KEY=... before starting the controller. vyos: url: "https://10.0.249.0:8443" key_env: LEAF_VYOS_KEY # Router serves a self-signed CN=localhost cert with no IP SAN, so plain # CA/hostname verification cannot work; trust is anchored on the pinned # fingerprint below (regenerate with: # echo | openssl s_client -connect 10.0.249.0:8443 2>/dev/null | openssl x509 -noout -fingerprint -sha256) tls_cert_pin: "21:3A:73:9A:B5:EE:8A:83:F8:50:E8:F9:4E:0C:DD:28:81:29:75:1F:33:18:F9:C9:0A:9C:AB:F0:91:EF:3C:C4" timeout: 60 retries: 2 block_group: IDS-BLOCK ensure_primitives: true adopt_foreign_members: false # this dedicated group is owned by durable controller state save_config: false # transient membership; SQLite is the durable desired state eve: path: /var/log/suricata-leaf/eve.json checkpoint: true # resume at the sqlite-persisted offset after restarts alert_socket: path: /run/suricata/alerts.sock # AF_UNIX listener owned by this controller; # suricata unix_stream connects as the client queue_size: 1000 audit: max_bytes: 16777216 # rotate decisions.jsonl at 16 MiB... keep: 3 # ...keeping three rotated files policy: mode: threshold min_hits: 2 window_seconds: 300 ttl_seconds: 3600 max_blocks: 50 sids_only: [1000001, 1000030] # lab-only automatic actions; expand after validating rules block_src: true # permit source actions for the explicitly allowed lab SIDs allow_cidrs: # never block these (management/fabric floor) - 10.0.249.0/31 # VIPERA<->sensor P2P link - 192.168.88.0/27 # uplink transit - 192.168.1.0/24 # management LAN (my workstation path) - 192.168.100.0/24 # LEAF management LAN (sensor itself) state_db: /var/lib/leaf-controller/state.sqlite audit_log: /var/log/leaf-controller/decisions.jsonl poll_interval: 0.2 router_interval: 2 batch_delay: 0.2 metrics: # stats records: counting only, never policy input reconcile_interval: 30 # = suricata stats period; one health line per window capture_interval: 3600 # capture.log metrics line cadence (s) capture_log: /var/log/leaf-controller/capture.log capture_max_bytes: 10485760 # rotate at 10 MiB... capture_log_keep: 6 # ...keeping six rotated files log_level: INFO