ZoneMinder behind a proxy

Forum for questions and support relating to the 1.24.x releases only.
Locked
liviab
Posts: 87
Joined: Wed Oct 15, 2008 11:54 am
Location: Brazil [MG]

ZoneMinder behind a proxy

Post by liviab »

Hi...

Firstly, I'm behind a proxy.

I have ZoneMinder installed in my computer and it's working fine for local cameras and a IP camera in the same network that ZM is.

When I try to access a IP camera outside my network, it is showed:

Code: Select all

07/10/09 12:24:49.512018 zmc_m4[5825].INF-zmc.cpp/188 [Starting Capture]
07/10/09 12:27:58.521595 zmc_m4[5825].ERR-zm_remote_camera_http.cpp/100 [Can't connect to remote camera: Connection timed out]
07/10/09 12:27:58.529174 zmc_m4[5825].ERR-zm_remote_camera_http.cpp/1020 [Unable to connect to camera]
07/10/09 12:27:58.529353 zmc_m4[5825].ERR-zmc.cpp/253 [Failed to pre-capture monitor 4 (0/1)]
I'm quite sure that is a problem related with proxy.

What should I do to ZM find this cameras?

By the way, the camera's configuration is as below:
Remote Protocol: HTTP
Remote Method: Regexp
Remote Host Name: 212.147.17.64
Remote Host Port: 80
Remote Host Path: axis-cgi/mjpg/video.cgi

http://212.147.17.64:80/axis-cgi/mjpg/video.cgi is found by browser.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Have you tried setting the proxy for ZM in Options?
liviab
Posts: 87
Joined: Wed Oct 15, 2008 11:54 am
Location: Brazil [MG]

Post by liviab »

Yes.
The option UPDATE_CHECK_PROXY is set as is said to be (http://<proxy>:<proxy>/).

See the "complete" debug file:

Code: Select all

07/13/09 12:59:54.162691 zmc_m3[22584].INF-zm_debug.c/292 [New Debug Level = 9, New Debug Log = /tmp/zm_debug.log.22584]
07/13/09 12:59:54.163474 zmc_m3[22584].DB1-zm_monitor.cpp/2262 [Got 1 monitors]
07/13/09 12:59:54.164091 zmc_m3[22584].DB2-zm_remote_camera_http.cpp/69 [Request: GET /axis-cgi/mjpg/video.cgi HTTP/1.1^M
User-Agent: ZoneMinder/1.24.2^M
Host: 212.147.17.64^M
Connection: Keep-Alive^M
^M
]
07/13/09 12:59:54.170636 zmc_m3[22584].DB1-zm_monitor.cpp/338 [monitor purpose=1]
07/13/09 12:59:54.170636 zmc_m3[22584].DB1-zm_monitor.cpp/345 [mem.size=20737192]
07/13/09 12:59:54.597877 zmc_m3[22584].DB1-zm_zone.cpp/50 [Initialised zone 0/All - 1 - 480x360 - Rgb:ff0000, CM:3, MnAT:15, MxAT:0, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0, OF: 0]
07/13/09 12:59:54.599337 zmc_m3[22584].DB9-zm_image.cpp/1354 [x1:0,y1:359 x2:0,y2:0]
07/13/09 12:59:54.599371 zmc_m3[22584].DB9-zm_image.cpp/1354 [x1:0,y1:0 x2:479,y2:0]
07/13/09 12:59:54.599381 zmc_m3[22584].DB9-zm_image.cpp/1354 [x1:479,y1:0 x2:479,y2:359]
07/13/09 12:59:54.599389 zmc_m3[22584].DB9-zm_image.cpp/1354 [x1:479,y1:359 x2:0,y2:359]
07/13/09 12:59:54.599427 zmc_m3[22584].DB9-zm_image.cpp/1374 [0: min_y: 0, max_y:359, min_x:0.00, 1/m:-0.00]
07/13/09 12:59:54.599538 zmc_m3[22584].DB9-zm_image.cpp/1374 [1: min_y: 0, max_y:359, min_x:479.00, 1/m:0.00]
07/13/09 12:59:54.599553 zmc_m3[22584].DB9-zm_image.cpp/1388 [Moving global edge]
07/13/09 12:59:54.599564 zmc_m3[22584].DB9-zm_image.cpp/1388 [Moving global edge]
07/13/09 12:59:54.599572 zmc_m3[22584].DB9-zm_image.cpp/1409 [0 - 0: min_y: 0, max_y:359, min_x:0.00, 1/m:-0.00]
07/13/09 12:59:54.599581 zmc_m3[22584].DB9-zm_image.cpp/1409 [0 - 1: min_y: 0, max_y:359, min_x:479.00, 1/m:0.00]
07/13/09 12:59:54.599594 zmc_m3[22584].DB9-zm_image.cpp/1409 [1 - 0: min_y: 0, max_y:359, min_x:0.00, 1/m:-0.00]
07/13/09 12:59:54.599603 zmc_m3[22584].DB9-zm_image.cpp/1409 [1 - 1: min_y: 0, max_y:359, min_x:479.00, 1/m:0.00]
07/13/09 12:59:54.599616 zmc_m3[22584].DB9-zm_image.cpp/1409 [2 - 0: min_y: 0, max_y:359, min_x:0.00, 1/m:-0.00]
07/13/09 12:59:54.599625 zmc_m3[22584].DB9-zm_image.cpp/1409 [2 - 1: min_y: 0, max_y:359, min_x:479.00, 1/m:0.00]
07/13/09 12:59:54.599637 zmc_m3[22584].DB9-zm_image.cpp/1409 [3 - 0: min_y: 0, max_y:359, min_x:0.00, 1/m:-0.00]
...
07/13/09 12:59:54.626303 zmc_m3[22584].DB9-zm_image.cpp/1316 [x:4, y:359.00]
07/13/09 12:59:54.626315 zmc_m3[22584].DB9-zm_image.cpp/1316 [x:3, y:359.00]
07/13/09 12:59:54.626323 zmc_m3[22584].DB9-zm_image.cpp/1316 [x:2, y:359.00]
07/13/09 12:59:54.626331 zmc_m3[22584].DB9-zm_image.cpp/1316 [x:1, y:359.00]
07/13/09 12:59:54.633110 zmc_m3[22584].DB1-zm_monitor.cpp/458 [Monitor Estacionamento has function 2]
07/13/09 12:59:54.633121 zmc_m3[22584].DB1-zm_monitor.cpp/459 [Monitor Estacionamento LBF = '%N - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
07/13/09 12:59:54.633129 zmc_m3[22584].DB1-zm_monitor.cpp/460 [Monitor Estacionamento IBC = 40, WUC = 25, pEC = 10, PEC = 10, EAF = 1, FRI = 1000, RBP = 7, FM = 0]
07/13/09 12:59:54.634455 zmc_m3[22584].DB1-zm_zone.cpp/889 [Got 1 zones for monitor Estacionamento]
07/13/09 12:59:54.634472 zmc_m3[22584].DB5-zm_zone.cpp/918 [Parsing polygon 0,0 479,0 479,359 0,359]
07/13/09 12:59:54.634503 zmc_m3[22584].DB3-zm_zone.cpp/758 [Parsing polygon string '0,0 479,0 479,359 0,359']
07/13/09 12:59:54.634514 zmc_m3[22584].DB3-zm_zone.cpp/796 [Got coordinate 0,0 from polygon string]
07/13/09 12:59:54.634522 zmc_m3[22584].DB3-zm_zone.cpp/796 [Got coordinate 479,0 from polygon string]
07/13/09 12:59:54.634530 zmc_m3[22584].DB3-zm_zone.cpp/796 [Got coordinate 479,359 from polygon string]
07/13/09 12:59:54.634538 zmc_m3[22584].DB3-zm_zone.cpp/796 [Got coordinate 0,359 from polygon string]
07/13/09 12:59:54.634548 zmc_m3[22584].DB3-zm_zone.cpp/816 [Successfully parsed polygon string]
07/13/09 12:59:54.634586 zmc_m3[22584].DB1-zm_zone.cpp/50 [Initialised zone 3/All - 1 - 480x360 - Rgb:ff0000, CM:3, MnAT:25, MxAT:0, MnAP:5184, MxAP:129600, FB:3x3, MnFP:5184, MxFP:129600, MnBS:3456, MxBS:0, MnB:1, MxB:0, OF: 0]
07/13/09 12:59:54.638435 zmc_m3[22584].DB9-zm_image.cpp/1354 [x1:0,y1:359 x2:0,y2:0]
07/13/09 12:59:54.638435 zmc_m3[22584].DB9-zm_image.cpp/1354 [x1:0,y1:0 x2:479,y2:0]
07/13/09 12:59:54.638435 zmc_m3[22584].DB9-zm_image.cpp/1354 [x1:479,y1:0 x2:479,y2:359]
07/13/09 12:59:54.638435 zmc_m3[22584].DB9-zm_image.cpp/1354 [x1:479,y1:359 x2:0,y2:359]
07/13/09 12:59:54.638435 zmc_m3[22584].DB9-zm_image.cpp/1374 [0: min_y: 0, max_y:359, min_x:0.00, 1/m:-0.00]
07/13/09 12:59:54.638435 zmc_m3[22584].DB9-zm_image.cpp/1374 [1: min_y: 0, max_y:359, min_x:479.00, 1/m:0.00]
07/13/09 12:59:54.638435 zmc_m3[22584].DB9-zm_image.cpp/1388 [Moving global edge]
07/13/09 12:59:54.638435 zmc_m3[22584].DB9-zm_image.cpp/1388 [Moving global edge]
07/13/09 12:59:54.638435 zmc_m3[22584].DB9-zm_image.cpp/1409 [0 - 0: min_y: 0, max_y:359, min_x:0.00, 1/m:-0.00]
07/13/09 12:59:54.638435 zmc_m3[22584].DB9-zm_image.cpp/1409 [0 - 1: min_y: 0, max_y:359, min_x:479.00, 1/m:0.00]
07/13/09 12:59:54.638435 zmc_m3[22584].DB9-zm_image.cpp/1409 [1 - 0: min_y: 0, max_y:359, min_x:0.00, 1/m:-0.00]
07/13/09 12:59:54.638435 zmc_m3[22584].DB9-zm_image.cpp/1409 [1 - 1: min_y: 0, max_y:359, min_x:479.00, 1/m:0.00]
...
07/13/09 12:59:54.670158 zmc_m3[22584].DB9-zm_image.cpp/1316 [x:3, y:359.00]
07/13/09 12:59:54.670166 zmc_m3[22584].DB9-zm_image.cpp/1316 [x:2, y:359.00]
07/13/09 12:59:54.670174 zmc_m3[22584].DB9-zm_image.cpp/1316 [x:1, y:359.00]
07/13/09 12:59:54.672350 zmc_m3[22584].DB1-zm_monitor.cpp/2459 [Loaded monitor 3(Estacionamento), 1 zones]
07/13/09 12:59:54.672364 zmc_m3[22584].INF-zmc.cpp/188 [Starting Capture]
07/13/09 13:03:03.686175 zmc_m3[22584].ERR-zm_remote_camera_http.cpp/100 [Can't connect to remote camera: Connection timed out]
07/13/09 13:03:03.688143 zmc_m3[22584].ERR-zm_remote_camera_http.cpp/1020 [Unable to connect to camera]
07/13/09 13:03:03.688198 zmc_m3[22584].ERR-zmc.cpp/253 [Failed to pre-capture monitor 3 (0/1)]

liviab
Posts: 87
Joined: Wed Oct 15, 2008 11:54 am
Location: Brazil [MG]

Post by liviab »

Monitor's configuration:
Remote Protocol: HTTP
Remote Method: Regexp
Remote Host Name: 212.147.17.64
Remote Host Port: 80
Remote Host Path: axis-cgi/mjpg/video.cgi
Remote Image Colours: 24 bit colour
Capture Width: 480
Capture Height: 360

(Try http://212.147.17.64:80/axis-cgi/mjpg/video.cgi and it'll work)

It's worth to say that my camera is in a local network while this camera isn't.

Help me, please!

:?
sef1976
Posts: 46
Joined: Sun Aug 16, 2009 5:24 am

Post by sef1976 »

Remote Method: Regexp
change it to Simple
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Is the network on the ZM Server configured to use the proxy?
ie. is the gateway pointed to the proxy?

Second have you configured the proxy to allow incoming connections to the ZM machine, as requesting a mjpeg push from the cam will make the cam send a stream back to the ZM box. You could try snapshot requests as the proxy should allow it.
schumi
Posts: 3
Joined: Wed Aug 11, 2010 1:56 pm

Post by schumi »

My network is behind proxy server too, so I have the same question.
Does any one know how to set using proxy with ZoneMinder ??
Thanks~~~
Locked