mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-11 07:31:25 +02:00
checks for ipv6 rules in fwb_ipt
This commit is contained in:
@@ -2204,6 +2204,8 @@ void NATCompiler_ipt::compile()
|
||||
add( new dynamicInterfaceInTSrc("set target if dynamic interface in TSrc" ) );
|
||||
add( new convertInterfaceIdToStr("prepare interface assignments") );
|
||||
|
||||
add( new CheckIfIPv6Rule("find ipv6 rules"));
|
||||
|
||||
if (fwopt->getBool("use_iptables_restore"))
|
||||
{
|
||||
// bug #1812295: we should use PrintRuleIptRstEcho not only
|
||||
|
||||
@@ -4101,8 +4101,11 @@ string PolicyCompiler_ipt::flushAndSetDefaultPolicy()
|
||||
res += printRule->_declareTable();
|
||||
res += printRule->_flushAndSetDefaultPolicy();
|
||||
res += printRule->_printOptionalGlobalRules();
|
||||
// same rules for ipv6
|
||||
res += printRule->_printOptionalGlobalRules(true);
|
||||
if (haveIPv6Rules())
|
||||
{
|
||||
// same rules for ipv6
|
||||
res += printRule->_printOptionalGlobalRules(true);
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user