Now I see... The program "sudo" was not installed.

I create two shell script:

------------ sh_delete.sh ----
shorewall delete eth2:$1 zone1
shorewall add    eth2:$1 zone2

------------ sh_add.sh ----
shorewall delete eth2:$1 zone2
shorewall add    eth2:$1 zone1

And put in /etc/sudoers:

www-data ALL=NOPASSWD: /sbin/sh_delete.sh
www-data ALL=NOPASSWD: /sbin/sh_add.sh

And in perl script I put:

`sudo /sbin/sh_add.sh $ip`;

And now this works okay.

Now I will create a admin.cgi to
control Users, Passwords, Times,
Permissions, and others things.

And I would like to know how to
verify how many "bytes" a IP (client)
have used in the conection,
using Shorewall accounting.

Thank you very much.

Sávio Sampaio

      Abra sua conta no Yahoo! Mail, o único sem limite de espaço para 

This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
Shorewall-users mailing list

Reply via email to