Streaming Video from server through VPN

Got a problem with Viscosity or need help? Ask here!

Aniki18

Posts: 9
Joined: Sat Jan 19, 2013 5:06 am

Post by Aniki18 » Sat Jan 19, 2013 6:45 am
Hey guys,

Loving Viscosity as a client because of all cool features. Here's what I'm trying to achieve: I'm running OpenVPN Access Server on a VPS I'm renting. I've backed up some video files on to this server, and I want to stream them to my client machine (home computer) through OpenVPN. I've set up the VPN connection with Viscosity and everything's working great when accessing the internet (i.e. all traffic is being routed properly through the VPN). However, when trying to stream the videos hosted on my server, the traffic seems to be getting routed through my normal internet connection. Is it possible to encrypt the stream through OpenVPN running on the same machine, or will I have to go through a different VPN service to achieve this?

James

User avatar
Posts: 1880
Joined: Thu Sep 04, 2008 9:27 pm

Post by James » Sat Jan 19, 2013 2:41 pm
Hi Aniki18,

Traffic between the OpenVPN server's public IP address and your computer will travel outside the VPN connection: this is because OpenVPN needs to maintain a route to the server for the VPN connection itself. The trick is to simply access your server using its internal VPN IP address instead (e.g. 10.8.0.1 or whatever it is assigned) instead of using its public IP address. This will ensure any traffic between the OpenVPN server will travel through the VPN connection.

You should be able to SSH into your server and use the ifconfig command to see what the internal IP address is of the tun/tap VPN adapter.

Cheers,
James
James Bekkema
Viscosity Developer

Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs

Aniki18

Posts: 9
Joined: Sat Jan 19, 2013 5:06 am

Post by Aniki18 » Sun Jan 20, 2013 7:04 am
Awesome, it totally works now! Thanks James. :D
3 posts Page 1 of 1