Create the following file:
This is the firewall log configuration file, where the level of packet logging is defined.
The file contains a single line, of the form:
where the value
parameter can be one of the following:
-All messages are logged)
-Information, warning, error and alert messages are logged)
-Warning, error and alert messages are logged)|
-Error and alert messages are logged)|
-Only alert messages are logged)|
so to log all packets, enter the line:
Open an OS/2 window and type the following command:
This runs the packet filter syslog daemon. A log file with today's date will
be created in \MPTN\ETC. For example:
would be the name of the file created on the 24th of August. The file will now be open.
Open \MPTN\ETC\SECURITY\FWFILTRS.CNF in an editor and add:
to the end of any rules that need to be logged.
Open another OS/2 window (you will need to, as fssd
will still be running) and type:
cfgfilt -u -d
This updates the filter rules and enables packet logging. You should notice
this being added to the log file in the other window.
To view the log file, change to the \MPTN\ETC directory and type:
where the filename parameter is the name of the log file.
This is the only way to access the log file while it is still running.
So to continue the example from above, type:
Any packets that match the rules with logging enabled will now be logged.
(Default = denied packets are logged, permitted packets are not logged)