1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-05-10 11:05:06 +02:00

* IPTImporter.cpp (IPTImporter::IPTImporter): fixed #1511, SF bug 3012953:

iptables import parse error icmp_type any
This commit is contained in:
Vadim Kurland
2010-06-08 19:26:50 +00:00
parent 9f00e4e619
commit 89128241ed
5 changed files with 15 additions and 1 deletions

View File

@@ -1 +1 @@
#define BUILD_NUM 2962
#define BUILD_NUM 2963

View File

@@ -1,3 +1,8 @@
2010-06-08 Vadim Kurland <vadim@vk.crocodile.org>
* IPTImporter.cpp (IPTImporter::IPTImporter): fixed #1511, SF bug 3012953:
iptables import parse error icmp_type any
2010-06-07 Vadim Kurland <vadim@vk.crocodile.org>
* CompilerDriver_pix_run.cpp (CompilerDriver_pix::pixNetworkZoneChecks):

View File

@@ -78,6 +78,8 @@ IPTImporter::IPTImporter(FWObject *lib,
clear();
icmp_specs["any"] = std::pair<int,int>(-1, -1);
icmp_specs["echo-reply"] = std::pair<int,int>(0, 0);
// all "unreachables"

View File

@@ -63,6 +63,8 @@ TCP Service object: tcp 202-202:
TCP Service object: tcp 204-204:
TCP Service object: tcp 206-206:
TCP Service object: tcp 2222-2222:
ICMP Service object: icmp 3/-1
ICMP Service object: icmp 3/6
Custom Service object: cust-1-: iptables: -m length --length 400:65535
Custom Service object: cust-2-: iptables: -m recent --name badguy --rcheck --seconds 60
Custom Service object: cust-3-: iptables: -m recent --name badguy --set

View File

@@ -132,6 +132,11 @@
-A user_chain -m multiport -s 128.143.0.0/16 -p tcp --ports 548,201,202,204,206 -j ACCEPT
-A user_chain -m multiport -s 128.143.0.0/16 -p tcp --ports 2222 -j ACCEPT
# icmp
-A user_chain -p icmp -s 128.143.0.0/16 --icmp-type any -j ACCEPT
-A user_chain -p icmp -s 128.143.0.0/16 --icmp-type 3 -j ACCEPT
-A user_chain -p icmp -s 128.143.0.0/16 --icmp-type network-unknown -j ACCEPT
# module length
-A user_chain -m length --length 400:65535 -j DROP