Learn how to set up an intrusion detection policy for the first
time.
An intrusion detection (IDS) policy consists of two parts:
- An IDS condition that identifies the conditions (such as the port, protocol,
or IP address) that applies to the IDS policy.
- An IDS action that identifies the actions to take when a condition is
met. Multiple conditions can point to the same action.
The IDS policy file, idspolicy.conf,
is shipped with the i5/OS™ system and stored in the /QIBM/ProdData/OS400/QOS/idspolicy.conf directory.
A sample IDS policy, which is commented out, is included in this shipped file.
Ensure that you have authority to the /QIBM/UserData/OS400/QOS/ETC/ directory
and the idspolicy.conf file. Follow these steps to set
up your intrusion detection policy for the first time:
- Issue the following command to set IP QoS enablement to Yes: CHGTCPA IPQOSENB(*YES)
- Issue the WRKSYSVAL command to set the auditing system values.
Then you will see a list of system values.
- Type 2 to display the auditing options
for the QAUDLVL system value.
- Add *ATNEVT to the list of auditing options.
If there is no room in QAUDLVL to set *ATNEVT, be
sure that *AUDLVL2 is set in QAUDLVL, as described below. Press PF3 to exit.
- Type 2 to display the auditing options
for the QAUDLVL2 system value.
- Add *ATNEVT to the list of auditing options.
Press PF3 to exit.
- To configure the IDS policy file, copy the file from /QIBM/ProdData/OS400/QOS/idspolicy.conf to /QIBM/UserData/OS400/QOS/ETC/.
- Edit the IDS policy file.
- Start the QoS server using the following command: strtcpsvr
*qos
When you start the QoS server, it looks
in the ETC directory for the idspolicy.conf file.
If the idspolicy.conf file is not found, it is copied
from the /QIBM/ProdData/OS400/QOS/ directory into the /QIBM/UserData/OS400/QOS/ETC/ directory.
- Issue the Work with Active Jobs (WRKACTJOB) command to verify that
the QoS server has started. You will see QTOQSRVR in the list of started servers.
Now your system is ready to catch suspicious events coming in through
the TCP/IP network.