mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-11 07:31:25 +02:00
can insert NetworkIPv6 into "Network" system group
This commit is contained in:
+4
-1
@@ -128,6 +128,9 @@ FWBTree::FWBTree()
|
|||||||
systemGroupTypes[Network::TYPENAME]= ObjectGroup::TYPENAME;
|
systemGroupTypes[Network::TYPENAME]= ObjectGroup::TYPENAME;
|
||||||
systemGroupNames[Network::TYPENAME]= "Networks" ;
|
systemGroupNames[Network::TYPENAME]= "Networks" ;
|
||||||
|
|
||||||
|
systemGroupTypes[NetworkIPv6::TYPENAME]= ObjectGroup::TYPENAME;
|
||||||
|
systemGroupNames[NetworkIPv6::TYPENAME]= "Networks" ;
|
||||||
|
|
||||||
systemGroupTypes[IPv4::TYPENAME]= ObjectGroup::TYPENAME;
|
systemGroupTypes[IPv4::TYPENAME]= ObjectGroup::TYPENAME;
|
||||||
systemGroupNames[IPv4::TYPENAME]= "Addresses" ;
|
systemGroupNames[IPv4::TYPENAME]= "Addresses" ;
|
||||||
|
|
||||||
@@ -334,7 +337,7 @@ bool FWBTree::isStandardId(FWObject *obj)
|
|||||||
return standardIDs[ obj->getId() ];
|
return standardIDs[ obj->getId() ];
|
||||||
}
|
}
|
||||||
|
|
||||||
bool FWBTree::validateForInsertion(FWObject *target,FWObject *obj)
|
bool FWBTree::validateForInsertion(FWObject *target, FWObject *obj)
|
||||||
{
|
{
|
||||||
if (fwbdebug) qDebug("FWBTree::validateForInsertion target %s obj %s",
|
if (fwbdebug) qDebug("FWBTree::validateForInsertion target %s obj %s",
|
||||||
target->getTypeName().c_str(),
|
target->getTypeName().c_str(),
|
||||||
|
|||||||
@@ -3546,7 +3546,8 @@ bool ProjectPanel::isStandardId(libfwbuilder::FWObject *obj)
|
|||||||
return objectTreeFormat->isStandardId(obj);
|
return objectTreeFormat->isStandardId(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ProjectPanel::validateForInsertion(libfwbuilder::FWObject *target,libfwbuilder::FWObject *obj)
|
bool ProjectPanel::validateForInsertion(libfwbuilder::FWObject *target,
|
||||||
|
libfwbuilder::FWObject *obj)
|
||||||
{
|
{
|
||||||
return objectTreeFormat->validateForInsertion(target, obj);
|
return objectTreeFormat->validateForInsertion(target, obj);
|
||||||
}
|
}
|
||||||
|
|||||||
+9120
-6036
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!DOCTYPE FWObjectDatabase SYSTEM "fwbuilder.dtd">
|
<!DOCTYPE FWObjectDatabase SYSTEM "fwbuilder.dtd">
|
||||||
<FWObjectDatabase xmlns="http://www.fwbuilder.org/1.0/" version="6" id="root">
|
<FWObjectDatabase xmlns="http://www.fwbuilder.org/1.0/" version="7" id="root">
|
||||||
<Library color="#d2ffd0" comment="User defined objects" id="syslib001" name="User" ro="False">
|
<Library color="#d2ffd0" comment="User defined objects" id="syslib001" name="User" ro="False">
|
||||||
<ObjectGroup id="stdid01_1" name="Objects">
|
<ObjectGroup id="stdid01_1" name="Objects">
|
||||||
<ObjectGroup id="stdid01_1_og_ats_1" name="Address Tables">
|
<ObjectGroup id="stdid01_1_og_ats_1" name="Address Tables">
|
||||||
@@ -489,8 +489,7 @@
|
|||||||
<CustomServiceCommand platform="pix"/>
|
<CustomServiceCommand platform="pix"/>
|
||||||
<CustomServiceCommand platform="unknown"/>
|
<CustomServiceCommand platform="unknown"/>
|
||||||
</CustomService>
|
</CustomService>
|
||||||
</ServiceGroup>
|
</ServiceGroup><ServiceGroup id="stdid05_1_userservices" name="User"/>
|
||||||
<ServiceGroup id="stdid05_1_userservices" name="User"/>
|
|
||||||
</ServiceGroup>
|
</ServiceGroup>
|
||||||
<ObjectGroup id="stdid12_1" name="Firewalls">
|
<ObjectGroup id="stdid12_1" name="Firewalls">
|
||||||
<Firewall comment="this is simple firewall with two interfaces. Test regular policy rules, including IP_fragments rule" host_OS="openbsd" id="fw-firewall2" inactive="False" lastCompiled="1157930800" lastInstalled="0" lastModified="1202682308" name="firewall" platform="pf" ro="False" version="">
|
<Firewall comment="this is simple firewall with two interfaces. Test regular policy rules, including IP_fragments rule" host_OS="openbsd" id="fw-firewall2" inactive="False" lastCompiled="1157930800" lastInstalled="0" lastModified="1202682308" name="firewall" platform="pf" ro="False" version="">
|
||||||
@@ -10046,8 +10045,7 @@
|
|||||||
<ObjectGroup id="id40E233F9" name="Address Ranges"/>
|
<ObjectGroup id="id40E233F9" name="Address Ranges"/>
|
||||||
</ObjectGroup>
|
</ObjectGroup>
|
||||||
<ServiceGroup id="id40E233FA" name="Services">
|
<ServiceGroup id="id40E233FA" name="Services">
|
||||||
<ServiceGroup id="id40E233FA_og_tag_1" name="TagServices"/><ServiceGroup id="id40E233FB" name="Groups"/><ServiceGroup id="id40E233FC" name="ICMP"/><ServiceGroup id="id40E233FD" name="IP"/><ServiceGroup id="id40E233FE" name="TCP"/><ServiceGroup id="id40E233FF" name="UDP"/><ServiceGroup id="id40E23400" name="Custom"/>
|
<ServiceGroup id="id40E233FA_og_tag_1" name="TagServices"/><ServiceGroup id="id40E233FB" name="Groups"/><ServiceGroup id="id40E233FC" name="ICMP"/><ServiceGroup id="id40E233FD" name="IP"/><ServiceGroup id="id40E233FE" name="TCP"/><ServiceGroup id="id40E233FF" name="UDP"/><ServiceGroup id="id40E23400" name="Custom"/><ServiceGroup id="id40E233FA_userservices" name="User"/>
|
||||||
<ServiceGroup id="id40E233FA_userservices" name="User"/>
|
|
||||||
</ServiceGroup>
|
</ServiceGroup>
|
||||||
<ObjectGroup id="id40E23401" name="Firewalls"/>
|
<ObjectGroup id="id40E23401" name="Firewalls"/>
|
||||||
<IntervalGroup id="id40E23402" name="Time"/>
|
<IntervalGroup id="id40E23402" name="Time"/>
|
||||||
@@ -10067,8 +10065,7 @@
|
|||||||
<ObjectGroup id="id40D07E80" name="Address Ranges"/>
|
<ObjectGroup id="id40D07E80" name="Address Ranges"/>
|
||||||
</ObjectGroup>
|
</ObjectGroup>
|
||||||
<ServiceGroup id="id40D07E81" name="Services">
|
<ServiceGroup id="id40D07E81" name="Services">
|
||||||
<ServiceGroup id="id40D07E81_og_tag_1" name="TagServices"/><ServiceGroup id="id40D07E82" name="Groups"/><ServiceGroup id="id40D07E83" name="ICMP"/><ServiceGroup id="id40D07E84" name="IP"/><ServiceGroup id="id40D07E85" name="TCP"/><ServiceGroup id="id40D07E86" name="UDP"/><ServiceGroup id="id40D07E87" name="Custom"/>
|
<ServiceGroup id="id40D07E81_og_tag_1" name="TagServices"/><ServiceGroup id="id40D07E82" name="Groups"/><ServiceGroup id="id40D07E83" name="ICMP"/><ServiceGroup id="id40D07E84" name="IP"/><ServiceGroup id="id40D07E85" name="TCP"/><ServiceGroup id="id40D07E86" name="UDP"/><ServiceGroup id="id40D07E87" name="Custom"/><ServiceGroup id="id40D07E81_userservices" name="User"/>
|
||||||
<ServiceGroup id="id40D07E81_userservices" name="User"/>
|
|
||||||
</ServiceGroup>
|
</ServiceGroup>
|
||||||
<ObjectGroup id="id40D07E88" name="Firewalls"/>
|
<ObjectGroup id="id40D07E88" name="Firewalls"/>
|
||||||
<IntervalGroup id="id40D07E89" name="Time"/>
|
<IntervalGroup id="id40D07E89" name="Time"/>
|
||||||
@@ -10096,8 +10093,7 @@
|
|||||||
<ObjectGroup id="id44EC14038791" name="Address Ranges"/>
|
<ObjectGroup id="id44EC14038791" name="Address Ranges"/>
|
||||||
</ObjectGroup>
|
</ObjectGroup>
|
||||||
<ServiceGroup id="id44EC14048791" name="Services">
|
<ServiceGroup id="id44EC14048791" name="Services">
|
||||||
<ServiceGroup id="id44EC14058791" name="Groups"/><ServiceGroup id="id44EC14068791" name="ICMP"/><ServiceGroup id="id44EC14078791" name="IP"/><ServiceGroup id="id44EC14088791" name="TCP"/><ServiceGroup id="id44EC14098791" name="UDP"/><ServiceGroup id="id44EC140A8791" name="Custom"/><ServiceGroup id="id44EC140B8791" name="TagServices"/>
|
<ServiceGroup id="id44EC14058791" name="Groups"/><ServiceGroup id="id44EC14068791" name="ICMP"/><ServiceGroup id="id44EC14078791" name="IP"/><ServiceGroup id="id44EC14088791" name="TCP"/><ServiceGroup id="id44EC14098791" name="UDP"/><ServiceGroup id="id44EC140A8791" name="Custom"/><ServiceGroup id="id44EC140B8791" name="TagServices"/><ServiceGroup id="id44EC14048791_userservices" name="User"/>
|
||||||
<ServiceGroup id="id44EC14048791_userservices" name="User"/>
|
|
||||||
</ServiceGroup>
|
</ServiceGroup>
|
||||||
<ObjectGroup id="id44EC140C8791" name="Firewalls"/>
|
<ObjectGroup id="id44EC140C8791" name="Firewalls"/>
|
||||||
<IntervalGroup id="id44EC140D8791" name="Time"/>
|
<IntervalGroup id="id44EC140D8791" name="Time"/>
|
||||||
@@ -10125,8 +10121,7 @@
|
|||||||
<ObjectGroup id="id4386458B18448" name="DNS Names"/>
|
<ObjectGroup id="id4386458B18448" name="DNS Names"/>
|
||||||
</ObjectGroup>
|
</ObjectGroup>
|
||||||
<ServiceGroup id="id415276CF" name="Services">
|
<ServiceGroup id="id415276CF" name="Services">
|
||||||
<ServiceGroup id="id415276CF_og_tag_1" name="TagServices"/><ServiceGroup id="id415276D0" name="Groups"/><ServiceGroup id="id415276D1" name="ICMP"/><ServiceGroup id="id415276D2" name="IP"/><ServiceGroup id="id415276D3" name="TCP"/><ServiceGroup id="id415276D4" name="UDP"/><ServiceGroup id="id415276D5" name="Custom"/>
|
<ServiceGroup id="id415276CF_og_tag_1" name="TagServices"/><ServiceGroup id="id415276D0" name="Groups"/><ServiceGroup id="id415276D1" name="ICMP"/><ServiceGroup id="id415276D2" name="IP"/><ServiceGroup id="id415276D3" name="TCP"/><ServiceGroup id="id415276D4" name="UDP"/><ServiceGroup id="id415276D5" name="Custom"/><ServiceGroup id="id415276CF_userservices" name="User"/>
|
||||||
<ServiceGroup id="id415276CF_userservices" name="User"/>
|
|
||||||
</ServiceGroup>
|
</ServiceGroup>
|
||||||
<ObjectGroup id="id415276D6" name="Firewalls">
|
<ObjectGroup id="id415276D6" name="Firewalls">
|
||||||
<Firewall comment="firewall protects host it is running on Note that we set output file name to /tmp/labfw.fw to test what compiler is going to do (since it generates three files rather than one), as well as to test installer in this case " host_OS="openbsd" id="id3AF5A2BA" inactive="False" lastCompiled="1172032243" lastInstalled="1172032344" lastModified="1172032234" name="labfw-openbsd" platform="pf" ro="False" version="">
|
<Firewall comment="firewall protects host it is running on Note that we set output file name to /tmp/labfw.fw to test what compiler is going to do (since it generates three files rather than one), as well as to test installer in this case " host_OS="openbsd" id="id3AF5A2BA" inactive="False" lastCompiled="1172032243" lastInstalled="1172032344" lastModified="1172032234" name="labfw-openbsd" platform="pf" ro="False" version="">
|
||||||
@@ -11406,8 +11401,7 @@
|
|||||||
<ObjectGroup id="id4387B43F18346" name="Address Ranges"/>
|
<ObjectGroup id="id4387B43F18346" name="Address Ranges"/>
|
||||||
</ObjectGroup>
|
</ObjectGroup>
|
||||||
<ServiceGroup id="id4387B44018346" name="Services">
|
<ServiceGroup id="id4387B44018346" name="Services">
|
||||||
<ServiceGroup id="id4387B44018346_og_tag_1" name="TagServices"/><ServiceGroup id="id4387B44118346" name="Groups"/><ServiceGroup id="id4387B44218346" name="ICMP"/><ServiceGroup id="id4387B44318346" name="IP"/><ServiceGroup id="id4387B44418346" name="TCP"/><ServiceGroup id="id4387B44518346" name="UDP"/><ServiceGroup id="id4387B44618346" name="Custom"/>
|
<ServiceGroup id="id4387B44018346_og_tag_1" name="TagServices"/><ServiceGroup id="id4387B44118346" name="Groups"/><ServiceGroup id="id4387B44218346" name="ICMP"/><ServiceGroup id="id4387B44318346" name="IP"/><ServiceGroup id="id4387B44418346" name="TCP"/><ServiceGroup id="id4387B44518346" name="UDP"/><ServiceGroup id="id4387B44618346" name="Custom"/><ServiceGroup id="id4387B44018346_userservices" name="User"/>
|
||||||
<ServiceGroup id="id4387B44018346_userservices" name="User"/>
|
|
||||||
</ServiceGroup>
|
</ServiceGroup>
|
||||||
<ObjectGroup id="id4387B44718346" name="Firewalls"/>
|
<ObjectGroup id="id4387B44718346" name="Firewalls"/>
|
||||||
<IntervalGroup id="id4387B44818346" name="Time"/>
|
<IntervalGroup id="id4387B44818346" name="Time"/>
|
||||||
@@ -11481,8 +11475,7 @@
|
|||||||
<ICMPService code="0" comment="ICMP messages of this type are needed for traceroute" id="icmp-Time_exceeded" name="time exceeded" type="11"/>
|
<ICMPService code="0" comment="ICMP messages of this type are needed for traceroute" id="icmp-Time_exceeded" name="time exceeded" type="11"/>
|
||||||
<ICMPService code="1" comment="" id="icmp-Time_exceeded_in_transit" name="time exceeded in transit" type="11"/>
|
<ICMPService code="1" comment="" id="icmp-Time_exceeded_in_transit" name="time exceeded in transit" type="11"/>
|
||||||
<ICMPService code="0" comment="" id="icmp-ping_reply" name="ping reply" type="0"/>
|
<ICMPService code="0" comment="" id="icmp-ping_reply" name="ping reply" type="0"/>
|
||||||
</ServiceGroup>
|
</ServiceGroup><ServiceGroup id="stdid05_userservices" name="User"/>
|
||||||
<ServiceGroup id="stdid05_userservices" name="User"/>
|
|
||||||
</ServiceGroup>
|
</ServiceGroup>
|
||||||
<AnyNetwork comment="Any Network" id="sysid0" name="Any" address="0.0.0.0" netmask="0.0.0.0"/>
|
<AnyNetwork comment="Any Network" id="sysid0" name="Any" address="0.0.0.0" netmask="0.0.0.0"/>
|
||||||
<AnyInterval comment="Any Interval" from_day="-1" from_hour="-1" from_minute="-1" from_month="-1" from_weekday="-1" from_year="-1" id="sysid2" name="Any" to_day="-1" to_hour="-1" to_minute="-1" to_month="-1" to_weekday="-1" to_year="-1"/>
|
<AnyInterval comment="Any Interval" from_day="-1" from_hour="-1" from_minute="-1" from_month="-1" from_weekday="-1" from_year="-1" id="sysid2" name="Any" to_day="-1" to_hour="-1" to_minute="-1" to_month="-1" to_weekday="-1" to_year="-1"/>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
$XMLFILE=@ARGV[0];
|
$XMLFILE=@ARGV[0];
|
||||||
|
|
||||||
$DIFFCMD="diff -C 1 -b -B -c -I \"# Generated\" -I 'Activating ' -I '# Firewall Builder fwb_pf v'";
|
$DIFFCMD="diff -C 1 -b -B -c -I \"# Generated\" -I 'Activating ' -I '# Firewall Builder fwb_pf v' -I '===='";
|
||||||
|
|
||||||
|
|
||||||
while (<>) {
|
while (<>) {
|
||||||
|
|||||||
Reference in New Issue
Block a user