diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-03-07 10:27:20 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-03-07 10:29:58 -0800 |
commit | 3f063193874914d2a4c3d0a52d079bd81e0f4831 (patch) | |
tree | 903e95051c84706019e0acad19f146ad63eeeb05 /scripts | |
parent | 79af7637dcba8aa1d9f52655800e4ef7caedb03c (diff) | |
download | vyatta-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-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 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/) { |