diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2008-03-10 11:35:02 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2008-03-10 11:35:02 -0700 |
commit | eba9b5c8fcdc941eb9b7181bfde25bc508b81888 (patch) | |
tree | eb43b6a869230a5f8941ef45b48e5cadad57348b | |
parent | cca418acc68541e8c670594d8fca4518ddc0c325 (diff) | |
download | vyatta-nat-eba9b5c8fcdc941eb9b7181bfde25bc508b81888.tar.gz vyatta-nat-eba9b5c8fcdc941eb9b7181bfde25bc508b81888.zip |
fix for bug 2975: add sudo for "iptables -L"
-rwxr-xr-x | scripts/vyatta-show-nat.pl | 2 |
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/) { |