Hi I am using squid in RHEL4 for net traffic and able to restrict traffic of port 80 by time base ACL.
But so for I am unable to time base restrict the traffic for other ports like port 443 , 5190 , 1863 etc
I am not using masquerade , instead forwarding every ip (for better control ) like
Code:
-A FORWARD -s 17x.x.53.54 -p tcp -m tcp --dport 443 -j ACCEPT
-A FORWARD -s 17x.x.53.54 -p tcp -m tcp --dport 1863 -j ACCEPT
-A FORWARD -s 17x.x.53.54 -p tcp -m tcp --dport 5190 -j ACCEPT
.
.
.
.
and at end
-A FORWARD -p tcp -m tcp --dport 443 -j DROP
-A FORWARD -p tcp -j DROP
-A FORWARD -p udp -j DROP
Now problem is that I want to allow above mentioned trafic from 9 to 5 pm only, and should be restricted for rest of the hours.
How to accomplish this task?