summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2008-03-10 11:35:02 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2008-03-10 11:35:02 -0700
commiteba9b5c8fcdc941eb9b7181bfde25bc508b81888 (patch)
treeeb43b6a869230a5f8941ef45b48e5cadad57348b
parentcca418acc68541e8c670594d8fca4518ddc0c325 (diff)
downloadvyatta-nat-eba9b5c8fcdc941eb9b7181bfde25bc508b81888.tar.gz
vyatta-nat-eba9b5c8fcdc941eb9b7181bfde25bc508b81888.zip
fix for bug 2975: add sudo for "iptables -L"
-rwxr-xr-xscripts/vyatta-show-nat.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyatta-show-nat.pl b/scripts/vyatta-show-nat.pl
index d4d381c..4837840 100755
--- a/scripts/vyatta-show-nat.pl
+++ b/scripts/vyatta-show-nat.pl
@@ -19,7 +19,7 @@ my %stats = (
source => [ ],
destination => [ ],
);
-open(STATS, "/sbin/iptables -t nat -L -vn |") or exit 1;
+open(STATS, "sudo /sbin/iptables -t nat -L -vn |") or exit 1;
my $skey = "";
while (<STATS>) {
if (m/^Chain PREROUTING/) {