LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-07-2015, 04:08 PM   #1
guerlando
LQ Newbie
 
Registered: Aug 2015
Posts: 29

Rep: Reputation: Disabled
Post How to respond to ethernet frames


Let's say I have an IP camera that can connect both via wireless and via ethernet. However, this camera is from China, and I'm not trusting blindly any software from China to leave it open to the internet inside my house. So, as a solution, I wanted to setup a raspberry pi to respond to ethernet frames with it, since I know the entire ONVIF protocol (the protocol the camera uses to interact with the client) and can block any unwanted connections from her. For now, I blocked her from acessing the internet by blacklisting its IP in the router, but it's not enough for me. I don't leave her open to the world. The way I'm doing rigth know is the following:

I open an SSH fowarding port from JuiceSSH on android, and connect through tinyCam monitor (an ip camera monitor app) to this SSH port, which redirects my traffic locally from raspberry pi to the camera.

However, I wanted to connect lots of cameras to my raspberry pi, without having to do all this stuff. Basically, raspberry pi would be the ethernet or wireless 'host' for these cameras. I would filter all packets and only allow those who contain SOAP messages and the RTSP protocol (real time streaming protocol), which are directed to my IP address. The cameras will have no connection to the internet at all, but would be tricked in thinking there is somebody connected to them locally. Also, they wouldn't even be able to talk with other computers in the network. Basically, I want to create a way to access these cameras without having to trust their software. I can't trust software from China who doesn't even support TLS and connects to a website with no support HTTPs, so I can access the camera from there.

There are 2 options I want to explore and learn:

1) making my raspberry pi act as a wireless host, but block efficiently all the packets I want to, except those who'll be fowared to me, which are the ones that contain: SOAP messages and RTSP messages.

2) making my raspberry pi act as a ethernet host and foward the SOAP as RTSP messages to my client, via internet.

these 2 ways are gonna make me trust an updated linux SSH client, rather than a strange client from China which I barely have idea how insecure it is, and I'll only need to leave one port open to the world, which is the SSH one, and I'll only connect to it with TLS certificates in the client side, so my setup will be pretty secure.

The ethernet idea is better, in my opinion, because I don't need to trust that the wireless connectivity of the camera can't be exploited.

Could somebody tell me what do I have to do to start developing these filters for ethernet or wireless? I know it's a long way, it's nothing that I will learn in one day, but I'm looking for ideas from you guys in how to learn all this.

Thanks!

Last edited by guerlando; 08-07-2015 at 04:09 PM.
 
Old 08-10-2015, 06:55 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
  1. It's called a router!
  2. If you're so mistrusting of a camera you bought from China, I hardly can understand why you'd then buy several of them, hook them up all around your house, and then live in fear
  3. Physically separate the network you have the cameras on and use a router from one single access location to get data from the cameras to one system which can only access the Internet in a form you find acceptable and under your terms
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending Ethernet Frames using dev_queue_xmit Sekhar417 Linux - Kernel 2 05-29-2013 06:35 PM
How can you craft Ethernet frames ? KuimFieg Linux - Networking 2 01-15-2012 03:30 AM
Need help with injecting raw ethernet frames using TAP interface knonaka Programming 1 04-29-2010 02:31 AM
Ethernet driver - kernel crashes after passing a few Ethernet frames to upper layers AustinMarton Linux - Kernel 0 03-12-2009 06:27 PM
ethernet to ethernet frames alaios Linux - Networking 0 08-28-2004 04:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration