All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] squid with 2 gateways
@ 2003-05-12 13:22 Kertész Viktor
  2003-05-12 14:02 ` Martin A. Brown
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Kertész Viktor @ 2003-05-12 13:22 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 341 bytes --]

Dear All,
I succesfully set up linux box with two gateways but I've got a strange request. I should set up a box with two gateways. One gateway for huge downloads and one for the other traffic. I suspect that it is impossible but i ask you if you think so. I read squid's docs but I haven't found any infos in this subject. Thanks!

Vitya

[-- Attachment #2: Type: text/html, Size: 794 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LARTC] squid with 2 gateways
  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
  2 siblings, 0 replies; 4+ messages in thread
From: Martin A. Brown @ 2003-05-12 14:02 UTC (permalink / raw)
  To: lartc

Dear Vitya,

 : I succesfully set up linux box with two gateways but I've got a strange
 : request. I should set up a box with two gateways. One gateway for huge
 : downloads and one for the other traffic. I suspect that it is
 : impossible but i ask you if you think so. I read squid's docs but I
 : haven't found any infos in this subject. Thanks!

This is a common question here at LARTC!  There are many ways you can take
advantage of multiple connections to the Internet.

I'd recommend reading up on split access and multiple connections to the
Internet.

  http://lartc.org/howto/lartc.rpdb.multiple-links.html
  http://linux-ip.net/html/adv-multi-internet.html

This should provide you some explanation of the tools that you'll use to
implement a split-access solution.

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.

Good luck,

-Martin

-- 
Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LARTC] squid with 2 gateways
  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
  2 siblings, 0 replies; 4+ messages in thread
From: Kertész Viktor @ 2003-05-12 15:43 UTC (permalink / raw)
  To: lartc

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 :)

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

Vitya

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [LARTC] squid with 2 gateways
  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
  2 siblings, 0 replies; 4+ messages in thread
From: Aleksey I Zavilohin @ 2003-05-13 17:29 UTC (permalink / raw)
  To: lartc

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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-05-13 17:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.