Book Image

WebRTC Cookbook

By : Andrii Sergiienko
Book Image

WebRTC Cookbook

By: Andrii Sergiienko

Overview of this book

Table of Contents (15 chapters)
WebRTC Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Configuring a firewall


If you develop a WebRTC application and maintain your own infrastructure (STUN/TURN servers, web servers), then a properly configured firewall is very important for you. Usually, every server has a network firewall configured and running. Misconfigured firewalls can block services and cause side effects. With WebRTC, a misconfigured firewall can lead the application to DoS (denial of service) or make some parts of it unworkable; for example, you can hear audio but can't see video.

In this recipe, we will cover basic information that might help you to configure a network firewall properly.

Getting ready

There are many firewall implementations, and it is impossible to cover all of them. So here, we will mostly talk about recommendations rather than practical commands and codes.

Find which firewall is used on your system. On Windows, it is a built-in firewall. On Linux systems, you often have iptables. On BSD systems, it can be pf or ipfw. Mac systems usually use tools from...