Page 1 of 1

Network camera + VLC + Apache + NAT + Restrictive Firewall

Posted: 07 Jul 2006 23:06
by jaimono
I will give a description of the system and post a few questions and
throubles while I go on.

We have a Dell PowerEdge
1800 server: 2 Intel emt64 procesors + 4 GB Ram. This server is behind
a really very restrictive Firewall I assume that it only allows to
enter http connections, plus the server doesn't get the requests
directly, the request came to a router that has the public ip that
corresponds to the domain name and then the packets are redirected to
the server private (LAN) ip address, you know, by NAT.

We have some AXIS 213 PTZ Network cameras and I am trying to make the
streams those cameras produce available in the Internet. For the
moment I'm using only one camera.

First the video stream is reflected with videolan by using the
following command:

Code: Select all

/usr/local/bin/vlc rtsp://172.16.215.203:554/mpeg4/media.amp -d \ :sout=\\\#duplicate\\\{dst=std\\\{access=http,mux=ts,dst=127.0.0.1:1234\\\}\\\\}
Where 172.16.215.203 is the camera's ip. The camera sends an
mpeg4 video stream and, I guess, is not sending audio (you can attach
a microphone but is disabled).

Then the stream is made available at port 80 by using Apache's
mod_proxy_http. To make a reverse proxy I put the following
lines in httpd.conf:

Code: Select all

<Location /stream_micro.mp4 > ProxyPass http://127.0.0.1:1234/ ProxyPassReverse http://127.0.0.1:1234/ </Location>
So now I can access the stream via HTTP in the URL
http://host.name/stream_micro.mp4. And here comes my first
question: Is it right to put an mp4 extension to it? If I try to
open it directly from a browser it will make a download that will
never ends. Which extension should I use?


Now the streams opens fine in VLC Player and browsers with the VLC
Plugin, using html pages with the object and embed tags, from any
other machine inside the LAN but when someone on the Internet try to
load those pages they can't watch the stream. All they can see is the
VideoLAN Cone.

What am I doing wrong?

How can I put the stream on Internet?

Should I request to open some ports in the Firewall?

Shall I configure something like TTL in VLC?



Thanks in advance for any help you can bring me.

--
Jaime Alberto Silva