mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-16 09:59:37 +02:00
* safety_net_acl: fixed #1687 "temporary access list commands
syntax is incorrect". Temporary ACL generated for the Procurve platform was incorrect.
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
2010-08-17 Vadim Kurland <vadim@vk.crocodile.org>
|
2010-08-17 Vadim Kurland <vadim@vk.crocodile.org>
|
||||||
|
|
||||||
|
* safety_net_acl: fixed #1687 "temporary access list commands
|
||||||
|
syntax is incorrect". Temporary ACL generated for the Procurve
|
||||||
|
platform was incorrect.
|
||||||
|
|
||||||
* PolicyCompiler_cisco.cpp (PolicyCompiler_cisco::setAllNetworkZonesToAny):
|
* PolicyCompiler_cisco.cpp (PolicyCompiler_cisco::setAllNetworkZonesToAny):
|
||||||
fixed #1690 "IOS ACL and Procurve ACL compilers fail because
|
fixed #1690 "IOS ACL and Procurve ACL compilers fail because
|
||||||
interfaces are not assumed to have network zone "any" anymore".
|
interfaces are not assumed to have network zone "any" anymore".
|
||||||
|
|||||||
@@ -216,6 +216,13 @@ string CompilerDriver_iosacl::safetyNetInstall(Firewall *fw)
|
|||||||
(itype == "8021q"));
|
(itype == "8021q"));
|
||||||
configlet.setVariable("management_interface_is_not_vlan",
|
configlet.setVariable("management_interface_is_not_vlan",
|
||||||
(itype != "8021q"));
|
(itype != "8021q"));
|
||||||
|
|
||||||
|
if (itype == "8021q")
|
||||||
|
configlet.setVariable("management_interface_vlan_id",
|
||||||
|
ifopt->getInt("vlan_id"));
|
||||||
|
else
|
||||||
|
configlet.setVariable("management_interface_vlan_id", "");
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,13 +16,13 @@
|
|||||||
|
|
||||||
{{if ipv4}}
|
{{if ipv4}}
|
||||||
{{if management_interface_is_vlan}}
|
{{if management_interface_is_vlan}}
|
||||||
no {{$management_interface}} ip access-group tmp_acl in
|
no vlan {{$management_interface_vlan_id}} ip access-group tmp_acl in
|
||||||
no ip access-list extended tmp_acl
|
no ip access-list extended tmp_acl
|
||||||
ip access-list extended tmp_acl
|
ip access-list extended tmp_acl
|
||||||
permit ip {{$management_addr}} {{$management_netm}} any
|
permit ip {{$management_addr}} {{$management_netm}} any
|
||||||
deny ip any any
|
deny ip any any
|
||||||
exit
|
exit
|
||||||
{{$management_interface}} ip access-group tmp_acl in
|
vlan {{$management_interface_vlan_id}} ip access-group tmp_acl in
|
||||||
{{endif}}
|
{{endif}}
|
||||||
|
|
||||||
{{if management_interface_is_not_vlan}}
|
{{if management_interface_is_not_vlan}}
|
||||||
|
|||||||
Reference in New Issue
Block a user