The homenet variable defines the networks that are considered home networks (those networks that you are monitoring and defending). It is used for Suricata and, starting in Security Onion 2.3.110, for Zeek as well. The default value is RFC1918 private address space:
A node can be assigned either the global homenet or its own homenet.
By default, a node will use the global homenet pillar value if it is defined in the global pillar file (
global: soversion: '2.3.0' hnmanager: '10.0.0.0/8,192.168.0.0/16,172.16.0.0/12'
In order to define a per node homenet, it can be defined in the minion pillar file (
sensor: interface: 'bond0' mainip: '172.16.106.112' mainint: 'eth0' zeek_lbprocs: 5 suriprocs: 2 manager: 'somanager1' mtu: 1500 uniqueid: 1602623674 hnsensor: 10.0.0.0/8
In order to sync the configuration change with the node, we can either wait for the node to automatically highstate on the predefined interval or we can force it. Since this homenet applies to Suricata and Zeek, we can apply the
zeek states to the node.
From the manager:
sudo salt $SENSORNAME_$ROLE state.apply suricata,zeek
From the node:
sudo salt-call state.apply suricata,zeek