How to configure firewall rules through a website
struggle at mail.nankai.edu.cn
Thu Nov 9 05:42:37 CET 2006
-----BEGIN PGP SIGNED MESSAGE-----
Satvika Bejai :
> I've just been introduced to netfilter. I would like to know if it is
> possible to configure the firewall rules from a text file that is
> written to by some script attached to a website. I am trying to
Of course , it can .
There are too tools in iptables distribution : iptables-save and
iptables-restore , which used
to save or restore the iptables rules data .
You can just let your script to write the iptables in the
iptables-save format , and then run
iptables-restore in the file data .
So ,if you do what the above describe , you need to get the user input
from your web ,
and parsing the input , convert them to the format iptables-restore
can understand .
And , OK
> configure a firewall on Snapgear linux which is hosting a website which
> is supposed to alllow a user to enter configuration rules. I hope to
> save these to a text file from which i would like the netfilter program
> to read from.
> Is this possible. I only have a week to get this done, so
> any help is greatly appreciated.
> Please find our Email Disclaimer here: http://www.ukzn.ac.za/disclaimer/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the netfilter