Arduino Yun external network connection security.

Hi, I'm trying to have an Arduino Yun streaming video so that I can watch how my home is when I´m not around. I'm using mjpg-streamer and so far so good. The stream is fine inside the local network and after some trouble I managed to port forward it outside and it still is 'watchable' when accessed externally.

My problem now is that I'm worried that anyone can watch it too... I would like to know if there is a way to password protect anyone that tries to connect through that specific port? If not, I would much appreciate sugestions on how to password protect this project.

Thanks, Hugo.

Good question. I think a password it not enough, you have to protect the stream itself. For example with https. But I can't find how to use mjpeg-streamer with https. Here is a project for encrypted webcam : https://github.com/ipartola/hawkeye Could that be useful for the Yun ? I don't know.

Did you know that you can use a usb-hub and connect a few webcams and start mjpeg-streamer a few times (for every webcam).

I can't find how to use hawkeye in a Yun, but thanks for the reply! :)

Can I just use a .html asking for a username and password and redirect to a .php to check those credentials and allow or deny access? I installed php5-cli and php5-cgi on the Yun and when I try to open de .php file on the browser (chrome) e get the error "MIME-TYPE not known", do I need to instal or config something else?

Would this be secure enough?

Sorry, I don't know :-[

Problem solved: http://forum.arduino.cc/index.php?topic=221261.msg2229949#msg2229949

Hasr: Hi, I'm trying to have an Arduino Yun streaming video so that I can watch how my home is when I´m not around. I'm using mjpg-streamer and so far so good. The stream is fine inside the local network and after some trouble I managed to port forward it outside and it still is 'watchable' when accessed externally.

My problem now is that I'm worried that anyone can watch it too... I would like to know if there is a way to password protect anyone that tries to connect through that specific port? If not, I would much appreciate sugestions on how to password protect this project.

Thanks, Hugo.

hello,Hasr, I am now trying to streaming video with my Yun on external network, but I didn't find any tutorials, all I have found is about Localhost video streaming, could you please help me,thanks~~

Hello, li1991119.

You need to set up port forward on your router, so that you can access the stream externally. The process differs from router to router but it should be simple enought. Your are basicly telling your router, that if someone is accessing using port 8080, that person wants to access the stream, that can be using the same port.