* How to configure firewall rules through a website @ 2006-11-07 14:35 Satvika Bejai 2006-11-08 22:33 ` Clemens 0 siblings, 1 reply; 3+ messages in thread From: Satvika Bejai @ 2006-11-07 14:35 UTC (permalink / raw) To: netfilter 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 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/ ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to configure firewall rules through a website 2006-11-07 14:35 How to configure firewall rules through a website Satvika Bejai @ 2006-11-08 22:33 ` Clemens 0 siblings, 0 replies; 3+ messages in thread From: Clemens @ 2006-11-08 22:33 UTC (permalink / raw) To: netfilter [-- Attachment #1: Type: text/plain, Size: 633 bytes --] > 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 > 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. iptables-restore and iptables-save is exactly what you want :) greets, clemens [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 250 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <362910564.24851@mail.nankai.edu.cn>]
[parent not found: <4552B1BD.8000303@mail.nankai.edu.cn>]
* Re: How to configure firewall rules through a website [not found] ` <4552B1BD.8000303@mail.nankai.edu.cn> @ 2006-11-09 4:42 ` Bo Yang 0 siblings, 0 replies; 3+ messages in thread From: Bo Yang @ 2006-11-09 4:42 UTC (permalink / raw) To: Satvika Bejai; +Cc: netfilter -----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----- ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-11-09 4:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-07 14:35 How to configure firewall rules through a website Satvika Bejai
2006-11-08 22:33 ` Clemens
[not found] <362910564.24851@mail.nankai.edu.cn>
[not found] ` <4552B1BD.8000303@mail.nankai.edu.cn>
2006-11-09 4:42 ` Bo Yang
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox