NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Setting a rule for NPF



In article <trinity-aa537093-07cb-4629-9ee7-b44eb85ecc40-1419967367672@3capp-mailcom-lxa05>,
Rocky Hotas <rockyhotas%post.com@localhost> wrote:
>> Sent: Tuesday, December 30, 2014 at 7:54 PM
>> From: "Rocky Hotas" <rockyhotas%post.com@localhost>
>> To: "NetBSD Users Mailing List" <netbsd-users%netbsd.org@localhost>
>> Subject: Setting a rule for NPF
>[...]
>> But how can I specify the logging action?
>
>Maybe
> 
>procedure "log" {
>     log: npflog0
>}
>
>group (default) {
>
>pass proto icmp apply "log" 
>
>}
>
>?
>
>The interface should have a normal behaviour, but in the meantime I
>would like to log the reception of ICMP packets (the ping ones, for
>example).

I think that should work.

christos



Home | Main Index | Thread Index | Old Index