Make the Dashboard Pi-star accessible also from the Internet



 


Rendere raggiungibile la Dashboard anche dalla rete Internet è una scelta personale, molto utile ma possibile preda di attacchi Hacker. Io consiglio di fare sempre un backup totale della SD del vostro Jumbospot MMDVM Hotspot. Iniziamo: La porta di default del Pi-Star è 80, adesso noi la cambiamo in 8080 (per inserire altre porte è più difficile).

1) Io consiglio di cambiare la password del Pi-Star (Default:raspberry) in altra password alfanumerica;
2) Collegati in SSH al tuo Hotspot e rendi il sistema in lettura e scrittura digitando: rpi-rw
3) Digita:  cat /etc/nginx/sites-available/pi-star


server {
        listen 8080 default_server;
        root /var/www/dashboard;

        location ^~ /admin {
                try_files $uri $uri/ =404;
                auth_basic "Restricted";
                auth_basic_user_file /var/www/.htpasswd;
                client_max_body_size 512K;

        # Load the defaults
        include             /etc/nginx/default.d/php.conf;
        }

        location ~ /\.git {
                deny all;
        }

        # Load the defaults
        include             /etc/nginx/default.d/*.conf;


4) salva e chiudi
5) Sul tuo router crea una regola con il tuo indirizzo Ip del Pi-Star e apri ad esso la porta 8080. Nel mio caso 192.168.0.104:8080
6) Ogni volta che devi collegare in locale il tuo Hotspot dovrai aggiungere all'indirizzo Ip " :8080". Puoi accedere alla Dashboard dall'esterno con un IP statico :8080 e, se qualcuno volesse accedere alle funzioni di amministratore, avrà bisogno della password.

7) (rendere il sistema di sola lettura)
rpi-ro

 

Making the Dashboard reachable even from the Internet is a personal choice, very useful but possible prey to Hacker attacks. I recommend that you always make a full backup of your Jumbospot MMDVM Hotspot's SD. Let's start: The default port of the Pi-Star is 80, now we change it to 8080 (to insert other ports is more difficult). 

1) I recommend changing the Pi-Star password (Default: raspberry) to another alphanumeric password; 

2) Connect in SSH to your Hotspot and make the system read and write by typing: rpi-rw 

3) Type: cat / etc / nginx / sites-available / pi-star server

 server {
        listen 8080 default_server;
        root /var/www/dashboard;

        location ^~ /admin {
                try_files $uri $uri/ =404;
                auth_basic "Restricted";
                auth_basic_user_file /var/www/.htpasswd;
                client_max_body_size 512K;

        # Load the defaults
        include             /etc/nginx/default.d/php.conf;
        }

        location ~ /\.git {
                deny all;
        }

        # Load the defaults
        include             /etc/nginx/default.d/*.conf;
}

 4) save and close 

5) On your router create a rule with your Pi-Star IP address and open port 8080 to it. In my case 192.168.0.104:8080 

6) Whenever you need to connect your Hotspot locally you will need to add to the IP address ": 8080". You can access the dashboard from the outside with a static IP: 8080 and, if someone wants to access the administrator functions, they will need the password

7) (make the system read-only) : rpi-ro

Comments