How to configure firewall rules through a website

Bo Yang struggle at mail.nankai.edu.cn
Thu Nov 9 05:42:37 CET 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Satvika Bejai :
> Hi
>
> 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.
>
> Thanks
> Satvika
> 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
 
iD8DBQFFUrG97tZp58UCwyMRAg76AJ4w7/0o9YqqKLdPC7NapOu2I5nmdwCfZRp7
Ja36GK+unjovp+aeeQ9lhSg=
=Hshd
-----END PGP SIGNATURE-----




More information about the netfilter mailing list