Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Payal Rathod <payal-netfilter@staticky.com>
To: Netfilter ML <netfilter@lists.netfilter.org>
Subject: Re: changing rules at a defined time
Date: Wed, 24 Dec 2003 18:56:04 +0530	[thread overview]
Message-ID: <20031224132604.GA1942@linux.local> (raw)
In-Reply-To: <200312241011.14770.Antony@Soft-Solutions.co.uk>

Hi,

Thanks for the mails all of you. I am also going to look into
patch-o-matic later. I have a couple of doubts now.

On Wed, Dec 24, 2003 at 10:11:14AM +0000, Antony Stone wrote:
> I really disapprove of a default ACCEPT policy on FORWARD.

Why? I can DROP everything later.

> iptables -P FORWARD DROP
> iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
[...]

> Then at 16:00, use a cron rule to run:
> 
> iptables -A FORWARD -i $INTIF -s 192.168.0.0/24 -j ACCEPT

Should that be iptables -I or specifically -A?

> At 17:00 use a cron rule to run:
> 
> iptables -D FORWARD -i $INTIF -s 192.168.0.0/24 -j ACCEPT
> 
> The only thing I can think of which this solution which you have to decide 
> whether you're happy about is that connections currently in progress at 17:00 
> will not be cut off - users simply won't be able to make new ones until 16:00 
> the following day.

You mean a person logged on to MSN can continue being logged on
throughout?
So, do I FLUSH the rules through cron to prevent this?

With warm regards,
-Payal



  reply	other threads:[~2003-12-24 13:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-24  9:29 changing rules at a defined time Payal Rathod
2003-12-24  9:47 ` Chris Brenton
2003-12-24 10:01 ` Cedric Blancher
2003-12-24 10:11 ` Antony Stone
2003-12-24 13:26   ` Payal Rathod [this message]
2003-12-24 13:42     ` Antony Stone

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=20031224132604.GA1942@linux.local \
    --to=payal-netfilter@staticky.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox