From 3f063193874914d2a4c3d0a52d079bd81e0f4831 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 7 Mar 2008 10:27:20 -0800 Subject: 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. --- scripts/vyatta-show-nat.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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 () { if (m/^Chain PREROUTING/) { -- cgit v1.2.3