From: Aleksey I Zavilohin <villain@villain.home.ems.chel.su>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] squid with 2 gateways
Date: Tue, 13 May 2003 17:29:12 +0000 [thread overview]
Message-ID: <marc-lartc-105285041300920@msgid-missing> (raw)
In-Reply-To: <marc-lartc-105274588827649@msgid-missing>
Kert?sz Viktor wrote:
> I would like to know if there is a way I can set up squid or any proxy to
> use different gateway if the downloaded object is bigger than 2M for
> example. I know the lartc docs where I can split up two uplinks but the fact
> is different here. I know that it sounds bad anyway :)
get latest squid 2.5
and see in squid.conf
# TAG: tcp_outgoing_address
# Allows you to map requests to different outgoing IP addresses
# based on the username or sourceaddress of the user making
# the request.
#
# tcp_outgoing_address ipaddr [[!]aclname] ...
#
# Example where requests from 10.0.0.0/24 will be forwareded
# with source address 10.1.0.1, 10.0.2.0/24 forwarded with
# source address 10.1.0.2 and the rest will be forwarded with
# source address 10.1.0.3.
#
# acl normal_service_net src 10.0.0.0/255.255.255.0
# acl good_service_net src 10.0.1.0/255.255.255.0
# tcp_outgoing_address 10.0.0.1 normal_service_net
# tcp_outgoing_address 10.0.0.2 good_service_net
# tcp_outgoing_address 10.0.0.3
#
# Processing proceeds in the order specified, and stops at first fully
# matching line.
#
#Default:
# none
and next acl type
# acl aclname rep_mime_type mime-type1 ...
# # regex match against the mime type of the reply recieved by
# # squid. Can be used to detect file download or some
# # types HTTP tunelling requests.
# # NOTE: This has no effect in http_access rules. It only has
# # effect in rules that affect the reply data stream such as
# # http_reply_access.
and some heuristic
text/plain, text/html, image/gif - small object
other big
+ lartc.pdf 8-) as "ip rule/route" howto
> > I do not know if there's an easy way for you to identify the big downloads
> > before they happen, so this may not be the ultimate solution for your
> > application. Regardless, the tools and concepts described here should be
> > a good starting point for you.
> I thought the same. But I haven't found any description or idea to my
> problem.
--
Every time I lose weight, it finds me again!
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
prev parent reply other threads:[~2003-05-13 17:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-12 13:22 [LARTC] squid with 2 gateways Kertész Viktor
2003-05-12 14:02 ` Martin A. Brown
2003-05-12 15:43 ` Kertész Viktor
2003-05-13 17:29 ` Aleksey I Zavilohin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-lartc-105285041300920@msgid-missing \
--to=villain@villain.home.ems.chel.su \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.