Joel n.solanki wrote:

Dear all Gurus,

I have read little manul from www.php.net
I want to create web based firewall with php+iptables . Can any one give
me some documentation or guides or Examples ??I am using redhat linux


You are really getting into the deep end if you are starting off with this. You need to put in a lot of care if you are configuring IPtables this way. If you are not carefull you will find that you are locking yourself out.

Yes you do have to use exec but only the root user can change filtering rules -which you are probably aware of. Unfortunately apache runs as a non privileged user and that means you will need to foray into suexec or sudo both of which are rather dangerous.

I am not trying to discourage you but just pointing out that this is perhaps not the ideal first project with PHP.

..all things are installed.
I have little understood that i need to use shell_exec and exec to run
linux command. I am very newbie to php even dont know html so i m having
tough days with php.
if any one could help me out.
any docs.

Regards,




--
Raditha Dissanayake.
------------------------------------------------------------------------
http://www.radinks.com/sftp/         | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 128 KB | with progress bar.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to