📜 ⬆️ ⬇️

Portaller - now with support for Pandora, Spotify, Rdio, Netflix and Amazon Video on all devices

Hey.
I want to tell you some interesting news about what is happening with Portaller - a small service for using Pandora , Spotify , Netflix and a few more services outside the US.

In one line, if you do not have time to go under the cat - except for Pandora and Spotify, Netflix and Amazon Video are now supported, the service works on all devices, including Android clients (why it has such an accent - read below) and you can join it on GitHub .


')
GitHub project
The main thing that happens to him in this difficult time is that he works and remains free and open . If you want to help with something or just “make yourself the same” - please join.

How much traffic is needed
When the service was just launched , I, like many commentators, was very skeptical about the power and stock of traffic on younger droplets in DigitalOcean . Doubts were in vain - all currently supported services are able to transfer content directly to a client, using proxying only to create / pay for an account, log in or transfer control commands. The total volume of monthly traffic for such use is around 200GB.

What services are supported
At the start of the service was able to work only with Pandora and Spotify, and only in the browser or in applications on iOS. Five services are currently supported — three audio ( Pandora , Spotify , Rdio ) and two videos ( Netflix and Amazon Video ). More importantly, they all work on all platforms - in the browser, desktop clients, SmartTV TVs, on iOS and Android.

What difficulties arise
I specifically focused on platform support because of its non-triviality, especially on Android — all of a sudden it will come in handy for you. The fact is that many Android applications, when working with SSL, use libraries without SNI support (Server Name Indication) and, accordingly, do not transfer the domain name within the SSL session. Because of this, simple proxying of requests by sniproxy / haproxy becomes impossible - the application behaves, conditionally, as a naive girl, and they get something like this dialogue:

Pandora: - I came. Come on (waiting for something)
SNIproxy: - What to give? (does not understand what to give)

Pandora: - I came. Come on (repeats the request and is still waiting for something)
SNIproxy: - What to give? (still doesn't understand anything)

Pandora: - Well, okay, I'm leaving (breaks the connection, shows an error message to the user)

SNIproxy throws up his hands and writes an error in the log.


Well, you understand. If the application uses SNI, then from the first sentence the picture changes - it directly tells which domain it wants to access and there are no difficulties with proxying such requests. I found only one solution: for each domain with which such an application wants to work over SSL, you need to raise a separate IP and describe it as a separate zone in the DNS. In this case, proxying at this address will work with only one domain and the application is, of course, satisfied.

Almost end
Finally, I want to give you just such a link - http://portaller.com/setup . It tells you how to configure DNS on different devices (in general, no rocket science), but if you need to learn how to get access to US-only SmartTV applications on Samsung TVs, it may be useful.

Come, use on health.

Source: https://habr.com/ru/post/247101/


All Articles