NetBSD-Users archive

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

Re: Setting a rule for NPF



On Dec 31, 11:59am, rockyhotas%post.com@localhost ("Rocky Hotas") wrote:
-- Subject: Re: Setting a rule for NPF

| > Sent: Tuesday, December 30, 2014 at 10:08 PM
| > From: "Christos Zoulas" <christos%astron.com@localhost>
| > To: netbsd-users%netbsd.org@localhost
| > Subject: Re: Setting a rule for NPF
| >
| [...]
| > >procedure "log" {
| > >     log: npflog0
| > >}
| > >
| > >group (default) {
| > >
| > >pass proto icmp apply "log" 
| [...]
| > I think that should work.
| 
| I ran
| 
| npf_ext_log
| npf_ext_normalise
| ifconfig npflog0 create
| 
| But when I run
| 
| npfctl reload
| 
| it gives an error on the rule inside the group:
| 
| syntax error near 'apply'

pass proto icmp from any to any apply "log"

I will check the BNF if the statement that produces a syntax error
should be allowed by the grammar.

christos


Home | Main Index | Thread Index | Old Index