LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   iptables & httpd (https://www.linuxquestions.org/questions/programming-9/iptables-and-httpd-48091/)

LAR12345 03-03-2003 03:51 PM

iptables & httpd
 
Has anyone setup any type of perl script for web configuration of iptables. Everything I try errors out, I think its a permission thing but when I run the scripts by command line with the -c option it states the sintax is ok.

If anyone has any info it would be greatly appreciated.

Thanks
Larry

peter_robb 03-03-2003 04:17 PM

What exactly are you wanting to do, or what doesn't work?

LAR12345 03-03-2003 04:41 PM

Exec
 
I was trying to execute a command from a perl script, like

system ("/sbin/iptables -F FORWARD)";

somthing like that. I would like to run a few other things but thats the main problem I'm having.

Thanks
Larry

LAR12345 03-03-2003 04:45 PM

Syntax
 
Sorry the command should be:

system ("/sbin/iptables -F FORWARD");

not

system ("/sbin/iptables -F FORWARD)";

Thanks
Larry

peter_robb 03-03-2003 04:53 PM

Shall I move this thread into the 'Programming' Forum where the Perl guys live?

LAR12345 03-03-2003 04:55 PM

Perl
 
Yes please,

Sorry I poseted it here!

Thanks
Larry

peter_robb 03-03-2003 04:59 PM

Don't worry,
just thought we would hit the boffins directly... :)

Moderator Note...
MOVED TO PROGRAMMING FORUM


All times are GMT -5. The time now is 01:10 PM.