diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2008-02-22 15:47:34 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2008-02-22 15:47:34 -0800 |
commit | c9294916b253c0a940fa5206d116c58c6556a817 (patch) | |
tree | 877979a3c16f041a78884c6f74321bbeee76283e /scripts | |
parent | 0d1bc4bc9d33d163a9482e7c6567f3cd94a99507 (diff) | |
download | vyatta-nat-c9294916b253c0a940fa5206d116c58c6556a817.tar.gz vyatta-nat-c9294916b253c0a940fa5206d116c58c6556a817.zip |
fix clear commands for operator level
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vyatta-clear-nat | 4 | ||||
-rwxr-xr-x | scripts/vyatta-update-nat.pl | 6 |
2 files changed, 4 insertions, 6 deletions
diff --git a/scripts/vyatta-clear-nat b/scripts/vyatta-clear-nat new file mode 100755 index 0000000..ffa021d --- /dev/null +++ b/scripts/vyatta-clear-nat @@ -0,0 +1,4 @@ +#!/bin/sh + +iptables-save -t nat | iptables-restore + diff --git a/scripts/vyatta-update-nat.pl b/scripts/vyatta-update-nat.pl index 19255ed..acfc0b8 100755 --- a/scripts/vyatta-update-nat.pl +++ b/scripts/vyatta-update-nat.pl @@ -24,12 +24,6 @@ sub raw_cleanup { } } -# for "clear nat translations" -if ($ARGV[0] eq "clearnattranslations") { - system("iptables-save -t nat | iptables-restore"); - exit 0; -} - my $config = new VyattaConfig; $config->setLevel("service nat rule"); my %rules = $config->listNodeStatus(); |