mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-03-24 20:27:22 +01:00
see #133 #2097 skip bridge ports while doing negation in interface column, unless firewall is a bridge
This commit is contained in:
parent
581ccdc68e
commit
698286100a
@ -859,6 +859,8 @@ bool Compiler::interfaceNegationInRE::processNext()
|
||||
if (itfre==NULL)
|
||||
compiler->abort(rule, "Missing interface rule element");
|
||||
|
||||
FWOptions *fwopt = compiler->getCachedFwOpt();
|
||||
|
||||
if (itfre->getNeg())
|
||||
{
|
||||
// Use getByTypeDeep() to pick subinterfaces (vlans and such)
|
||||
@ -874,6 +876,10 @@ bool Compiler::interfaceNegationInRE::processNext()
|
||||
if (intf == NULL) continue;
|
||||
if (intf->isUnprotected()) continue;
|
||||
if (intf->isLoopback()) continue;
|
||||
|
||||
// skip bridge ports, but use them if this is bridging firewall
|
||||
if ( ! fwopt->getBool("bridging_fw") && intf->isBridgePort()) continue;
|
||||
|
||||
if (intf->getOptionsObject()->getBool("cluster_interface")) continue;
|
||||
work_interfaces.push_back(intf);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user