.
Sorry,
Now I see... The program "sudo" was not installed.
I create two shell script:
------------ sh_delete.sh ----
#!/bin/sh
shorewall delete eth2:$1 zone1
shorewall add eth2:$1 zone2
------------------------------
------------ sh_add.sh ----
#!/bin/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
[EMAIL PROTECTED]
Abra sua conta no Yahoo! Mail, o único sem limite de espaço para
armazenamento!
http://br.mail.yahoo.com/
-------------------------------------------------------------------------
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.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users