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