you can try Access list under the squid..it provides avdance features...to edit this:
| Code: |
vi /etc/squid/squid.conf
|
add this to restrict
| Code: |
acl workdays time M T W H F 9:00-17:00
http_access allow workdays
|
this will restrict all users from monday to friday from time 9-17...
you can now customize this with mac address to restrict it by using
| Code: |
acl M1 arp 01:02:03:04:05:06
|
now it becomes something like
| Code: |
acl M1 arp 01:02:03:04:05:06
acl workdays time M T W H F 9:00-17:00
http_access deny workdays
http_access deny M1
|
reference :
www.visolve.com/squid/Squid_tutorial.php
never tried this before with mac....but why don't you give a try....it is fun testing....
or you can simply use this rule to add in firewall..so it perfectly works for all outgoing traffic
| Code: |
iptables -t nat -I PREROUTING 1 -m mac --mac-source MAC_ADDR -m time --timestart 22:00 --timestop 06:00 --weekdays Sun,MonTue,Wed -j DROP
|
| Code: |
iptables -t nat -I PREROUTING 2 --mac-source MAC_ADD2 -m time --timestart 22:00 --timestop 06:00 --weekdays Mon,Tue,Wed,Thu,Fri -j DROP
|
hope this is the one you where searching
~prahmod