Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 09-15-2003, 03:24 PM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,486
sde is on a distinguished road
Linux Security System

I have a new place with lots of goodies, and I want to build a linux security system.

It needs to stream the video feed ( audio would be cool too ) over the internet.

It will support multiple video feeds.

Any tips on software or equipment?

Thanks
__________________
Mike
sde is offline   Reply With Quote
Old 09-15-2003, 03:58 PM   #2 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,161
Belisarius is on a distinguished road
Gibraltar Linux is interesting in that it's designed to be a secure Linux networking solution. It's very similar to Knoppix in that it's a bootable CD distrobution, but it's designed to be a secure router as opposed to a bootable demo version of Linux. Because it runs off the CD, someone can't exactly root it and change around programs to turn it into a zombie. What you could do is route all incoming traffic through a Gibraltar box, turning it into a DMZ of sorts, sending only authorized requests (such as web traffic or your video streams) to another box inside the network.
__________________
GitS
Belisarius is offline   Reply With Quote
Old 09-15-2003, 04:34 PM   #3 (permalink)
bdl
Senior Contributor
 
Join Date: May 2002
Location: vta.ca.usa
Posts: 555
bdl is on a distinguished road
Heh. I just built a system to do exactly that. I'm running 3 inexpensive cameras (the x10.com type of camera) routed into a debian box via 3 PCI composite capture cards. The application 'motion' runs as a daemon and streams (to a netscape / mozilla browser, NOT IE) the three video feeds simultaneously with very little proc / io overhead (CPU is approx 4-10% while normal streaming). 'Motion' is primarily, however, an application that uses the video feed like a motion sensor, and grabs snapshots if motion is detected (basically detects changes in light balance in the CCD) for later viewing. It also supports on-the-fly MPEG encoding of the snapshots, although I haven't used it much (too intensive on a 400mHz system). I started looking into building a PHP interface for the snapshot viewing (in fact, posted on here about it) but haven't finished it.

Streaming is accomplished by a combination of 3 local ports of your choosing and Apache. The webpage that streams the video feeds (or just one feed, however you want to do it) connects to the local port and then just outputs the image in realtime. Bandwidth isn't too big of a problem, it all seems to get across the pipe pretty easily.

I'm using the generic AverMedia DVD capture PCI composite card I got through newegg.com for around $40 ea. It's pretty well supported by the BTTV linux driver, and may work under BSD. If I had it to do over again, I might consider the Hauppage WinTV card, though, probably easier to setup because it's been around for so long and alot of linux users use them. There are also multiple composite capture cards (4-6-8, IIRC) but you have to share the bandwidth of each stream on the same chipset, so slower and smaller images.

The cameras are just inexpensive B&W wired security cameras I picked up, plus one wired color camera from x10.com, the 'Anaconda'. The color camera is by far the most clear image and also doesn't distort in different light situations like the B&W, although I thought it might be the other way around. I have another x10 camera I plan to swap out for one of the B&W cameras. One is in the front monitoring the front door, mailbox, windows and the other two monitor the back of the place in a diagonal so they cover alot of area.

Wiring is not too bad, it's basically either 4 or 6 conductor CAT3 telephone cabling that runs video / audio and power signal all at once. I'm not using any audio, so just the video and power was wired up. I ran the cabling around the eaves of the place, and went in through a small hole with a cable feedthrough, used some silicon to seal everything up. Then wired into a RJ-11 wallplate and one seperate modular connector. I also have a cool modular wallplate that accepts three connections on the face, but it's still out in the garage. =)

Let me know if you need some help with the project, I probably should outline it all on a webpage anyway...I've got wiring diagrams and stuff for the cabling.

<Motion homepage>

<Snapshot of the streaming video in mozilla>
bdl is offline   Reply With Quote
Old 09-15-2003, 07:41 PM   #4 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,161
Belisarius is on a distinguished road
Erp. I thought you meant a secure Linux system. My bad.
__________________
GitS
Belisarius is offline   Reply With Quote
Old 09-16-2003, 07:40 AM   #5 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,486
sde is on a distinguished road
wow, thanks a lot! i can't wait to get started .. i'm sure i'll be posting more about it.
__________________
Mike
sde is offline   Reply With Quote
Old 09-18-2003, 07:58 PM   #6 (permalink)
Ilya020
Techno Rat
 
Ilya020's Avatar
 
Join Date: Jan 2003
Location: San Diego
Posts: 559
Ilya020 is on a distinguished road
Send a message via AIM to Ilya020

Thats sick! Argh, I wish I had the time to do something like that...


Ilya
__________________
> SELECT * FROM users WHERE clue > 0
0 rows returned
Ilya020 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
A critical security vulnerability has been found in the Linux kernel redhead Code Newbie News 0 02-19-2004 10:37 PM
Linux gets sensitive government use approval CaN Opener Code Newbie News 0 08-14-2003 12:29 PM
Linux policies Belisarius Linux / BSD / OS X 0 08-09-2003 05:12 PM
LinuxWorld: 2.6 kernel cures some security shortcomings sde Code Newbie News 0 08-08-2003 07:39 AM
security web cam for linux? sde Linux / BSD / OS X 1 04-11-2003 09:23 AM


All times are GMT -8. The time now is 02:34 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting