CentOS 5.3 apache sudo "can't set runas group vector"

I'm running out of ideas (and of forum threads to try), so here is my problem:
I want to create a web page using perl to configure a router.
The router is going to be used to limit bandwidth to some IPs and also to block some IPs.
I'm using Centos 5.3 which comes with httpd and suexec pre-installed.
The command I want to use are "route add -host ..." and "tc filter ...", these commands can only be run as root.

########################################
When running the script, the user is indeed "test", but for some reason, either command "/sbin/route add -host $ip reject" or "sudo /sbin/route add -host $ip reject" won't be executed.