summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2007-12-28 15:54:23 -0800
committerBob Gilligan <gilligan@vyatta.com>2007-12-28 15:54:23 -0800
commitbd73e7ce89b4692a20db92d277358752455ab4b3 (patch)
treebc96523a8ec0ee51f9974ab0909aac2fab10607e /scripts
parent8e9001366f04fc3eb695e0368ef894bd3d21e958 (diff)
downloadvyatta-cfg-firewall-bd73e7ce89b4692a20db92d277358752455ab4b3.tar.gz
vyatta-cfg-firewall-bd73e7ce89b4692a20db92d277358752455ab4b3.zip
Bugfix: 2553
Eliminate debug output from firewall configuration script so that user is not confused by it.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/firewall/vyatta-firewall.pl14
1 files changed, 0 insertions, 14 deletions
diff --git a/scripts/firewall/vyatta-firewall.pl b/scripts/firewall/vyatta-firewall.pl
index 93cbd09..c8b557e 100755
--- a/scripts/firewall/vyatta-firewall.pl
+++ b/scripts/firewall/vyatta-firewall.pl
@@ -79,21 +79,16 @@ sub update_rules() {
next;
} elsif ($nodes{$name} eq "added") {
# create the chain
- print "creating chain $name\n";
setup_chain("$name");
# handle the rules below.
} elsif ($nodes{$name} eq "deleted") {
# delete the chain
- print "deleting chain $name\n";
delete_chain("$name");
next;
} elsif ($nodes{$name} eq "changed") {
# handle the rules below.
}
- print "firewall name $name\n";
- #print "-----------------------------------------------\n";
-
# set our config level to rule and get the rule numbers
$config->setLevel("firewall name $name rule");
@@ -111,8 +106,6 @@ sub update_rules() {
my $iptablesrule = 1;
foreach $rule (sort numerically keys %rulehash) {
- #print "rule: $rule\t\t$rulehash{$rule}\n";
-
if ("$rulehash{$rule}" eq "static") {
my $node = new VyattaIpTablesRule;
$node->setupOrig("firewall name $name rule $rule");
@@ -129,8 +122,6 @@ sub update_rules() {
$stateful = 1;
}
- #print "node print:\n";
- #$node->print();
my ($err_str, @rule_strs) = $node->rule();
if (defined($err_str)) {
print STDERR "Firewall config error: $err_str\n";
@@ -140,7 +131,6 @@ sub update_rules() {
if (!defined) {
last;
}
- print "iptables --insert $name $iptablesrule $_\n";
system ("iptables --insert $name $iptablesrule $_") == 0
|| die "iptables error: $? - $_\n";
$iptablesrule++;
@@ -163,7 +153,6 @@ sub update_rules() {
my $ipt_rules = $oldnode->get_num_ipt_rules();
for (1 .. $ipt_rules) {
- print "iptables --delete $name $iptablesrule\n";
system ("iptables --delete $name $iptablesrule") == 0
|| die "iptables error: $? - $rule\n";
}
@@ -172,7 +161,6 @@ sub update_rules() {
if (!defined) {
last;
}
- print "iptables --insert $name $iptablesrule $_\n";
system ("iptables --insert $name $iptablesrule $_") == 0
|| die "iptables error: $? - $rule_str\n";
$iptablesrule++;
@@ -183,7 +171,6 @@ sub update_rules() {
my $ipt_rules = $node->get_num_ipt_rules();
for (1 .. $ipt_rules) {
- print "iptables --delete $name $iptablesrule\n";
system ("iptables --delete $name $iptablesrule") == 0
|| die "iptables error: $? - $rule\n";
}
@@ -267,7 +254,6 @@ sub update_ints() {
$rule = "--$action $direction $num";
}
- print "iptables $rule\n";
$ret = system("iptables $rule");
if ($ret >> 8) {
exit 1;