Respect pf rule log option before log dropped packets with IP options or
dangerous v6 headers Reviewed by: gnn, eri Approved by: gnn Obtained from: pfSense MFC after: 3 days Sponsored by: Netgate Differential Revision: https://reviews.freebsd.org/D3222
This commit is contained in:
parent
90f99cb099
commit
e348ebeae9
@ -5895,7 +5895,8 @@ done:
|
||||
!((s && s->state_flags & PFSTATE_ALLOWOPTS) || r->allow_opts)) {
|
||||
action = PF_DROP;
|
||||
REASON_SET(&reason, PFRES_IPOPTIONS);
|
||||
log = 1;
|
||||
if (r->log)
|
||||
log = 1;
|
||||
DPFPRINTF(PF_DEBUG_MISC,
|
||||
("pf: dropping packet with ip options\n"));
|
||||
}
|
||||
@ -6329,7 +6330,8 @@ done:
|
||||
!((s && s->state_flags & PFSTATE_ALLOWOPTS) || r->allow_opts)) {
|
||||
action = PF_DROP;
|
||||
REASON_SET(&reason, PFRES_IPOPTIONS);
|
||||
log = 1;
|
||||
if (r->log)
|
||||
log = 1;
|
||||
DPFPRINTF(PF_DEBUG_MISC,
|
||||
("pf: dropping packet with dangerous v6 headers\n"));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user