Showing posts with label reverse. Show all posts
Showing posts with label reverse. Show all posts

April 14, 2014

Streaming HLS and MPEG-DASH from behind reverse proxy

There are use cases when a media streamer is putting Nimble Streamer media server behind the reverse proxy. This is usually done for security reasons and works pretty good.

But there is a side effect of this solution. For each connection, Nimble Streamer gets the IP of the proxy instead of IP of the viewer. This means that geo-location reporting for HLS and other HTTP protocols would be shown incorrectly. Also, WMSPanel hotlinking protection and geo-lock will not work since it's based on IP as well.

For HTTP-based protocols like HLS, MPEG-DASH, SmoothStreaming and Progressive download this can be solved via processing X-Forwarded-For header.

We've recently added processing capability option to handle this HTTP header in Nimble Streamer. You need to follow these easy steps.

1. Open Nimble Streamer configuration file called /etc/nimble/nimble.conf and add the following parameter:
cdn_origin = true

2. Restart Nimble.
For Debian/Ubuntu run:
sudo service nimble restart
For Red Hat Enterprise Linux 6 / CentOS 6 run:
sudo service nimble start

That's it. Nimble Streamer will be obtaining customers' IP addresses correctly.

Web interface changes for WMSAuth


If you use WMSAuth paywall feature set and your web interface is also located behind the proxy, (e.g. in case you use CloudFlare) you may also need to update your media signature code, as described in this article.


Contact us if you face any difficulties with the setup.

Related documentation


Nimble StreamerPaywall for Nimble StreamerNimble Streamer HTTP hotlinking protection

April 12, 2014

Wowza statistics behind reverse proxy

There are use cases when a media streamer is putting Wowza Streaming Engine behind the reverse proxy. This is usually done for security reasons. This usually works good.

But there is a side effect of this solution. For each connection, Wowza gets the IP of the proxy instead of IP of the viewer. This means that geo-location reporting for Wowza would be shown incorrectly. Also, WMSPanel hotlinking protection for Wowza streams will not work since its hash is based on IP as well.

For HTTP-based protocols like HLS, MPEG-DASH, HDS and SMOOTH this can be solved via processing X-Forwarded-For header which Wowza provides.

We've recently added processing capability option to WMSPanel agent handle this HTTP header. You need to follow these easy steps.

1. Open Server.xml file and add the following property.
<Properties>
    <Property>
        <Name>PanelCdnOrigin</Name>
        <Value>true</Value>
    </Property>
</Properties>
2. Restart Wowza.

That's it. WMSPanel agent will be obtaining customers' IP addresses correctly.

Please notice that HTTP header is available in Wowza versions 3.x and later. Contact us if you face any difficulties with the setup.

Read more about WMSPanel streaming reporting.

Related documentation


WMSPanel, Control panel for Wowza Streaming Engine 4End user reporting for WowzaWMSPanel examples and case studyPaywall for WowzaDispersa streams monitoring