Enterprise Server の監査の構成

syslog を使用して監査イベントを作成するように監査機能を構成し、イベントの送信先を指定できます。監査を有効にするには、次の手順を実行する必要があります。

  1. syslog 機能は、特定のポートでリッスンするようにします。
  2. 監査対象のサービス (MFDS やリージョンなど) のセキュリティ構成は、監査イベントを生成するように構成します。
  3. 監査イベントを syslog ポートに送信するように audit.cfg ファイルを構成します。

外部セキュリティ マネージャーの構成

MFDS またはリージョンから監査イベントを生成するには、関連する外部セキュリティ マネージャー (ESM) の [Create audit events] をクリックします。これは以下のとおり、関連する ESM の SAF セキュリティ機能の構成グループにあります。

  • MFDS の監査を有効にする場合、このオプションはセキュリティ オプションの [MF Directory Server] タブにあります。
  • リージョンの監査を有効にする場合、そのリージョンで使用されているセキュリティ マネージャーの SAF 構成でこのオプションを使用できます。
注: デフォルトの外部セキュリティ マネージャー (ESM) を使用するようにリージョンが構成されている場合、このオプションは SAF 構成の [Default ES Security] タブにあります。

特定の ESM を使用するようにリージョンが構成されている場合、SAF 構成は特定の地域の [Security] タブにあります。

関連するセキュリティ機能で、[Create audit events] をクリックしてから [Apply] をクリックします。

注: 最初に audit.cfg ファイルを作成して構成する必要があります。このファイルがないと、監査は失敗し、セキュリティ マネージャーは初期化されません。

audit.cfg の作成と構成

構成は audit.cfg ファイルで指定されます。このファイルは、Visual COBOL インストールの bin ディレクトリに作成する必要があります。デフォルトは %ProgramFiles(x86)%\Micro Focus\Visual COBOL(Windows) または $COBDIR(UNIX) です。

構成ファイルは、セクション、プロパティ、および値を含む標準の INI ファイル形式に従います。

audit.cfg ファイルは、syslog 機能を実行しているマシンおよびポートをポイントするように構成する必要があります。

構成ファイルは監査プロセスの初期化時に読み込まれます。構成ファイルに対する変更は、実行中の監査プロセスでは取り込まれません。変更した構成ファイルを再ロードするには、監査プロセスを再起動する必要があります。

次に audit.cfg 構成ファイルの例を示します。

[audit]
; The type of emitter used to output audit events, valid values [syslog]|[oldaudit].
emitter=syslog

; This section is for configuring the syslog emitter
[syslog]
; The hostname and port of the syslog collector, where the syslog packets are sent.
; The hostname may be a host name string, dotted IPv4 or hex IPv6 notation.
; If you are using TLS, the hostname value may be used for hostname verification. See serverCertHostname for more information.
hostname=
port=

; protocol: Specifies the protocol syslog should use, valid values [TCP]|[TLS].
protocol=TLS

; All configuration  values for syslog below this point are optional:
; tzKnown: If the timezone of this machine is known, this value should be 1. 
; If not known, it should be 0.
tzKnown=1
; isSynced: If this machine's clock is synced to a known external source, this must be set to 1. 
; Otherwise, it must be 0.
isSynced=0
; syncAccuracy: The accuracy to which the machine's clock is synced. This is an integer, in 
; microseconds, that the machine's clock may be off.
syncAccuracy=
; ip: The IP address of this machine. This may be a comma-delimited list, in the case of 
; multi-homed devices.
ip=192.168.0.1

; maxRetryTime: Configure how long (in seconds) the audit process should spend attempting to re-send data if a failure occurs. 
; The application will continue retrying until a time greater than this value has elapsed. 
; Negative values mean an infinite timeout. Defaults to 1. 
maxRetryTime=1 


; This section is for TLS configuration, which may be used by syslog.
[TLS]
; CARootFile: This is the certificate authority root file the client uses when connecting to verify 
; the server's certificate.
CARootFile=C:\Program Files (x86)\Micro Focus\DemoCA\private\CARootcert.pem

; All configuration values for TLS below this point are optional
; verifyServer: Specifies whether the client should verify the server's certificate or not. 
; Valid values: [true]|[false]. Default value is true.
verifyServer=true
; clientCertificate: The full file path to the client's certificate:
clientCertificate=C:\Program Files (x86)\Micro Focus\DemoCA\clicert.pem
; keyfile: The full file path to the client's key file:
keyfile=C:\Program Files (x86)\Micro Focus\DemoCA\clikey.pem
; keyfilePassphrase: If the keyfile has a passphrase, it is specified here:
keyfilePassphrase=srvrootpwd
; serverCertHostname: The value that is used to compare against the Hostname on the server's certificate. 
; If this is not specified (not present/commented out), by default the hostname specified in the syslog section is used. 
; If a value is not specified, for example 'serverCertHostname=', then the hostname verification is disabled.
serverCertHostname=