1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-22 19:27:13 +01:00
fwbuilder/test/pix/run.all
Vadim Kurland c6aa73ff0f * NATCompiler_pix.cpp (mergeNATCmd::processNext): fixed crash in
compiler for PIX that happened when compiler tried to merge
	"global" commands and some of the interfaces of the firewall had
	dynamic address.
2008-09-21 10:32:41 +00:00

18 lines
358 B
Perl
Executable File

#!/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 || exit 1\n";
$str=~ s/^.*<Firewall [^>]+name="$fw"[^>]+>//;
}
}