Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Joel Newkirk <firewalldude@newkirk.us>
To: sbisgaard@xtrasource.com
Cc: netfilter@lists.netfilter.org
Subject: Re: Time changes
Date: Wed, 22 Oct 2003 20:35:02 -0400	[thread overview]
Message-ID: <1066869302.2946.353.camel@alpha.newkirk.us> (raw)
In-Reply-To: <NEBBICCJKLGJHMMNBPIKAENKFLAA.sbisgaard@xtrasource.com>

On Wed, 2003-10-22 at 15:44, Steffen Bisgaard - Xtrasource wrote:
> Hallo list,
>  
> A quick question: Is it possible to block access to and from a PC (say
> 10.2.0.3) at a specific time, for example 21:00, and re-enable it at
> 08:00 the next day using iptables - and if so how?? Yes this is the
> kids PC...
> It used to be real simple with ipfw - I can't remember the syntax but
> something along the lines of ipfw -add (or -remove) deny (or allow)
> 10.2.0.3 all
>  
> Any ideas? Or do I need two separate iptables scripts?

Not full scripts.  Try creating two cron jobs - one running at 21:00 the
other at 08:00.  One is just:
iptables -I FORWARD 1 -s 10.2.0.3 -j REJECT
the other
iptables -D FORWARD -s 10.2.0.3 -j REJECT

j




  parent reply	other threads:[~2003-10-23  0:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-22 19:44 Time changes Steffen Bisgaard - Xtrasource
2003-10-22 20:13 ` netfilter
2003-10-23  0:35 ` Joel Newkirk [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-10-23 14:22 Anderson, Ray
2003-10-23 15:09 ` Josh Berry

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=1066869302.2946.353.camel@alpha.newkirk.us \
    --to=firewalldude@newkirk.us \
    --cc=netfilter@lists.netfilter.org \
    --cc=sbisgaard@xtrasource.com \
    /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