Page 1 of 1

Streaming Video from server through VPN

Posted: Sat Jan 19, 2013 6:45 am
by Aniki18
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?

Re: Streaming Video from server through VPN

Posted: Sat Jan 19, 2013 2:41 pm
by James
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

Re: Streaming Video from server through VPN

Posted: Sun Jan 20, 2013 7:04 am
by Aniki18
Awesome, it totally works now! Thanks James. :D