View this information to learn about VPN filter rules. The QIPFILTER journal is located in the QUSRSYS library and contains information about filter rule sets, as well as information about whether an IP datagram was permitted or denied. Logging is performed based on the journaling option you specify in your filter rules.
Use the Packet Rules editor in iSeries™ Navigator to activate the QIPFILTER journal. You must enable the logging function for each individual filter rule. There is no function that allows logging for all IP datagrams going into or out of the system.
To enable the QIPFILTER journal, your filters must be deactivated.
The following steps describe how to enable journaling for a particular filter rule:
If an IP datagram matches the definitions of the filter rule, an entry is made in the QIPFILTER journal.
i5/OS® automatically creates the journal the first time you activate IP packet filtering. To view the entry-specific details in the journal, you can display the journal entries on the screen or you can use an output file.
By copying the journal entries to the output file, you can easily view the entries using query utilities such as Query/400 or SQL. You can also write your own HLL programs to process the entries in the output files.
The following is an example of the Display Journal (DSPJRN) command:
DSPJRN JRN(QIPFILTER) JRNCDE((M)) ENTTYP((TF)) OUTPUT(*OUTFILE) OUTFILFMT(*TYPE4) OUTFILE(mylib/myfile) ENTDTALEN(*VARLEN *CALC)
Use the following steps to copy the QIPFILTER journal entries to the output file:
CRTDUPOBJ OBJ(QATOFIPF) FROMLIB(QSYS) OBJTYPE(*FILE) TOLIB(mylib) NEWOBJ(myfile)
If you copy the DSPJRN into an output file that does not exist, the system creates a file for you, but this file does not contain the correct field descriptions.
The QIPFILTER journal only contains permit or deny entries for filter rules where the journaling option is set to FULL. For example, if you set up only PERMIT filter rules, IP datagrams that are not explicitly permitted are denied. For those denied datagrams, no entry is added to the journal. For problem analysis you might add a filter rule that explicitly denies all other traffic and performs FULL journaling. Then, you will get DENY entries in the journal for all IP datagrams that are denied. Due to performance reasons, it is not recommended that you enable journaling for all filter rules. Once your filter sets are tested, reduce the journaling to a useful subset of entries.
See QIPFILTER journal fields for a table that describes the QIPFILTER output file.