mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-11 07:31:25 +02:00
checking for unsupported UserService objects in compilers for ipf, iosacl and pix
This commit is contained in:
@@ -337,6 +337,8 @@ void PolicyCompiler_iosacl::compile()
|
||||
add( new pickACL( true, "assign ACLs" ) );
|
||||
|
||||
add( new SpecialServices( "check for special services" ) );
|
||||
add( new CheckForUnsupportedUserService("check for user service") );
|
||||
|
||||
add( new checkForZeroAddr( "check for zero addresses" ) );
|
||||
add( new checkForDynamicInterface("check for dynamic interfaces" ) );
|
||||
|
||||
|
||||
@@ -408,7 +408,8 @@ void PolicyCompiler_ipf::compile()
|
||||
add( new printTotalNumberOfRules( ) );
|
||||
|
||||
add( new ItfNegation("process negation in Itf" ) );
|
||||
add( new InterfacePolicyRules("process interface policy rules and store interface ids") );
|
||||
add( new InterfacePolicyRules(
|
||||
"process interface policy rules and store interface ids"));
|
||||
|
||||
add( new recursiveGroupsInSrc("check for recursive groups in SRC"));
|
||||
add( new recursiveGroupsInDst("check for recursive groups in DST"));
|
||||
@@ -420,11 +421,15 @@ void PolicyCompiler_ipf::compile()
|
||||
add( new eliminateDuplicatesInDST("eliminate duplicates in DST") );
|
||||
add( new eliminateDuplicatesInSRV("eliminate duplicates in SRV") );
|
||||
|
||||
add( new swapMultiAddressObjectsInSrc(" swap MultiAddress -> MultiAddressRunTime in Src") );
|
||||
add( new swapMultiAddressObjectsInDst(" swap MultiAddress -> MultiAddressRunTime in Dst") );
|
||||
add( new swapMultiAddressObjectsInSrc(
|
||||
" swap MultiAddress -> MultiAddressRunTime in Src") );
|
||||
add( new swapMultiAddressObjectsInDst(
|
||||
" swap MultiAddress -> MultiAddressRunTime in Dst") );
|
||||
|
||||
add( new ExpandMultipleAddressesInSRC("expand objects with multiple addresses in SRC" ) );
|
||||
add( new ExpandMultipleAddressesInDST("expand objects with multiple addresses in DST" ) );
|
||||
add( new ExpandMultipleAddressesInSRC(
|
||||
"expand objects with multiple addresses in SRC" ) );
|
||||
add( new ExpandMultipleAddressesInDST(
|
||||
"expand objects with multiple addresses in DST" ) );
|
||||
add( new ConvertToAtomic("convert to atomic rules" ) );
|
||||
add( new DetectShadowing("Detect shadowing" ) );
|
||||
add( new simplePrintProgress() );
|
||||
@@ -451,39 +456,50 @@ void PolicyCompiler_ipf::compile()
|
||||
add( new emptyGroupsInSrv("check for empty groups in SRV") );
|
||||
|
||||
add( new ItfNegation("process negation in Itf" ) );
|
||||
add( new InterfacePolicyRules("process interface policy rules and store interface ids") );
|
||||
add( new InterfacePolicyRules(
|
||||
"process interface policy rules and store interface ids") );
|
||||
|
||||
add( new doSrcNegation("process negation in Src") );
|
||||
add( new doDstNegation("process negation in Dst") );
|
||||
add( new doSrvNegation("process negation in Srv") );
|
||||
add( new ExpandGroups( "expand groups") );
|
||||
|
||||
add( new CheckForTCPEstablished("check for TCPService objects with flag \"established\"") );
|
||||
add( new CheckForTCPEstablished(
|
||||
"check for TCPService objects with flag \"established\"") );
|
||||
add( new CheckForUnsupportedUserService("check for user service") );
|
||||
|
||||
add( new eliminateDuplicatesInSRC("eliminate duplicates in SRC") );
|
||||
add( new eliminateDuplicatesInDST("eliminate duplicates in DST") );
|
||||
add( new eliminateDuplicatesInSRV("eliminate duplicates in SRV") );
|
||||
|
||||
add( new swapMultiAddressObjectsInSrc(" swap MultiAddress -> MultiAddressRunTime in Src") );
|
||||
add( new swapMultiAddressObjectsInDst(" swap MultiAddress -> MultiAddressRunTime in Dst") );
|
||||
add( new swapMultiAddressObjectsInSrc(
|
||||
" swap MultiAddress -> MultiAddressRunTime in Src") );
|
||||
add( new swapMultiAddressObjectsInDst(
|
||||
" swap MultiAddress -> MultiAddressRunTime in Dst") );
|
||||
|
||||
add( new processMultiAddressObjectsInSrc("process MultiAddress objects in Src") );
|
||||
add( new processMultiAddressObjectsInDst("process MultiAddress objects in Dst") );
|
||||
add( new processMultiAddressObjectsInSrc(
|
||||
"process MultiAddress objects in Src") );
|
||||
add( new processMultiAddressObjectsInDst(
|
||||
"process MultiAddress objects in Dst") );
|
||||
|
||||
add( new splitIfFirewallInSrc("split rule if firewall is in Src") );
|
||||
add( new splitIfFirewallInDst("split rule if firewall is in Dst") );
|
||||
add( new fillDirection("determine directions") );
|
||||
add( new SplitDirection("split rules with direction 'both'" ) );
|
||||
add( new ExpandMultipleAddresses( "expand objects with multiple addresses" ) );
|
||||
add( new checkForDynamicInterfacesOfOtherObjects( "check for dynamic interfaces of other hosts and firewalls" ) );
|
||||
add( new ExpandMultipleAddresses(
|
||||
"expand objects with multiple addresses") );
|
||||
add( new checkForDynamicInterfacesOfOtherObjects(
|
||||
"check for dynamic interfaces of other hosts and firewalls" ));
|
||||
add( new MACFiltering("verify for MAC address filtering" ) );
|
||||
add( new checkForUnnumbered("check for unnumbered interfaces") );
|
||||
add( new specialCaseWithDynInterface( "check for a special cases with dynamic interface") );
|
||||
add( new specialCaseWithDynInterface(
|
||||
"check for a special cases with dynamic interface") );
|
||||
add( new addressRanges("expand address range objects") );
|
||||
add( new splitServices("split rules with different protocols") );
|
||||
add( new separateTCPWithFlags("separate TCP services with flags" ) );
|
||||
add( new separateSrcPort("split on TCP and UDP with source ports"));
|
||||
add( new verifyCustomServices( "verify custom services for this platform" ) );
|
||||
add( new verifyCustomServices(
|
||||
"verify custom services for this platform") );
|
||||
add( new SpecialServices("check for special services" ) );
|
||||
add( new expandAnyService("expand ANY service for stateful rules") );
|
||||
/*
|
||||
|
||||
@@ -761,6 +761,7 @@ void PolicyCompiler_pix::compile()
|
||||
add( new pickACL_v6( "assign ACLs for v6" ));
|
||||
|
||||
add( new SpecialServices( "check for special services" ));
|
||||
add( new CheckForUnsupportedUserService("check for user service") );
|
||||
add( new checkForZeroAddr( "check for zero addresses" ));
|
||||
add( new checkVersionAndDynamicInterface(
|
||||
"check for dynamic interfaces in policy rule and verify version of PIX OS"));
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ while (<>) {
|
||||
$fw=$1;
|
||||
printf "\n";
|
||||
printf "echo '******* $fw'\n";
|
||||
printf "fwb_ipf -v -f $XMLFILE $fw\n";
|
||||
printf "fwb_ipf -v -f $XMLFILE -xt $fw\n";
|
||||
$str=~ s/^.*<Firewall [^>]+name="$fw"[^>]+>//;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user