Engr. F. Azam

An Internet Professional – Dedicated for SEO and Open Source Community

Time Based Internet

Posted by Rock on August 26, 2007

To configure a time based broadband internet service you may add these following few lines inside the squid.conf file:

#Add this to the bottom of the ACL section of squid.conf
#Recommended minimum configuration: ( Under this line )

acl user01 src 192.168.4.1
acl user02 src 192.168.4.2
acl user03 src 192.168.4.3

###Time Mention#####
acl m_t time S M T W H A 13:00-15:00
acl l_t time S M T W H A 18:00-22:58
acl all_t time  S M T W H F A 00:10-24:00

# And finally deny all other access to this proxy (Under this line)

http_access allow user01 all_t
http_access allow user02 l_t
http_access allow user03 m_t

——————————–Brief Discussion———————————

Access Control List defines user one as ‘user01’ with IP address: 192.168.4.1

Categories time by key word ‘m_t’ ; ‘l_t’  and ‘all_t’

S M T W H F A stands for 7 days , like S = Sun Day, M = Mon Day etc.

At the last stage, http access by the name key & time key.

Lets try it ! Should you have any question regarding this , email me.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
%d bloggers like this: