Wowza 3.x – RTMPAuthenticate

To be able to secure your incoming (publish) stream to Wowza Media Server  you can use the module RTMP Authenticate. This will prevent that other people can use/hack your stream.

In this tutorial i will assume that you already know how to setup a new application

Forumlink: https://www.wowza.com/forums/content.php?449

Needed:

  • existing application
  • file /conf/publish.password

We are going to do some copy-pasting :D. We have to place the module inside the Application.xml. Add this module as the last entry in the module section (sample will be included in the end of this tutorial)

<Module>
	<Name>ModuleRTMPAuthenticate</Name>
	<Description>ModuleRTMPAuthenticate</Description>
	<Class>com.wowza.wms.security.ModuleRTMPAuthenticate</Class>
</Module>

Now all you have to is set a username and password. Open the file /usr/local/WowzaMediaServer/conf/publish.password and place the username and password that you desire

# Publish password file (format [username][space][password])
# username password
myuser mypassword

#stream live
live  12345

#stream 2
stream2 67890

Save the file en restart Wowza

#: /etc/init.d/WowzaMediaServer restart or #: service WowzaMediaServer restart

Now when you connect your stream to the wowza server you have to provide a username and password. Use the same credentials from the publish.password file.

#Note: that the user credentials from stream1 also work for stream2. You can use comment tags in your publish.password file to separate user credentials.

publish stream: rtmp://<ip-address>:<port>/<stream-name>

Sample of the Application.xml module section

 <Modules>
                        <Module>
                                <Name>base</Name>
                                <Description>Base</Description>
                                <Class>com.wowza.wms.module.ModuleCore</Class>
                        </Module>
                        <Module>
                                <Name>logging</Name>
                                <Description>Client Logging</Description>
                                <Class>com.wowza.wms.module.ModuleClientLogging</Class>
                        </Module>
                        <Module>
                                <Name>flvplayback</Name>
                                <Description>FLVPlayback</Description>
                                <Class>com.wowza.wms.module.ModuleFLVPlayback</Class>
                        </Module>
                        <Module>
                                <Name>ModuleRTMPAuthenticate</Name>
                                <Description>ModuleRTMPAuthenticate</Description>
                                <Class>com.wowza.wms.security.ModuleRTMPAuthenticate</Class>
                        </Module>
                </Modules>

 

 

 

You may also like...

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments