dividing browsing and downloading

Discussion regarding the installation and configuration of Linux distributions.

dividing browsing and downloading

Postby AcidEYE » Wed Feb 27, 2008 1:48 pm

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.
Linux Addicted
AcidEYE
Havaldaar
 
Posts: 115
Joined: Mon Feb 28, 2005 5:41 pm
WLM: a_flame@msn.com
Yahoo Messenger: acid_eye69@yahoo.com
AOL: none
Location: Lahore (Pakistan)

Postby x2oxen » Wed Feb 27, 2008 4:12 pm

use mikrotik and do packet shaping as per your requirement as it won't be much difficult.
Muhammad Usman
+92-321-6640501
Chemonics International
http://usmanpk.com
x2oxen
Major General
 
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Website: http://usmanpk.com
WLM: x2oxen@hotmail.com
Yahoo Messenger: x2oxen
Location: Faisalabad

use delay pools for your bandwidth slicing in squid

Postby khurram48 » Wed Feb 27, 2008 6:54 pm

Assalam o allaikum brother

use delay pools for band width slicing
seperate surfing and downloading to limits
khurram48
Lance Naik
 
Posts: 31
Joined: Wed May 16, 2007 12:59 am

Postby nomankhn » Thu Feb 28, 2008 11:10 am

Khurram:

delay polls can divide browsing and downloading how, i want to implement that one of my user will get 4.0 kb speed, 2 user will get 9.0 kb speed, boss will get 50kb speed.

how can i divide on ip bases and mac basis, i am really greatful if you will clear my doubts.

Regards,
Noman Liaquat
nomankhn
Colonel
 
Posts: 714
Joined: Wed Aug 07, 2002 8:00 pm

Postby AcidEYE » Thu Feb 28, 2008 11:12 am

As Salam U Alikum,

mikrotik is free?
Linux Addicted
AcidEYE
Havaldaar
 
Posts: 115
Joined: Mon Feb 28, 2005 5:41 pm
WLM: a_flame@msn.com
Yahoo Messenger: acid_eye69@yahoo.com
AOL: none
Location: Lahore (Pakistan)

Postby x2oxen » Thu Feb 28, 2008 12:43 pm

Nop It is not!
Muhammad Usman

+92-321-6640501

Chemonics International

http://usmanpk.com
x2oxen
Major General
 
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Website: http://usmanpk.com
WLM: x2oxen@hotmail.com
Yahoo Messenger: x2oxen
Location: Faisalabad

Postby nomankhn » Thu Feb 28, 2008 12:48 pm

Usman,

Whats other alternative then.

Regards,
Noman Liaquat
nomankhn
Colonel
 
Posts: 714
Joined: Wed Aug 07, 2002 8:00 pm

Two ISP links in 1 proxy

Postby x2oxen » Fri Feb 29, 2008 10:48 am

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

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.
Muhammad Usman

+92-321-6640501

Chemonics International

http://usmanpk.com
x2oxen
Major General
 
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Website: http://usmanpk.com
WLM: x2oxen@hotmail.com
Yahoo Messenger: x2oxen
Location: Faisalabad

Postby nomankhn » Sat Mar 01, 2008 12:06 pm

usman,

my simple question is that squid can be used as bandwidth manager, if yes how?
From squid can we divide bandwidth to users and ips.

One thing I want to run squid with ldap.

Regards,
Noman Liaquat
nomankhn
Colonel
 
Posts: 714
Joined: Wed Aug 07, 2002 8:00 pm

Postby x2oxen » Sun Mar 02, 2008 12:41 am

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.
Muhammad Usman

+92-321-6640501

Chemonics International

http://usmanpk.com
x2oxen
Major General
 
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Website: http://usmanpk.com
WLM: x2oxen@hotmail.com
Yahoo Messenger: x2oxen
Location: Faisalabad

Postby nomankhn » Tue Mar 04, 2008 12:43 pm

Ahhhhh........

that means no other solution :shock: :(

Regards,
Noman Liaquat
nomankhn
Colonel
 
Posts: 714
Joined: Wed Aug 07, 2002 8:00 pm

Postby x2oxen » Tue Mar 04, 2008 8:23 pm

Why you want to shape your bandwidth in squid while you having other option within same linux box???
Muhammad Usman

+92-321-6640501

Chemonics International

http://usmanpk.com
x2oxen
Major General
 
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Website: http://usmanpk.com
WLM: x2oxen@hotmail.com
Yahoo Messenger: x2oxen
Location: Faisalabad


Return to “%s” Installation

Who is online

Users browsing this forum: No registered users and 1 guest

cron