Environment variable in suricata.yaml configuration

Hello,

I want to use an environment variable echo HOME_NETWORK=[172.16.233.0/24] as HOME_NET parameter in suricata.yaml file.

I have tried

HOME_NET: "${HOME_NETWORK}"
HOME_NET: ${HOME_NETWORK}
HOME_NET: $HOME_NETWORK
HOME_NET: "$HOME_NETWORK"

But I can’t get it to resolve it. Is there no way of doing this? I am doing this because suricata is running in a container and I would like to set this value from a compose file.

Thanks

Suricata won’t use environment variables in place of rule variables.

You should be able to handle this in your containers “start-suricata” step before launching Suricata