Remote Access to many RPis. How !? - Raspberry Pi Q&A, Help & Troubleshooting

Hi everybody,
Let's say I have 20 RPis each located in different cities. I want to be able to monitor them, transfer files to/from them, control them, etc. remotely and securely from my office.
I searched for possible solutions in the past few days, and found the following solutions:
1. Port Forwarding
2. VPN
3. Using some 3rd party websites like RealVNC, Remote3.it, TeamViewer, etc.
As I've understood, the port forwarding is the least secure solution in this list. Also, 3rd party websites have limits on the number of Pis you can access in free versions. Besides, they are not open source, so you cannot design your desired monitoring system/interface based on them. Hence, the VPN seems a better solution all in all.
As for the VPN, I searched the net a lot, but in most of the relevant tutorials, the RPi is the server, and the PC is the client. There's no problem in being so, until you have only 1 RPi to remotely access to.
Now here are my questions:
1. If I want to remotely access to 20 RPis in different locations and monitor them from 1 PC, what configuration shall I use !? 20 VPN servers + 1 client !? How is this possible !? Or shall I change the configuration to 1 server + 20 clients !? If so, how shall I do that !?
2. Are there any other methods for remote access to RPis securely from the office!? (else than those 3 ones listed above)?
Thanks.

RealVNC works pretty good, im using it on a couple of my Pi's running Raspbian Jessie to monitor cameras.

I'd prefer port forwarding with password-login disabled and only use key-based login. Then config all the Pi's in your ssh config file to login via ssh [email protected], ssh [email protected] and so on.
If port forwarding is a problem I fancy the solution of using autossh to connect all your Pi's to a central server. You can then use this central server as a reverse SSH proxy to connect to each Pi using ports local to the central server. This works even if you have no access to port forwarding and even if the IPs to the Pi's are changed.
Well look here! There's an existing thread covering this
https://forum.xda-developers.com/showthread.php?t=2195040

What about Teamviewer on RPI?
pages.teamviewer.com/published/raspberrypi

Related

[Q] rom supporting proxy over wifi

now a day i m in hostle and new to android
in hostle i have to use proxy server over wifi
i have searched but could not find a better solution
if any one using it plzzzzzzzzzzzz help me
have used trans proxy for this there is a requirement for iptables/netfilter and rooted device i have rooted the g1 but i dont know how to use iptables/netfilter
suugest me any rom which gives wifi option in contex menu or support iptables/netfilter
why dont you use encrypted VPN instead?
gyugyujol said:
why dont you use encrypted VPN instead?
Click to expand...
Click to collapse
wht is that how to use it????
well..
it is in the Wireless settings section. i guess you should use L2 IPSec.
briefly: have to set up a VPN server/connection point at home or wherever, and you'll connect to that from anywhere given that there's an open outbound port to the internet where you are currently. than a connection will be built up creating a "tunnel" through which your packets will be transferred to the VPN host where itt could be routed and NAT-ed to the internet unrestricted.
adding IPSec or other methods of encryptions will make your connection secure.
i've never tried it on my phone but since its based on linux it must be the same way as at desktop system.
you should check documents and howtos on the internet and check for apps at Market if the androids builtin is not satisfying!
gyugyujol said:
well..
it is in the Wireless settings section. i guess you should use L2 IPSec.
briefly: have to set up a VPN server/connection point at home or wherever, and you'll connect to that from anywhere given that there's an open outbound port to the internet where you are currently. than a connection will be built up creating a "tunnel" through which your packets will be transferred to the VPN host where itt could be routed and NAT-ed to the internet unrestricted.
adding IPSec or other methods of encryptions will make your connection secure.
i've never tried it on my phone but since its based on linux it must be the same way as at desktop system.
you should check documents and howtos on the internet and check for apps at Market if the androids builtin is not satisfying!
Click to expand...
Click to collapse
i am unble to use that
i dont know how to set all these things
Use Froyo by Laszlo it supports proxy over wifi

VNC Server for Android

A good application for Android remote control from PC?
I've tried "Droid VNC Server (Beta) and "Remote Control Add-on"
both of them works but have a problem viewing the screen.. phone capture commands but can't see android desktop on my pc..
I rooted both applications with Superuser without success..
Any Help?
I'm on Nova HD Plus Rom
I tried lots of apps. But nothing works as good as teamviewer.
Install pc version and the android app.
Set unattended axx on your pc.
Whitelist your android ID.
This hs never failed me. Mouse keyboard dual monitor setup... It just works
Hmmmm read again lol and think you want it the other way around...
Sorry haven't tried that
Sent from my LG-P990 using Tapatalk
You can try our new VMLite VNC Server app:
https://play.google.com/store/apps/details?id=com.vmlite.vncserver&hl=en
so far, it works on many different models of android devices, rooting is not required.
huisinro said:
You can try our new VMLite VNC Server app:
https://play.google.com/store/apps/details?id=com.vmlite.vncserver&hl=en
so far, it works on many different models of android devices, rooting is not required.
Click to expand...
Click to collapse
Can it be ROM related ? on my phone the server can't use wifi connection, and sets the IP of the server on my 3G provider one which not very useful, and generally doesn't work for me.
I'd like to have my phone screen on my tablet or my computer
There might be a bug for our app to report the wifi ip address, we are fixing this. For the time being, you can do one of these:
(1) find the wifi ip address from settings, and you can connect to this ip address instead of the one reported by vmlite vnc server app
(2) use USB connection, from VMLite Android App Controller, click USB Connect button
(3) reverse connection, run tight vnc viewer in listening mode, then start vnc server in reverse mode, so the server will connect to the client
Striatum_bdr said:
Can it be ROM related ? on my phone the server can't use wifi connection, and sets the IP of the server on my 3G provider one which not very useful, and generally doesn't work for me.
I'd like to have my phone screen on my tablet or my computer
Click to expand...
Click to collapse
huisinro said:
There might be a bug for our app to report the wifi ip address, we are fixing this. For the time being, you can do one of these:
(1) find the wifi ip address from settings, and you can connect to this ip address instead of the one reported by vmlite vnc server app
(2) use USB connection, from VMLite Android App Controller, click USB Connect button
(3) reverse connection, run tight vnc viewer in listening mode, then start vnc server in reverse mode, so the server will connect to the client
Click to expand...
Click to collapse
First solution worked great thks !

