dividing browsing and downloading
dividing browsing and downloading
As Salam U Alikum,
Dear members,
i want to discuss a senario, i've 2 DSL modems, from 2 differnet ISP, one is 512 KB and other is 1024 KB, i want to bound broswing and messenger conectivity on 512 KB link and downloading TCP, UDP, P2P, each and everything on 1024 KB link. for that i've to make 2 squid servers?
what would be the senario and what would be the configuration?
kindly help me in this.
Thanks & Regards
waiting for reply.
Dear members,
i want to discuss a senario, i've 2 DSL modems, from 2 differnet ISP, one is 512 KB and other is 1024 KB, i want to bound broswing and messenger conectivity on 512 KB link and downloading TCP, UDP, P2P, each and everything on 1024 KB link. for that i've to make 2 squid servers?
what would be the senario and what would be the configuration?
kindly help me in this.
Thanks & Regards
waiting for reply.
Linux Addicted
use delay pools for your bandwidth slicing in squid
Assalam o allaikum brother
use delay pools for band width slicing
seperate surfing and downloading to limits
use delay pools for band width slicing
seperate surfing and downloading to limits
Two ISP links in 1 proxy
Ok then lets do this by placing two squid machines and here is the procedure you going to use.
Here i will let you know how to do it by placing two squid server.
Place 2 systems and install squid on both of them and make them cache peer and put 1 dsl in each system. And in your primary proxy server with which your users will connect you define that all the down loadings that users can do like .exe .avi .rm .jpg etc will come from 2nd proxy server which is connected to other dsl and the browsing and yahoo messenger and all other things will be come from internet/dsl directly connected to your primary proxy.
Here are the steps to do so.
cache_peer < 2nd proxy ip > parent < proxy port> 0 no-query
acl downloads "path/to/downloads.txt"
cache_peer_access < 2nd proxy ip > allow downloads
cache_peer_access < 2nd proxy ip > deny all # assuming acl for all src address is listed above
downloads.txt
Hope this will help you out noman.
Here i will let you know how to do it by placing two squid server.
Place 2 systems and install squid on both of them and make them cache peer and put 1 dsl in each system. And in your primary proxy server with which your users will connect you define that all the down loadings that users can do like .exe .avi .rm .jpg etc will come from 2nd proxy server which is connected to other dsl and the browsing and yahoo messenger and all other things will be come from internet/dsl directly connected to your primary proxy.
Here are the steps to do so.
cache_peer < 2nd proxy ip > parent < proxy port> 0 no-query
acl downloads "path/to/downloads.txt"
cache_peer_access < 2nd proxy ip > allow downloads
cache_peer_access < 2nd proxy ip > deny all # assuming acl for all src address is listed above
downloads.txt
Code: Select all
\.exe$
\.avi$
\.rm$
\.ram$
\.zip$
\.mp3$
\.mpg$
\.mpeg$
\.wav$
\.wma$
\.wmv$
\.mov$
\.exe\?.*$
\.avi\?.*$
\.rm\?.*$
\.ram\?.*$
\.zip\?.*$
\.mp3\?.*$
\.mpg\?.*$
\.mpeg\?.*$
\.wav\?.*$
\.wma\?.*$
\.wmv\?.*$
\.mov\?.*$
Hope this will help you out noman.
well packet shaping is possible in squid via delay pools but i have terrible experience in that as it sucked my server whole physical memory while i was shaping packets using squid. thought here is the link which will help you to do so
http://pcquest.ciol.com/content/linux/103080904.asp
if you want to limit bandwidth only then use script provided by mudassir just you will be needing to edit it a bit and it will work fine for this purpose.
http://pcquest.ciol.com/content/linux/103080904.asp
if you want to limit bandwidth only then use script provided by mudassir just you will be needing to edit it a bit and it will work fine for this purpose.