![]() |
|
|
|
|
|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes | |
|
|
||||
|
|
#1 |
|
Join Date: Oct 2008
Posts: 175
|
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. |
|
|
| Sponsored Links | |||
Advertisement | |||
|
|
#2 |
|
Member #1
Join Date: Dec 2001
Location: Toronto
Posts: 47,492
|
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.
__________________
As of January 2012, I am no longer the owner of the Digital Home website. If you have questions about the operation of the site, please contact VSAdmin. For personal inquiries contact me at the Hugh Thompson website. |
|
|
|
|
#3 | |
|
Veteran
Join Date: May 2009
Location: Mississauga
Posts: 5,042
|
Quote:
|
|
|
|
|
|
#4 |
|
Join Date: Oct 2008
Posts: 175
|
Thanks Hugh, I wasn't sure if that was the right place or not.
JamesK you make it sound so very easy.... |
|
|
|
|
#5 |
|
Veteran
Join Date: May 2009
Location: Mississauga
Posts: 5,042
|
^^^^
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. |
|
|
|
|
#6 |
|
OTA Forum Moderator
Join Date: Jan 2005
Location: North Delta, BC (96Av x 116St)
Posts: 23,338
|
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.
|
|
|
|
|
#7 |
|
Veteran
Join Date: May 2009
Location: Mississauga
Posts: 5,042
|
^^^^
Port 587 is for off network SMTP. OpenVPN normally uses UDP port 1194, but it can be configured for another port or TCP. |
|
|
|
|
#8 |
|
OTA Forum Moderator
Join Date: Jan 2005
Location: North Delta, BC (96Av x 116St)
Posts: 23,338
|
That's fine - whichever port is needed, whether TCP, UDP, or both, can be prioritized if need be.
|
|
|
|
|
#9 |
|
Join Date: Oct 2008
Posts: 175
|
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, |
|
|
|
|
#10 |
|
Join Date: Oct 2008
Posts: 175
|
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. |
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|