summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-03-07 10:27:20 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-03-07 10:29:58 -0800
commit3f063193874914d2a4c3d0a52d079bd81e0f4831 (patch)
tree903e95051c84706019e0acad19f146ad63eeeb05 /scripts
parent79af7637dcba8aa1d9f52655800e4ef7caedb03c (diff)
downloadvyatta-nat-3f063193874914d2a4c3d0a52d079bd81e0f4831.tar.gz
vyatta-nat-3f063193874914d2a4c3d0a52d079bd81e0f4831.zip
fix non-root iptables usage in nat
Bugfix: 2698 Align usage of sudoers /sbin/iptables in NAT to allow non-root user to run commands.
Diffstat (limited to 'scripts')
-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 9d2b4ff..d4d381c 100755
--- a/scripts/vyatta-show-nat.pl
+++ b/scripts/vyatta-show-nat.pl
@@ -19,7 +19,7 @@ my %stats = (
source => [ ],
destination => [ ],
);
-open(STATS, "iptables -t nat -L -vn |") or exit 1;
+open(STATS, "/sbin/iptables -t nat -L -vn |") or exit 1;
my $skey = "";
while (<STATS>) {
if (m/^Chain PREROUTING/) {