[K12OSN] Re: Limit Network Access by time

Jim Kronebusch jim at winonacotter.org
Thu Feb 26 08:53:00 UTC 2004


Thanks everyone, I think I have more than enough suggestions to achieve
what I want.  This list is awesome.

Thanks again.

-----Original Message-----
From: k12osn-admin at redhat.com [mailto:k12osn-admin at redhat.com] On Behalf
Of rob focus
Sent: Wednesday, February 25, 2004 5:40 PM
To: k12osn at redhat.com
Subject: [K12OSN] Re: Limit Network Access by time


another way is to add an iptables rule blocking
the red interface(external) and toggle it
on/off using crontab.
--
#crontab -e (on one line)
0 22 * * * /sbin/iptables -A CUSTOMINPUT -i $RED_DEV -s 192.168.1.0 -j
REJECT 0 6 * * *  /sbin/iptables -D CUSTOMINPUT -i $RED_DEV -s
192.168.1.0 -j REJECT

--
or Block everything except the above network by replacing REJECT with
ACCEPT and adding -A CUSTOMINPUT -i $RED_DEV -j REJECT , first. if your
directors are on the same network use a subnet mask to limit the ip's to
the addresses you want to block.

http://www.troubleshooters.com/lpm/200305/200305.htm#_Blocking_a_Subnet
http://www.mkssoftware.com/docs/man1/crontab.1.asp

robert


_______________________________________________
K12OSN mailing list
K12OSN at redhat.com https://www.redhat.com/mailman/listinfo/k12osn
For more info see <http://www.k12os.org>

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.595 / Virus Database: 378 - Release Date: 2/25/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.595 / Virus Database: 378 - Release Date: 2/25/2004
 





More information about the K12OSN mailing list