How to connect to Raspberry Shake remotely#

Have you installed the Raspberry Shake at home and would like to access it from your laptop on the road? From the office?

Have you installed the Raspberry Shake in the office or a second home and would like to access it from home?

We recommend using Zero Tier. With ZeroTier, you establish an account where you control access to the configured devices. Then you install the module in your PC or Mac or Linux machine and in the Raspberry Pi(s) and enter the access pw (generated in your master account). It will generate a stable local ip address(es) that give you full remote access to the devices. There are no timeouts, no jumping through hoops for access and access is totally controlled by your local master account.

Here is a nice Tutorial.

We have also heard that “Weaved” works well.

Power users can also use vtun. See below for details

vtun#

  1. Install vtun tunneling software server-side:

    $ apt install vtun
    
  2. Configure it. E.g.,

    $ nano /etc/vtun.conf
    

Example configuration:

options {
    port 1234;
    timeout 60;
    ip /sbin/ip;
    syslog daemon;
}

tunel1 {
    password tunel1;
    type ether;
    proto tcp;
    device tap1;
    persist keep;
    keepalive yes;
    encrypt yes;
    compress no;
    up {
       ip "li set %% up";
      ip "addr add 10.18.197.5/30 dev %%";
       };
    down {
       ip "li set %% down";
       };

This will create a single tunnel. The IPs and configuration should be tailored to your network and needs.

  1. Now on the Raspberry Shake, edit vtund.conf

    $ nano /etc/vtund.conf
    

Example configuration:

options {
  port 1234;
  timeout 60;
  ip /sbin/ip;
}

tunel1 {
    password tunel1;
    type ether;
    proto tcp;
    device tap1;
    keepalive yes;
    persist keep;
    encrypt yes;
    compress no;
    up {
       ip "li set %% up";
      ip "addr add 10.18.197.6/30 dev %%";
       };
    down {
       ip "li set %% down";
       };
}
  1. Enable vtun so that it comes up at boot:

    $ nano /etc/default/vtun
    

Example configuration:

CLIENT0_NAME=tunel1

CLIENT0_HOST=ipvtunserver o dns (aquí deben colocar el ip público del servidor de vtun o el nombre dns)
  1. Restart the Raspberry Shake

  2. Confirm that the tunel is up server-side:

    $ ps axx | grep vtun
    

or

$ ifconfig | grep tap1