mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-11 07:31:25 +02:00
merging cisco and pix modules
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
# this is a comment
|
||||
#
|
||||
; this should be a comment too
|
||||
;
|
||||
|
||||
192.168.1.1
|
||||
192.168.1.2/32
|
||||
192.168.1.3/30
|
||||
192.168.2.128/25
|
||||
192.168.1.200/32 # comment again
|
||||
192.168.1.201/32 # this should work, too
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
#
|
||||
# use this table to test run-time AddressTable object
|
||||
# (this is just a small collection of addresses that sent spam to me
|
||||
# on Nov 20 2005)
|
||||
#
|
||||
151.8.224.178 # this is also a comment
|
||||
168.156.76.20
|
||||
193.207.126.36
|
||||
195.136.186.35
|
||||
196.15.136.15
|
||||
201.10.180.138
|
||||
201.17.93.16
|
||||
201.36.156.121
|
||||
202.103.25.253
|
||||
202.96.112.93
|
||||
203.162.3.209
|
||||
203.209.124.144
|
||||
210.106.193.237
|
||||
210.222.114.102
|
||||
211.144.143.143
|
||||
211.172.218.237
|
||||
211.250.16.132
|
||||
212.100.212.100
|
||||
212.21.241.31
|
||||
218.104.138.146
|
||||
218.18.72.252
|
||||
218.39.114.122
|
||||
218.55.115.43
|
||||
219.132.104.160
|
||||
220.71.17.86
|
||||
220.81.50.105
|
||||
220.91.99.46
|
||||
221.14.249.242
|
||||
221.166.177.135
|
||||
221.198.33.38
|
||||
221.202.160.233
|
||||
221.205.54.125
|
||||
221.217.44.248
|
||||
222.100.212.223
|
||||
222.121.118.144
|
||||
222.174.113.2
|
||||
58.231.13.78
|
||||
58.33.181.83
|
||||
58.53.82.190
|
||||
61.150.47.112
|
||||
61.184.14.102
|
||||
64.106.85.186
|
||||
70.228.60.100
|
||||
80.243.72.149
|
||||
80.249.77.34
|
||||
80.51.236.6
|
||||
81.196.74.125
|
||||
81.2.36.254
|
||||
82.117.221.205
|
||||
82.143.196.17
|
||||
82.77.37.174
|
||||
84.90.8.198
|
||||
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
N=$1
|
||||
|
||||
if which opendiff > /dev/null; then
|
||||
TOOL="opendiff"
|
||||
elif which tkdiff > /dev/null; then
|
||||
TOOL="tkdiff "
|
||||
else
|
||||
TOOL="diff -u -b -B"
|
||||
fi
|
||||
|
||||
$TOOL firewall${N}.fw.orig firewall${N}.fw
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
$XMLFILE=@ARGV[0];
|
||||
|
||||
$DIFFCMD="diff -U 0 -u -b -B -I \"! Generated\" ";
|
||||
|
||||
while (<>) {
|
||||
$str=$_;
|
||||
while ( $str=~ /<Firewall / ) {
|
||||
$str=~ /<Firewall [^>]+name="([^"]*).*$"/;
|
||||
$fw=$1;
|
||||
printf "$DIFFCMD %s.fw.orig %s.fw\n",$fw,$fw;
|
||||
$str=~ s/^.*<Firewall [^>]+name="$fw"[^>]+>//;
|
||||
}
|
||||
}
|
||||
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
for f in *.fw; do
|
||||
j=${f}.orig
|
||||
mv $f $j
|
||||
done
|
||||
|
||||
|
||||
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
$XMLFILE=@ARGV[0];
|
||||
|
||||
|
||||
while (<>) {
|
||||
$str=$_;
|
||||
while ( $str=~ /<Firewall / ) {
|
||||
$str=~ /<Firewall [^>]+name="([^"]*).*$"/;
|
||||
$fw=$1;
|
||||
printf "echo ====================== $fw =========================================\n";
|
||||
printf "fwb_iosacl -v -f $XMLFILE $fw\n";
|
||||
$str=~ s/^.*<Firewall [^>]+name="$fw"[^>]+>//;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
# this is a comment
|
||||
#
|
||||
; this should be a comment too
|
||||
;
|
||||
|
||||
192.168.1.1
|
||||
192.168.1.2/32
|
||||
192.168.1.3/30
|
||||
192.168.2.128/25
|
||||
192.168.1.200/32 # comment again
|
||||
192.168.1.201/32 # this should work, too
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
#
|
||||
# use this table to test run-time AddressTable object
|
||||
# (this is just a small collection of addresses that sent spam to me
|
||||
# on Nov 20 2005)
|
||||
#
|
||||
151.8.224.178 # this is also a comment
|
||||
168.156.76.20
|
||||
193.207.126.36
|
||||
195.136.186.35
|
||||
196.15.136.15
|
||||
201.10.180.138
|
||||
201.17.93.16
|
||||
201.36.156.121
|
||||
202.103.25.253
|
||||
202.96.112.93
|
||||
203.162.3.209
|
||||
203.209.124.144
|
||||
210.106.193.237
|
||||
210.222.114.102
|
||||
211.144.143.143
|
||||
211.172.218.237
|
||||
211.250.16.132
|
||||
212.100.212.100
|
||||
212.21.241.31
|
||||
218.104.138.146
|
||||
218.18.72.252
|
||||
218.39.114.122
|
||||
218.55.115.43
|
||||
219.132.104.160
|
||||
220.71.17.86
|
||||
220.81.50.105
|
||||
220.91.99.46
|
||||
221.14.249.242
|
||||
221.166.177.135
|
||||
221.198.33.38
|
||||
221.202.160.233
|
||||
221.205.54.125
|
||||
221.217.44.248
|
||||
222.100.212.223
|
||||
222.121.118.144
|
||||
222.174.113.2
|
||||
58.231.13.78
|
||||
58.33.181.83
|
||||
58.53.82.190
|
||||
61.150.47.112
|
||||
61.184.14.102
|
||||
64.106.85.186
|
||||
70.228.60.100
|
||||
80.243.72.149
|
||||
80.249.77.34
|
||||
80.51.236.6
|
||||
81.196.74.125
|
||||
81.2.36.254
|
||||
82.117.221.205
|
||||
82.143.196.17
|
||||
82.77.37.174
|
||||
84.90.8.198
|
||||
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
N=$1
|
||||
|
||||
if which opendiff > /dev/null; then
|
||||
TOOL="opendiff"
|
||||
elif which tkdiff > /dev/null; then
|
||||
TOOL="tkdiff "
|
||||
else
|
||||
TOOL="diff -u -b -B"
|
||||
fi
|
||||
|
||||
$TOOL firewall${N}.fw.orig firewall${N}.fw
|
||||
|
||||
|
||||
+14347
File diff suppressed because it is too large
Load Diff
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
$XMLFILE=@ARGV[0];
|
||||
|
||||
$DIFFCMD="diff -0 -u -b -B -I \"! Generated\" ";
|
||||
|
||||
while (<>) {
|
||||
$str=$_;
|
||||
while ( $str=~ /<Firewall / ) {
|
||||
$str=~ /<Firewall [^>]+name="([^"]*).*$"/;
|
||||
$fw=$1;
|
||||
printf "$DIFFCMD %s.fw.orig %s.fw\n",$fw,$fw;
|
||||
$str=~ s/^.*<Firewall [^>]+name="$fw"[^>]+>//;
|
||||
}
|
||||
}
|
||||
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
for f in *.fw; do
|
||||
j=${f}.orig
|
||||
mv $f $j
|
||||
done
|
||||
|
||||
|
||||
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
$XMLFILE=@ARGV[0];
|
||||
|
||||
|
||||
while (<>) {
|
||||
$str=$_;
|
||||
while ( $str=~ /<Firewall / ) {
|
||||
$str=~ /<Firewall [^>]+name="([^"]*).*$"/;
|
||||
$fw=$1;
|
||||
printf "echo ====================== $fw =========================================\n";
|
||||
printf "fwb_pix -v -f $XMLFILE $fw\n";
|
||||
$str=~ s/^.*<Firewall [^>]+name="$fw"[^>]+>//;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user