multiple streaming servers behind a Bastion Host
- by Bond
I am using open source streaming server Red5 on multiple servers.
Which are running behind a bastion host.
the world knows these sites as
http://site1.mydomain.com
http://site2.mydomain.com
http://site3.mydomain.com
http://site4.mydomain.com
To reach the front end server is using Apache Reverse Proxy.
I am also having video streaming on each of these websites using rtmp.
To be able to reach the streaming server I
embed a javascript in HTML pages
as follows
Code:
<embed .....
var="rtmp://site1.my_domain.com"
>
the problem is the website are many
site1.mydomain.com
site2.mydomain.com
site3.mydomain.com
site4.mydomain.com
each on a separate physical server.
Each of these four have their own Red5 installations the front end to each of these four is a common Bastion Host.
If I run rtmp on each of the subdomains at a different port
how will I make sure
a request such as
rtmp://site1.mydomain.com
rtmp://site2.mydomain.com
goes to their respective servers.
from the front end server.
What do I need to handle in this case ?
IPTABLES came to mind instantly but from the client browser on internet when some one requests
rtmp://site1.mydomain.com
how will I make sure this rtmp request is mapped to a port different than 1935 as there are three other streaming servers which are also to respond to their respective requests
?