mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-03-22 19:27:13 +01:00
compiler for PIX that happened when compiler tried to merge "global" commands and some of the interfaces of the firewall had dynamic address.
18 lines
358 B
Perl
Executable File
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"[^>]+>//;
|
|
}
|
|
}
|
|
|
|
|