Größe von Downloads mit beschränken?

Post Reply
Message
Author
Bastian Merkel

Größe von Downloads mit beschränken?

#1 Post by Bastian Merkel »

Hallo,

ich habe folgendes Problem:

Für ein kleines Netzwerk stellt ein Linuxrouter via Masquerading mit iptables den Internetzugang her. Nun suche ich nach einer Möglichkeit, die Größe von
Downloads aus dem Internet zu begenzen. Es geht dabei nicht um ein Gesamttransfervolumen sondern möchte ich verhindern, daß jemand aus dem Internet Dateien
die größer als z.B. 200kb sind, herunterladen kann. Ist das möglich? Wenn ja, womit? Geht das mit iptables? Oder eventuell mit einem Proxy (nur ungerne).

Danke für eure Hilfe,

-bm-

Sven

Re: Größe von Downloads mit beschränken?

#2 Post by Sven »

Ist es das was du suchst:
/etc/squid.conf

# TAG: reply_body_max_size (KB)
# This option specifies the maximum size of a reply body. It
# can be used to prevent users from downloading very large files,
# such as MP3's and movies. The reply size is checked twice.
# First when we get the reply headers, we check the
# content-length value. If the content length value exists and
# is larger than this parameter, the request is denied and the
# user receives an error message that says "the request or reply
# is too large." If there is no content-length, and the reply
# size exceeds this limit, the client's connection is just closed
# and they will receive a partial reply.

Bastian Merkel

Re: Größe von Downloads mit beschränken?

#3 Post by Bastian Merkel »

Danke, in der Tat, das war es. Kennst du zufällig noch andere Proxis die das können, ohne geht's vermutlich nicht, oder?


Post Reply