Does anyone know of a WP 8/8.1 dyndns updater?

Here is my scenario:
I have several locations that expose resources to over the public network for the purpose of monitoring (cameras, networks, etc.).
I secure access using multiple layers. In addition to the standard user name and login, I also do a reverse DNS check on my firewall to make sure the traffic is coming from either another one of my locations or my mobile phone. To accomplish this on my phone, I would need a dynamic DNS update client for my phone.
I know I can accomplish this by visiting the website and forcing an update, but I would rather have it automated.
Thanks in advance for your help,
Mike
The protocol isn't very complicated, so you could whip up such an app pretty easily if there isn't already one in the store. On the other hand, it's not the kind of thing most people would find useful. Even leaving aside the fact that Dyn just killed their free accounts, it's usually aimed at servers (game servers, remote desktop/ssh servers, VPN servers, home web servers, etc.) and one doesn't generally run a server on their phone.

simulate internet connection on raspberry to chromecast

Dear community,
I have just setup a raspberry PI as a WIFI Router and connected the chromecast to the cretaed network. Unfortunately i had to realize that it will work
only with an active internet connection. I'm running a Plex server on the raspberry and my intention is to use the PI in combination with the Chromecast while traveling. Especially when there is no intenet available. Given the fact that the chromecast firmware is on the most current level a root is not going to work. I have found a very interesting article explaining the basics of the rCast mod and wondering whether it would be possible to simulate a working internet connection on the raspberry.
– CAST_SHELL AND NET_MGR MAKES HTTP REQUESTS TO GOOGLE SERVERS. I HAVE PATCHED THOSE BINARIES SO THEY MAKE REQUESTS TO THE LOCAL WEB SERVER INSTEAD.
– THE DEVICE MAKE A DNS LOOKUP SENT TO SERVER 8.8.8.8. I HAVE WORKED AROUND THAT BY CREATING AN ALIAS FOR 8.8.8.8 ON THE LOCAL HOST AND RUN A DNS SERVER.
– THE DEVICE WILL NOT FINISH BOOTING UNTIL IT HAS RECEIVED AN UPDATED TIME FROM POOL.NTP.ORG. THIS IS FIXED BY ADDING POOL.NTP.ORG AS 127.0.0.1 IN THE HOSTS FILE, AND LOCALLY RUNNING A SNTP SERVER.
THOSE WORKAROUNDS WILL LET THE DEVICE START UP NORMALLY EVEN WHEN NETWORK IS MISSING.
Does anyone have already experience in this kind of work or could help me to figure if this could work.
Many Thanks
HubbyHub

Question Use device name/hostname to access the phone when connected to it using hotspot

I have a Sony camera that can FTP photos to my phone while I am shooting. Works perfectly using the IP of the phone in the FTP client when connecting the camera to it using hotspot. AWESOME!
However, the IP of the phone changes every time I enable hotspot. As far as I have been able to find out this is by design. This is an issue, since I need to go into the menu of my camera and change the IP. Not so awesome. No keyboard on camera.
I had the brilliant idea of trying to use the DNS name of the phone instead of IP. Works fine when both devices are on the same wifi, eg at home, but when the phone is the hotspot I find that there is no DNS name for the phone.
Any tips? Is there something I have not thought of?
Noone has any experience with this, please?
Interesting workflow you've got here. I use WebDav via FX File Explorer on a static IP address (within my network) to have a single shortcut on my computers to jump right into the phone without a cable. I know this is different, but I'm just sharing because I know exactly what you're going for. Unfortunately, the WAN IP on a mobile device will always be different when it's enabled.
The only thing I can think of that would manage this would be a dynamic DNS client directly on your phone. I imagine this is possible through a paid service - I run dynamic DNS on my Synology NAS out of my house since I do not have a static WAN IP. Synology provides this for free once you buy their hardware. I believe Asus provides this as well for their routers. There's gotta be a solution for Android, I've just not looked into it and I've gotta run out shortly or I would. You've got me curious so I am going to read into this later. Hope this helps a bit, I will post back.
Edit: a quick google seems to boast a lot of options for this! It should absolutely solve your problem.
Woops. looks like my reply from my phone a few days ago never saved.
I really like that the photos are available on my phone for sharing instantly when I am shooting. There is a Sony app that can perform the same, but it does not do RAW, and it compresses the JPG down to 2 MB. By using FTP I have the option of getting the full size JPG as well as the RAW straight to my phone for editing or sharing instantly.
I am considering FTPing to my home server where I run a FTP server, but then I need to find a way to make the files available on my phone again. Using OneDrive syncing the FTP destination folder or similar should do the trick. However, it requires double the data since I am uploading the photo to the server and then downloading it to my phone using OneDrive.
Is there a "local" DNS app that I can run on my phone, eg one that announces to the local network created by the hotspot? I have used no-ip and dyndns. but that is for announcing a DNS name for my public IP.
I was hoping there was a %gateway% or other variable I could use to resolve to the phone in hotspot mode.

Categories

Resources