Canadian TV, Computing and Home Theatre Forums banner

1 - 10 of 10 Posts

·
Registered
Joined
·
214 Posts
Discussion Starter #1
Ok I have a question regarding setting up a VPN on Linux for specific traffic.
I too would like to use Hulu but I am running Mythbuntu.
I would love to setup a VPN but only have the Huludesktop app use the VPN connection all other traffic should go out not over the VPN. I don't know if this is possible and my Google-fu turns up very little/no info on this.
Hopefully this is the right spot for this question.
 

·
Member #1
Joined
·
47,683 Posts
moved this post to a new thread in Linux forum since this is beyond the scope of the thread you posted in. Hope you get your answer.
 

·
Registered
Joined
·
8,390 Posts
but only have the Huludesktop app use the VPN connection all other traffic should go out not over the VPN.
All that's required is to set up the appropriate routing rule for the desired traffic to go through the VPN. Leave the default route as is. I do this when I use OpenVPN to connect to my home network. I even had it set up so that when I connected to the Rogers SMTP server, it would appear as though I was connecting from home. (This was before I learned about using port 587 for off network SMTP.)
 

·
Registered
Joined
·
214 Posts
Discussion Starter #4
Thanks Hugh, I wasn't sure if that was the right place or not.
JamesK you make it sound so very easy....
 

·
Registered
Joined
·
8,390 Posts
^^^^
It's not difficult, but you have to understand how to configure routing. For example, in the script which I use to start OpenVPN, I added these lines:

/sbin/route add -net 172.16.1.0 netmask 255.255.255.0 tun0
/sbin/route add -host smtp.broadband.rogers.com tun0

The first sets up the route to my home network via the VPN and the 2nd says traffic for the Rogers SMTP server also goes via the VPN. Tun0 is the VPN interface and it is possible to have more than one. For example, when I enable the IPv6 6in4 tunnel, it appears as tun1 and I can have both it and OpenVPN up at the same time.
 

·
OTA Forum Moderator
Joined
·
24,867 Posts
Traffic Shaping for Hulu

If you get your OpenVPN up and running but you find that other activity on your LAN is causing burps or stuttering with Hulu you can also use iptables traffic shaping to elevate the priority of port 587 packets above most others. It is a bit involved, but I can post instructions here if anyone is interested.
 

·
Registered
Joined
·
8,390 Posts
^^^^
Port 587 is for off network SMTP. OpenVPN normally uses UDP port 1194, but it can be configured for another port or TCP.
 

·
Registered
Joined
·
214 Posts
Discussion Starter #9
It has been a long time since I started this thread and not surprisingly I just got around to getting things going.
So here is my situation, I had to setup a VPS recently so I figured why not get OpenVPN going on the machine and kil 2 birds with one stone.
So for this past weekend I have been on and off working on getting OpenVPN up and running. I can ping between client and server which means I should have a good connection there.
After much fighting I was able to get socksd up and running on my server as well. Unfortunately when I try to connect to the socks server in firefox using the internal IP of the socks server it doesn't work, when I echo the server and then try to sockify huludesktop I am not being redirected through the socks server.

I would appriciate any help with this. I can paste logs, configs etc, just let me know what I can share to make this work.

Thanks,
 

·
Registered
Joined
·
214 Posts
Discussion Starter #10
Ok, so to keep things updated here for the sake of future reference, I was able to get firefox to connect to my vpn. I had to set the socks server to 4 instead of 5. Now my browser works as if I am in the US.
Now to figure out how to route my huludesktop traffic through the vpn/socks server.
 
1 - 10 of 10 Posts
Top