diff options
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(); |