RE: [squid-users] Redirect Youtube out second ISP

From: Stinn, Ryan <ryan.stinn_at_htcsd.ca>
Date: Thu, 21 Feb 2013 22:02:48 +0000

I ended up putting a second proxy up and using cache peer to redirect all traffic to it. Not the best solution but it's just a tiny VM fetching youtube.

Ryan

-----Original Message-----
From: Pieter De Wit [mailto:pieter_at_insync.za.net]
Sent: Wednesday, February 20, 2013 10:57 AM
To: squid-users_at_squid-cache.org
Subject: Re: [squid-users] Redirect Youtube out second ISP

Hi,

I would just run 2 squids on the same box, iptables mark the second one's traffic for the second uplink (using multiple routing tables etc).
The first squid then simply forwards all youtube traffic by URL - no IP issues etc.

Cheers,

Pieter

On 21/02/2013 05:33, Ricardo Rios wrote:
> No is not, is just what i see doing some sniffing on my mikrotik box,
> where my costumers connect, i am sure i still missing few IPs.
>
> Regards
>
>> I am doing it this way currently on my router however knowing all of
>> youtube's IP addresses is annoying. Do you know if your list is
>> conclusive?
>>
>> Ryan Stinn
>> Holy Trinity Catholic School Division
>>
>> -----Original Message-----
>> From: Ricardo Rios [mailto:shorewall_at_malargue.gov.ar]
>> Sent: Monday, February 18, 2013 4:46 PM
>> To: Squid Users
>> Subject: Re: [squid-users] Redirect Youtube out second ISP
>>
>> I have that working but using www.shorewall.net [1] Firewall, sending
>> all youtube request to provider number 4
>>
>> /etc/shorewall/providers
>>
>> #NAME NUMBER MARK DUPLICATE INTERFACE GATEWAY OPTIONS COPY
>>
>> cable2 2 2 main eth4:192.168.150.99 192.168.150.199
>> track,balance=3,loose,mtu=1492
>> cable3 3 3 main eth4:192.168.150.99 192.168.150.202
>> track,balance=3,loose,mtu=1492
>> silica 4 4 main eth6 186.0.190.241 track,balance=2,mtu=1500
>>
>> /etc/shorewall/tcrules
>>
>> #MARK SOURCE DEST PROTO DEST SOURCE USER TEST LENGTH TOS CONNBYTES
>> HELPER
>>
>> #Youtube
>> 4:P 10.0.0.0/24 208.117.253.0/20
>> 4:P 10.0.0.0/24 74.125.228.0/24
>> 4:P 10.0.0.0/24 173.194.60.0/18
>> 4:P 10.0.0.0/24 200.9.157.0/20
>>
>> http://www.shorewall.net/Documentation_Index.html [2]Regards
>>
>>> ----- Original Message -----
>>>
>>>> From: "Stinn, Ryan" <ryan.stinn_at_htcsd.ca> To:
>>>> "squid-users_at_squid-cache.org" <squid-users_at_squid-cache.org> Cc: Sent:
>>>> Saturday, 16 February 2013 4:13 AM Subject: [squid-users] Redirect
>>>> Youtube out second ISP I'm wondering if it's possible to use squid
>>>> to redirect youtube out a second ISP line. We have two connections
>>>> and I'd like to push all youtube out the second connection.
>>> Try this: acl dstdom_regex yt -i youtube tcp_outgoing_address yt
>>> 1.2.3.4 1.2.3.4 is IP address of 2nd line (should be on same machine
>>> as squid). Amm.
>
>
>
> Links:
> ------
> [1] http://www.shorewall.net
> [2] http://www.shorewall.net/Documentation_Index.html


Received on Thu Feb 21 2013 - 22:03:03 MST

This archive was generated by hypermail 2.2.0 : Fri Feb 22 2013 - 12:00:04 MST