An HTML attachment was scrubbed...
URL: 
/pipermail/mailinglist_ilug-cochin.org/attachments/20050415/39fdef34/attachment.htm
From [EMAIL PROTECTED]  Sat Apr 16 15:16:33 2005
From: [EMAIL PROTECTED] (Zaheer Mohamed Kozhakkaniyil)
Date: Sat Apr 16 15:16:18 2005
Subject: [Mailinglist] Linux at its Best
Message-ID: <[EMAIL PROTECTED]>

An HTML attachment was scrubbed...
URL: 
/pipermail/mailinglist_ilug-cochin.org/attachments/20050416/f1a6c4d2/attachment.htm
From [EMAIL PROTECTED]  Sat Apr 16 15:20:40 2005
From: [EMAIL PROTECTED] (Zaheer Mohamed Kozhakkaniyil)
Date: Sat Apr 16 15:20:25 2005
Subject: [Mailinglist] Getting Linux Onto the Desktop
Message-ID: <[EMAIL PROTECTED]>

An HTML attachment was scrubbed...
URL: 
/pipermail/mailinglist_ilug-cochin.org/attachments/20050416/50136094/attachment.htm
From [EMAIL PROTECTED]  Sat Apr 16 15:22:57 2005
From: [EMAIL PROTECTED] (Zaheer Mohamed Kozhakkaniyil)
Date: Sat Apr 16 15:22:41 2005
Subject: [Mailinglist] Mozilla Firefox
Message-ID: <[EMAIL PROTECTED]>

An HTML attachment was scrubbed...
URL: 
/pipermail/mailinglist_ilug-cochin.org/attachments/20050416/85a0a0a4/attachment.htm
From [EMAIL PROTECTED]  Sat Apr 16 15:56:10 2005
From: [EMAIL PROTECTED] (Zaheer Mohamed Kozhakkaniyil)
Date: Sat Apr 16 15:55:51 2005
Subject: [Mailinglist] Componentized Linux & Linux Standard Base
Message-ID: <[EMAIL PROTECTED]>

An HTML attachment was scrubbed...
URL: 
/pipermail/mailinglist_ilug-cochin.org/attachments/20050416/bf443c57/attachment.htm
From [EMAIL PROTECTED]  Sat Apr 16 20:15:18 2005
From: [EMAIL PROTECTED] (joel fernandes)
Date: Sat Apr 16 20:15:23 2005
Subject: [Mailinglist] executing iptables through php 
Message-ID: <[EMAIL PROTECTED]>

hi !,
i'm developing a web based firewall on linux a platform.i'm using the netfilter 
module in linux.also im using php as the scripting language.my problem is that 
im not able to run iptables command through php using shell_exec() or bactick 
operator.simple commands such as ls ,ifconfig work but not iptables.
can anyone help to get over my problem.
is that ineed to run my apache server to run as root ,if yes how do i do it.
is there any other way to get around this problem.
 your help will be appreciated.
thanx.

Yahoo! India Matrimony: Find your life partneronline.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
/pipermail/mailinglist_ilug-cochin.org/attachments/20050416/4cf34b00/attachment.htm
From [EMAIL PROTECTED]  Sat Apr 16 20:37:32 2005
From: [EMAIL PROTECTED] (Anand Gupta)
Date: Sat Apr 16 20:37:33 2005
Subject: [Mailinglist] executing iptables through php
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>

Running apache as root is not recommended. As for the reason why iptables
is not running from php is because it needs to be run as root.

You go by this workaround

1. Use the php to setup settings for iptables.
2. Use shell/perl scripting to read those settings and then call iptables
with that seperately.

This will ensure that your system won't be compromised due to some flaw in
code etc.

-- 
regards,

Anand Gupta
CEO
India Web Promoters

> hi !,
> i'm developing a web based firewall on linux a platform.i'm using the
> netfilter module in linux.also im using php as the scripting language.my
> problem is that im not able to run iptables command through php using
> shell_exec() or bactick operator.simple commands such as ls ,ifconfig work
> but not iptables.
> can anyone help to get over my problem.
> is that ineed to run my apache server to run as root ,if yes how do i do
> it.
> is there any other way to get around this problem.
>  your help will be appreciated.
> thanx.
>
> Yahoo! India Matrimony: Find your life
> partneronline._______________________________________________
> Mailinglist mailing list
> [email protected]
> http://mail.ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org
>

Reply via email to