MetaDefender Core NAS (File Storage Server)

The File Storage Server component supports its own configuration file in JSON format.

ometascan_nas.conf
Copy
Key pathRequiredValue typeAccepted valuesDescription
connection_keyyesstringA string from 4 to 64 character long containing digits from 0 to 9 and characters from a/A to z/ZAn arbitrary string that allows clients to connect to file storage server
log.streams[@].log_typeyesstring
  • file
  • syslog
Type of log device
log.streams[@].log_levelyesstring
  • dump
  • debug
  • info
  • warning
  • error
Level of log message
log.streams[@].log_pathyesstring

If log.streams[@].log_type is "file" then log.streams[@].log_path is the path to a file on file system where logs are written.

If log.streams[@].log_type is "syslog" then

  • log.streams[@].log_path can be "[tcp/udp]://host:port" where host:port is host and port to a remote syslog server that supports tcp or udp protocol.
  • log.streams[@].log_path can be "local" to write log to local syslog server (Linux only).
Location where logs are written
log.streams[@].log_formatnostringdefaultFormat of written log
server.config.hostyesstringIP address (V4/V6) or host where the file storage server service resides on
server.config.portyesnumberPort of server where the file storage server service resides on
server.config.key_pathyesstring/etc/opswat/<filename>Path to the file containing private key in X509 format. In case of Linux container-based setup, this should be an absolute mapped path.
server.config.certificate_pathyesstring/etc/opswat/<filename>Path to the file containing certificate in X509 format. In case of Linux container-based setup, this should be an absolute mapped path.
storage.database_pathnostringPath to the directory where NAS stores its database file. install-dir/data is used if the key is ignored
storage.paths[@].pathyesstringPath to the directory where NAS stores submitted files
storage.paths[@].max_size_gbyesstringMaximum storage volume in Gigabytes

Example of ometascan_nas.conf

  • When setting up on a host machine
  • When setting up in a container
Host machine
Container
Copy

Sample private (.key) and public key (.cert) in X509 format:

public.cert
Copy
private.key
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard