[opensuse] cgi script to open a iptable file and modify.
Hi Does anyone on the list Distro OpenSuSE, Apache2 and use cgi and not perl cgi. Know a good mailing list to create cgi script without perl. I have a task to pull data from our iptables file into a editable html thus able to make modifications and click on a button to restart iptables. I have got a dirty hack that restarts the iptables But my boss would like a editable html form. PS I have been looking at open function But having no joy. # now write (append) to the file open(INF,"firewall"); # opens firewall file for reading located in the cgi-bin dir. Any suggestions or url's to anything similiar would be of great help. Ta -- Chuck Amadi ROK Corporation Limited Ty ROK, Dyffryn Business Park, Llantwit Major Road, Llandow, Vale Of Glamorgan. CF71 7PY Tel: 01446 795 839 Fax: 01446 794 994 International Tel: +44 1446 795 839 email: chuck.amadi@rokcorp.com This email is confidential to the addressee only. If you do not believe that you are the intended recipient, do not pass it on or copy it in any way. Please delete it immediately.
Try googling for "iptables php script" e.g. http://sourceforge.net/projects/phpfwgen/ http://easyfwgen.morizot.net/gen/ also http://www.gege.org/iptables/doc/faq.html You can try similar for other scripting languages (python, ruby, perl (ugh)), I'd think. Chuck Amadi wrote:
Hi Does anyone on the list
Distro OpenSuSE, Apache2 and use cgi and not perl cgi.
Know a good mailing list to create cgi script without perl.
I have a task to pull data from our iptables file into a editable html thus able to make modifications and click on a button to restart iptables.
I have got a dirty hack that restarts the iptables But my boss would like a editable html form.
PS I have been looking at open function But having no joy.
# now write (append) to the file open(INF,"firewall"); # opens firewall file for reading located in the cgi-bin dir.
Any suggestions or url's to anything similiar would be of great help.
Ta
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Chuck Amadi
-
Russell Jones