Posted: Mon Nov 09, 2009 6:13 Post subject: Watching Hulu in Canada using OpenVPN Tunnel on dd-wrt
I stumbled upon this post which allowed the poster to selectively route traffic to hulu over the OpenVPN tunnel.
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=46756
I want to do something similar, but poster had the openvpn server located in canada, and what I will be doing is using Witopia as the server and my dd-wrt box here in Canada as the client.
Can someone help me out with how I would get this to work here, allowing only hulu/pandora traffic to go over the vpn, and letting all other traffic use my IP and not be routed through the VPN?
I'm running a Linksys WRT310N with the latest pre-sp2 dd-wrt firmware (10/10/09) and will be using Witopia OpenVPN.
Ok, looks like witopia won't work. Another option that I have is that I have root access to a VPS in the US, I could install an openvpn server on there and bounce off of that. My VPS has its own IP address, so its very unlikely that it'd get banned from hulu.
I still have no idea how I will selectively route the hulu and pandora traffic.
You might not have to worry about this within the next few months.
Once Hulu starts charging next year, they may lift the international ban. _________________ Soylent Green Is People !
=-=-=-=-=-=-=-=-=-=-=
Netgear Nighthawk R7000 - DD-WRT Build R46220
Linksys EA8500 - OpenWRT IPQ806x Trunk R16375 5.4 Kernel
_________________ Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge
All those iptables commands appear to be extraneous. The 0.0.0.0/0 especially cracked me up. _________________ Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
0.0.0.0/0 is the Internet _________________ Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge
No, 0.0.0.0/0 is all IP addresses regardless of what network they're on. The option matches every IP address which the rule would do anyways. _________________ Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
#!/bin/sh
########################################################################
# Script to monitor and keep routing table up to date with services
# like Pandora and Hulu when routing through a tunnel interface.
#
# Created by scott francis (scott@planetscott.ca)
########################################################################
########################################################################
## User-defined variables
########################################################################
# Networks to be routed through the tunnel (separated by spaces)
ROUTES="208.85.40.0/24"
# Tunnel interface
TUNNELIF="ppp1"
check_route() {
# Extract the network portion of the route
NET=`expr "$1" : '\(.*\)/'`
# Check if the route is in the routing table
if route | grep $NET > /dev/null; then :; else
# It's not ... make sure our tunnel interface is up...
if ifconfig | grep $TUNNELIF > /dev/null;
then
route add -net $1 $TUNNELIF
fi
fi
}
case $1 in
"start" )
$0 go &
;;
"go" )
if [ -f "${PIDFILE}" ];
then
PID="`cat ${PIDFILE}`"
if egrep $SCRIPTNAME "/proc/${PID}/cmdline" 2>&1 /dev/null;
then
echo "Already running!"
exit 16
fi
rm -rf "${PIDFILE}"
fi
echo -n $$ > "${PIDFILE}"
while [ 1 ];
do
for ROUTE in $ROUTES
do
check_route $ROUTE
done
sleep 30
done;
;;
No, 0.0.0.0/0 is all IP addresses regardless of what network they're on. The option matches every IP address which the rule would do anyways.
You mean:
Yes, 0.0.0.0/0 is all IP addresses regardless of what network they're on. The option matches every IP address which the rule would do anyways.
0/0 IS the ipv4 internet. You are correct they are superfluous as this is the default value. They do make it clear it is the Internet. _________________ Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge
The Internet and the entirety of the Internet Protocol addressing are different things... _________________ Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
The Internet and the entirety of the Internet Protocol addressing are different things...
Semantics....
We're talking about addressing... _________________ Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge