summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/firewall/vyatta-firewall.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/firewall/vyatta-firewall.pl b/scripts/firewall/vyatta-firewall.pl
index 9328dfa..888563e 100755
--- a/scripts/firewall/vyatta-firewall.pl
+++ b/scripts/firewall/vyatta-firewall.pl
@@ -729,6 +729,10 @@ sub setup_chain {
run_cmd("$iptables_cmd -t $table --new-chain $chain", 0, 0);
die "iptables error: $table $chain --new-chain: $!" if ($? >> 8);
set_default_policy($table, $chain, $iptables_cmd, $policy);
+ } else {
+ printf STDERR 'Firewall config error: '
+. "Chain \"$chain\" being used in system. Cannot use it as a ruleset name\n";
+ exit 1;
}
}