mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03:00
nwfilter: Clear all state tracking from a drop rule
Don't use state-matching in a drop rule.
This commit is contained in:
parent
3a7f2fc3b2
commit
d2327278fb
@ -1380,13 +1380,16 @@ _iptablesCreateRuleInstance(int directionIn,
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (rule->action == VIR_NWFILTER_RULE_ACTION_ACCEPT)
|
||||
target = accept_target;
|
||||
else {
|
||||
target = "DROP";
|
||||
match = NULL;
|
||||
}
|
||||
|
||||
if (match)
|
||||
virBufferVSprintf(&buf, " %s", match);
|
||||
|
||||
if (rule->action == VIR_NWFILTER_RULE_ACTION_ACCEPT)
|
||||
target = accept_target;
|
||||
else
|
||||
target = "DROP";
|
||||
|
||||
virBufferVSprintf(&buf,
|
||||
" -j %s" CMD_DEF_POST CMD_SEPARATOR
|
||||
|
Loading…
Reference in New Issue
Block a user