LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Squid proxy(2)-How to limit connection make by Flashget, DAP, IDM,..--please help me (https://www.linuxquestions.org/questions/linux-networking-3/squid-proxy-2-how-to-limit-connection-make-by-flashget-dap-idm-please-help-me-309196/)

b:z 04-03-2005 06:39 AM

Squid proxy(2)-How to limit connection make by Flashget, DAP, IDM,..--please help me
 
I have charged my local network with over 50 users, however they usually use the programs as FlashGet, DAP, IDM to get file from Internet. They open more connection ( 10 connections/time download).
So, how can i limit those programs or how can i limit connection get data of user with Squid proxy.

Thanks so much.

linuxxed 04-03-2005 09:28 AM

Use Iptables ( -m limit option).

linuxxed 04-03-2005 09:34 AM

Also try limiting bandwidth using "delay" in squid.

http://www.faqs.org/docs/Linux-HOWTO...ing-HOWTO.html

b:z 04-03-2005 09:52 PM

Thanks for your reply,

Quote:

Use Iptables ( -m limit option).
Can you give me some example about --iptabless with -m limit option -- ? I am not clear about.

Quote:

Also try limiting bandwidth using "delay" in squid.

http://www.faqs.org/docs/Linux-HOWT...ting-HOWTO.html
The first time, i also use bandwith limit with Squid proxy, however having something not to be suitable for my localnetwork's working purpose.
Here is my delay configuration:

=====================================================
# nolimit download in localnet
acl nolimit-localnet url_regex -i 192.168.
#
# nolimit download from specific users in localnet
acl nolimit-users url_regex -i 192.168.1.80 192.168.1.81 192.168.1.90 192.168.1.20
#
# nolimit download from specific site
acl web-permit url_regex -i abc.com
#
# limit download from Internet
acl limit-internet url_regex -i .wmv .wma .mp3 .mpg .wma .avi .asf .rm .zip .rar .ram .iso .raw .dat .cab .rar .rpm .exe .vq .pdf .tar .rpm .tar.gz .bin .cue#
# the buckets require for gameloft policy
delay_pools 1
#We want to limit bandwidth during the day, and allow
#full bandwidth during the night
#Caution! with the acl below your downloads are likely to break
#at 23:59. Read the FAQ in this bandwidth if you want to avoid it.
delay for download in localnet
acl gameloft_hours time MTWHF 08:00-19:00
#
delay_class 1 2
delay_parameters 1 -1/-1 -1/-1
delay_access 1 allow nolimit-localnet
#
delay_class 2 2
delay_parameters 2 -1/-1 -1/-1
delay_access 2 allow nolimit-users
#
delay_class 3 2
delay_parameters 1 -1/-1 -1/-1
delay_access 3 allow web-permit
#
# delay for internet from internet
delay_class 1 2
delay_parameters 1 5000/150000 5000/120000
delay_access 1 allow limit-internet
===============================================================================

Are there something wrong configuration in my delay above? Please show me the problem of my configuration.
Thank you very much.

b:z 04-05-2005 09:34 PM

Everybody, please help me. :((


All times are GMT -5. The time now is 12:39 PM.