Koozali.org: home of the SME Server

Block IP via Cronjob

Frank

Block IP via Cronjob
« on: February 03, 2003, 01:47:30 PM »
Hi Folks,

might be a stupid question, but I have to restrict the internetaccess to my son's PC. I want him to be able to e.g.chat.... for only 1-2 hours daily.
Noadays I pull the plug out of the switch, but he's becoming smart at this.
ok, so far: I thought about having a cronjob which gives him access at, let's says 1700 and restricts from 1900 on till next day 1700.
Will
"/sbin/ipchains -I input -s 10.11.12.13 -j DENY -l" be the correct statement and change to allow backwards?
Another issue would be the weekendtraffic. he should be able to surf from 1400 to 1900.

Thanx in Advance for any suggestions

Frank

Frank

Re: Block IP via Cronjob
« Reply #1 on: February 04, 2003, 11:56:00 PM »
FYI

worked the way I guessed.

cheers