From: Bo Yang <struggle@mail.nankai.edu.cn>
To: Satvika Bejai <202501281@ukzn.ac.za>
Cc: netfilter@lists.netfilter.org
Subject: Re: How to configure firewall rules through a website
Date: Thu, 09 Nov 2006 12:42:37 +0800 [thread overview]
Message-ID: <363047600.26254@mail.nankai.edu.cn> (raw)
Message-ID: <4552B1BD.8000303@mail.nankai.edu.cn> (raw)
In-Reply-To: <362910564.24851@mail.nankai.edu.cn>
-----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-----
next parent reply other threads:[~2006-11-09 4:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <362910564.24851@mail.nankai.edu.cn>
2006-11-09 4:42 ` Bo Yang [this message]
2006-11-09 4:42 ` How to configure firewall rules through a website Bo Yang
2006-11-07 14:35 Satvika Bejai
2006-11-08 22:33 ` Clemens
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=363047600.26254@mail.nankai.edu.cn \
--to=struggle@mail.nankai.edu.cn \
--cc=202501281@ukzn.ac.za \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.