Day of week & time of day restrictions per IP/MAC?
-
My son stays up too late gaming. Could I use pfSense to restrict his Internet access during days of week and time of day, say from midnight to 6AM? I can give him the same IP address through reserved DHCP or something.
-
Did some research. One idea is I could use cron and pfctl to alter firewall rules.
-
My son stays up too late gaming. Could I use pfSense to restrict his Internet access during days of week and time of day, say from midnight to 6AM? I can give him the same IP address through reserved DHCP or something.
Yes.
In Services/DHCP server you can give your son a static IP.
Then, in Firewall/Schedules you can create a schedule.
Then, in Firewall/Alias, you can create aliases with adresses your son is allowed to go to (the gaming, for example).
Finally, in Firewall rules, you can:
1. Add the alias to allow him to game;
2. Add, in advanced settings (at the bottom) the schedule) which limits the time he can do that.So after that time, the can still google his home work (sorry, I still can't live with that thought, I'm old fashioned, back in my days we had books :-[ ) but can't game.
Or, of course, even beyond that: he can't internet at all.
Or, beyond that, with two schedules:
Firewall rule 1: he can game until 4 PM with a schedule.
Firewall rule 2: he can game from 9 PM-10PM with a schedule.