i'm working on a web based authentication thing for people on a wlan. when they successfully log in, they can surf freely. so, in the background perl needs to update the iptables rulesets.
I see a problem:
Your webserver should be running as nobody. Nobody does not have permissions to run iptables. Giving nobody permission makes me leary that you'll be opening up other security issues.