I am able to restrict the squid traffic through time base ACL in squid.
I am not using masquerade and forwarding per ip like
Code: Select all
-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 traffic from 9 to 5 pm only, and should be restricted for rest of the hours.
How to accomplish this task?