Forum: Geek Forum
Topic: Big Brother
started by: chmod

Posted by chmod on May 05 2002,20:08
At my high school (it's my last year) they've just installed security cameras. Pretty high-tech shit... probably a waste of money though. But the cool thing is that anyone on the school network can watch the cameras, all you need to do is put in the camera's ip address (each one has its own ip, im guessing it has a built in web server or something) and you get an html page with streaming video... it's a lot of fun to play with (not many people know how to get to it, but I do work in the computer office so the sysadmin showed me). One of the cameras even lets you zoom, pan, and tilt the camera with buttons on the page. However, the network has a firewall so you can't get to them from anywhere outside (but you can make client connections to hosts outside of the firewall on some ports, like http and ftp). So I can't watch them from home. There is one linux box on the network, however, that I have complete control over (root and everything) so I was thinking of maybe creating some kind of relaying program. I would have a server process running on my box at home (bound to one of the allowed ports), and a client running on the computer at school. The school computer would connect to my home computer, take the images from the camera, and forward them over to me at home.
Any ideas on a better way to do it?
Posted by CNCJake on May 06 2002,00:12
Yea Dude! If the firewall alows passthrough of either PPTP or L2TP traffice, which it probley does. You can start a VPN server on your Linux box. It would be nice if your linux server has a public ip, if not, you might me need a whole lot of work to get VPN request routed to you box. Other bad thing, chances are the firewall has a security log, and a VPN connection would stand out like a sore thumb. Besides, theres no point to this at all unless they have security cameras in the girls bathroom!
Posted by editor on May 06 2002,00:31
Exactly, CJ.
It would be cool to show that off until somebody told the school, in the meantime, what is the use of ditching when you stay at home and watch what you're missing?

When I ditched, I never thought about school.
Posted by RadioActive on May 06 2002,02:21
all you need to do to give access from outside is to do simple port forwarding. very easy with linux and a even easier under windows with the right app. all you need is take for example port 31337 and forward it to ip of camera with port 80. that's it.
Posted by Anztac on May 06 2002,03:07
If he doesn't have access to the router at the school (which it sounds like he doesn't) then he has to make his home server a listen server, and pipe a PPP tunel through the schools http port (80).  It's not hard to do.
Posted by chmod on May 07 2002,02:32
Quote (Anztac @ 05 May 2002,19:07)
If he doesn't have access to the router at the school (which it sounds like he doesn't) then he has to make his home server a listen server, and pipe a PPP tunel through the schools http port (80).  It's not hard to do.

Yeah, that's pretty much what I was going for. The hard part is actually getting the image from the camera's stream. I don't know how I would do that. But, after I get that part down, sending it over to my house and displaying it should be a piece of cake, since I already have some socket programming experience.
Posted by Anztac on May 07 2002,03:25
wget my friend.
Posted by Wiley on May 07 2002,14:11
Is this an Axis camera by chance?  Easiest thought I to use the ftp function that is already built into the camera.  Most cameras will forward a still at intervals to a specific host via ftp for storage  ...just forward them to your home computer and refresh the image everytime you get a new still.  I know on the Axis cameras you can set this up via ip x.x.x.x/admin.  You would have to know the admin password of course  ...or you can physically hit the pinhole reset button on the back of the camera and reset it to nothing.
Powered by Ikonboard 3.1.4 © 2006 Ikonboard