Time based rules ...
Raymond Leach
raymondl@knowledgefactory.co.za
13 Nov 2002 18:00:46 +0200
--=-HCUrDpqjoceGUm/hOsj8
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
On Wed, 2002-11-13 at 18:00, Chris Poupart wrote:
> Couldn't you just use a CRON job to add and remove that rule at the=20
> required times?
>=20
Well that's what I'm doing, but it gets cumbersome when you have
multiple timeslots for different days, e.g. Weekends.
> -- Chris
>=20
> Raymond Leach wrote:
> > Hi
> >=20
> > Is there a way to put time restrictions on rules?
> > For eaxmple, something like:
> >=20
> > iptables -A FORWARD -i eth0 -p tcp -sport 1024: -dport 1024: -time
> > 0700:1700 -j DROP
> >=20
> > It would be nice ...
> >=20
> > Ray
> > --=20
--=20
--=-HCUrDpqjoceGUm/hOsj8
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQA90ncuh1fuR/Bv+ygRAmU8AJ4rUn2YS0yqrUaS8DxnjNDFE5rRMACfSe6Z
0kS5UAAiPcGjMbgdq3w/cp0=
=By6m
-----END PGP SIGNATURE-----
--=-HCUrDpqjoceGUm/hOsj8--