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

From: Stinn, Ryan <ryan.stinn_at_htcsd.ca>
Date: Wed, 20 Feb 2013 16:03:26 +0000

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

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.

Received on Wed Feb 20 2013 - 16:03:36 MST

This archive was generated by hypermail 2.2.0 : Wed Feb 20 2013 - 12:00:04 MST