youtube routes on other interface

Taking care of your Linux box.
Post Reply
cyph3r
Lance Naik
Posts: 46
Joined: Tue Jan 22, 2008 1:27 am

youtube routes on other interface

Post by cyph3r »

wan1 = eth1
wan2 = eth2
lan = eth3


i want to add youtube route to ether2
and all other traffic to ether1

can anyone tell me youtube routes
Regards,
Mehmood Ahmed |cyph3r|
(+92)345-2835810
E-mail:cyph3r.07@hotmail.com
Shahbaz_Aslam
Lance Naik
Posts: 23
Joined: Fri Sep 01, 2006 12:16 am

Post by Shahbaz_Aslam »

no for sure what you exactly need.,

1. Drop all traffic for reaching destination IP:
74.125.45.100
74.125.67.100
74.125.127.100
on interface eth1

2. Accept all traffic for reaching destination IP:
74.125.45.100
74.125.67.100
74.125.127.100
on interface eth0

3. enabled Masquerading on both.

hope helpful

Shahbaz
Shaz
mudasir
Captain
Posts: 565
Joined: Tue Oct 17, 2006 5:23 am
Location: Dubai
Contact:

Post by mudasir »

is that the complete list of ip addresses used by youtube. i dont think so.
Kind Regards
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com
Shahbaz_Aslam
Lance Naik
Posts: 23
Joined: Fri Sep 01, 2006 12:16 am

Post by Shahbaz_Aslam »

use youtube.com instead of ips..
Shaz
mudasir
Captain
Posts: 565
Joined: Tue Oct 17, 2006 5:23 am
Location: Dubai
Contact:

Post by mudasir »

i did try that string match thing some time back about a year back, it does not work 100%
Kind Regards
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com
Shahbaz_Aslam
Lance Naik
Posts: 23
Joined: Fri Sep 01, 2006 12:16 am

Post by Shahbaz_Aslam »

block whole CIDR then
72.14.204.0/24 port 80

am using OpenDNS for all
TheOne4U
Lance Naik
Posts: 19
Joined: Sat Sep 20, 2003 1:49 am
Location: Karachi

Re: youtube routes on other interface

Post by TheOne4U »

[quote="cyph3r"]wan1 = eth1
wan2 = eth2
lan = eth3


i want to add youtube route to ether2
and all other traffic to ether1

can anyone tell me youtube routes[/quote]

SALAM,

if you want to route all youtube and google data on wan2

add these lines in your /etc/rc.local

###start

route add -net 74.125.0.0 netmask 255.255.0.0 gw IP-Of_GAYEWAY dev eth2
route add -net 72.14.192.0 netmask 255.255.192.0 gw IP-Of_GAYEWAY dev eth2
route add -net 64.233.160.0 netmask 255.255.224.0 gw IP-Of_GAYEWAY dev eth2

###end

TheOne4u
mudasir
Captain
Posts: 565
Joined: Tue Oct 17, 2006 5:23 am
Location: Dubai
Contact:

Post by mudasir »

These are not the only IP range that are being used by google / youtube. I have many more IP's taken from authentic source.
Kind Regards
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com
TheOne4U
Lance Naik
Posts: 19
Joined: Sat Sep 20, 2003 1:49 am
Location: Karachi

Post by TheOne4U »

[quote="mudasir"]These are not the only IP range that are being used by google / youtube. I have many more IP's taken from authentic source.[/quote]

I know these are not the only Ip Pools but these are the IP Pools on which google route Pakistan IPs traffic on bases of DNS and AS Numbers.

TheOne4u
mudasir
Captain
Posts: 565
Joined: Tue Oct 17, 2006 5:23 am
Location: Dubai
Contact:

Post by mudasir »

Dear,

I can assure you this also that these are not the only IP's that are being routed for Pakistan.
I have setup a mechanism to trace all the IP's of youtube that are being used on my network and i have about 26 different IP series available with me.
Kind Regards
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

i once noticed my computer downloading something when i wasn't doing anything. i ran tcpdump and found that it was downloading something from a server on ptcl's network. ran "host" on the ip to see what it was, and it was one of google's servers. my browser (chrome) was downloading its safe browsing list from there.

in fact,

Code: Select all

$ host google.com.pk.
google.com.pk has address 221.120.218.34
google.com.pk has address 221.120.218.28
google.com.pk has address 221.120.218.29
google.com.pk mail is handled by 10 google.com.s9b2.psmtp.com.
google.com.pk mail is handled by 10 google.com.s9a2.psmtp.com.
google.com.pk mail is handled by 10 google.com.s9b1.psmtp.com.
google.com.pk mail is handled by 10 google.com.s9a1.psmtp.com.
$ 
youtube.com is not on that network, but they might have a youtube cache host there (which is where the actual video content comes from, not the webpages).
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
TheOne4U
Lance Naik
Posts: 19
Joined: Sat Sep 20, 2003 1:49 am
Location: Karachi

Post by TheOne4U »

[quote="lambda"]i once noticed my computer downloading something when i wasn't doing anything. i ran tcpdump and found that it was downloading something from a server on ptcl's network. ran "host" on the ip to see what it was, and it was one of google's servers. my browser (chrome) was downloading its safe browsing list from there.

in fact,[code]$ host google.com.pk.
google.com.pk has address 221.120.218.34
google.com.pk has address 221.120.218.28
google.com.pk has address 221.120.218.29
google.com.pk mail is handled by 10 google.com.s9b2.psmtp.com.
google.com.pk mail is handled by 10 google.com.s9a2.psmtp.com.
google.com.pk mail is handled by 10 google.com.s9b1.psmtp.com.
google.com.pk mail is handled by 10 google.com.s9a1.psmtp.com.
$ [/code]youtube.com is not on that network, but they might have a youtube cache host there (which is where the actual video content comes from, not the webpages).[/quote]

These are the Local Pakistan Google Node co-located at PTCL Data Center With IP Pools

221.120.207.0/24 @ Karachi
221.120.218.0/24 @ Lahore

;)

TheONe4u
Post Reply