mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
MFC r285945, r285960:
Respect pf rule log option before log dropped packets with IP options or dangerous v6 headers Reviewed by: gnn, eri Approved by: gnn, glebius Obtained from: pfSense Sponsored by: Netgate Differential Revision: https://reviews.freebsd.org/D3222
This commit is contained in:
parent
372a5a5fd3
commit
bbff73ecb5
1 changed files with 2 additions and 2 deletions
|
|
@ -5991,7 +5991,7 @@ done:
|
|||
!((s && s->state_flags & PFSTATE_ALLOWOPTS) || r->allow_opts)) {
|
||||
action = PF_DROP;
|
||||
REASON_SET(&reason, PFRES_IPOPTIONS);
|
||||
log = 1;
|
||||
log = r->log;
|
||||
DPFPRINTF(PF_DEBUG_MISC,
|
||||
("pf: dropping packet with ip options\n"));
|
||||
}
|
||||
|
|
@ -6423,7 +6423,7 @@ done:
|
|||
!((s && s->state_flags & PFSTATE_ALLOWOPTS) || r->allow_opts)) {
|
||||
action = PF_DROP;
|
||||
REASON_SET(&reason, PFRES_IPOPTIONS);
|
||||
log = 1;
|
||||
log = r->log;
|
||||
DPFPRINTF(PF_DEBUG_MISC,
|
||||
("pf: dropping packet with dangerous v6 headers\n"));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue