Wowza Media Server protocols and its port numbers – Iptables

Please share it on

Wowza Media Server is one of the best media streaming server. I recommended Wowza Media Server personally because of it’s performance, flexible license cost, end device support, cross platform support, end device support etc., It’s using RTMP, RTSP, HTTP and RTP Protocols.

Just in case if you are using UFW firewall, then check here

 

Ports and it’s applications

 

HTTP – TCP 80

RTMPS, HTTPS – TCP 443

RTSP – TCP 554

RTMP – TCP 1935

JMX Console and Monitoring – TCP 8084-8085

HTTP administration – TCP 8086

RTP – UDP 6970 -9999

 

IPtable Rules

 

Following are the rules to add in the firewall

 

# RTMP (all variants), RTSP, Microsoft Smooth Streaming, Apple HTTP Live Streaming (HLS)
/sbin/iptables -A INPUT -p tcp –dport 1935 -j ACCEPT

# RTP UDP Streaming
/sbin/iptables -A INPUT -p udp –dport 6970:9999 -j ACCEPT

# JMX/JConsole monitoring and administration
/sbin/iptables -A INPUT -p tcp –dport 8084:8085 -j ACCEPT

# HTTP administration
/sbin/iptables -A INPUT -p tcp –dport 8086 -j ACCEPT

# RTMPT, Microsoft Smooth Streaming, Apple HTTP Live Streaming (HLS), Adobe HTTP Dynamic Streaming (HDS)
/sbin/iptables -A INPUT -p tcp –dport 80 -j ACCEPT

# RTMPS, HTTPS
/sbin/iptables -A INPUT -p tcp –dport 443 -j ACCEPT

# RTSP
/sbin/iptables -A INPUT -p tcp –dport 554 -j ACCEPT

# ICMP
/sbin/iptables -A INPUT -p icmp -j ACCEPT

# Allow local traffic
/sbin/iptables -A INPUT -s 127.0.0.1 -j ACCEPT

# Connections already made
/sbin/iptables -A INPUT -m state –state RELATED,ESTABLISHED -j ACCEPT
/sbin/iptables -A FORWARD -i eth0 -m state –state RELATED,ESTABLISHED -j ACCEPT
/sbin/iptables -A OUTPUT -m state –state NEW,RELATED,ESTABLISHED -j ACCEPT

# Reject all other traffic
/sbin/iptables -A INPUT -j REJECT
/sbin/iptables -A FORWARD -j REJECT

Please share it on

3 Comments for “Wowza Media Server protocols and its port numbers – Iptables”

Leave a Reply

Your email address will not be published. Required fields are marked *