Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| it:docs:guide-user:network:wifi:guestwifi:configuration [2019/03/16 08:21] – created lucenera | it:docs:guide-user:network:wifi:guestwifi:configuration [2020/04/18 16:31] (current) – [Passo dopo passo] lucenera | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | FIXME **This page is not fully translated, yet. Please help completing the translation.**\\ //(remove this paragraph once the translation is finished)// | + | ====== Configura una WLAN ospite utilizzando principalmente la riga di comando |
| - | ======Configura | + | Questa pagina fornisce uno script che crea una rete ospite |
| - | This page provides a script that creates an additional separated guest network and a new guest firewall zone for your OpenWrt | + | |
| - | Questa pagina fornisce uno script | + | Lo script |
| - | Lo script non necessita di alcuna personalizzazione manuale per il tuo dispositivo (!), dato che ha solo un riferimento hard-coded (non modificabile) ovviamente alla zona “fwd.dest=wan” (che sicuramente già esiste di default sul tuo router con OpenWRT). | + | Lo script non effettua l’ultimo (semplice) passaggio che permette di creare la configurazione del dispositivo radio per il WiFi (dato che è un semplice passaggio e inoltre richiede alcuni parametri personalizzati che sono più adatti ad una configurazione manuale nella web GUI che ad uno script. Quel passaggio manuale |
| - | + | ||
| - | Lo script non effettua l’ultimo (semplice) passaggio che permette di creare la configurazione del dispositivo radio per il WiFi (dato che è un semplice passaggio e inoltre richiede alcuni parametri personalizzati che sono meglio forniti attraverso | + | |
| =====Passo dopo passo===== | =====Passo dopo passo===== | ||
| - | - Prenditi il tuo tempo per leggere questa intera pagina prima di cominciare qualunque configurazione. Cerca di farti almeno un’idea grezza di quello che il codice riportato sotto sta configurando. | + | |
| - | - Copia l’intero blocco di codice seguente ( da “// | + | - Copia l’intero blocco di codice seguente ( da “// |
| - | - Appena fatto, apri la Web GUI del tuo router | + | - Appena fatto, apri la Web GUI del tuo router |
| - | - sulla scheda di setup “General Setup” inserisci un **ESSID** ragionevole per il tuo WiFi ospite | + | - sulla scheda di configurazione |
| - | - poi (per favore presta particolare attenzione) | + | - poi (per favore presta particolare attenzione) |
| - | + | - sulla scheda | |
| - | - on the Wireless Security | + | - preferibilmente usa la **cifratura** "CCMP AES" |
| - | - preferably use **cipher** "CCMP AES" | + | - ora inserisci una buona password per la tua rete ospite nel campo **Key** |
| - | - finally enter some good secret for your guest network in the **Key** | + | - e infine vai a "Save & Aplly" (potrebbero volerci |
| - | - and you are good to go to "Save & Apply". (It could take 1-2 minutes for your WiFi to restart on slow devices) | + | |
| - | Note: Create the WiFi network as additional config on either your 2,4 or 5 GHz radio. You can even create | + | Nota: Crea la rete WiFi come configurazione aggiuntiva sulla frequenza |
| - | The code has been created/successfully tested with OpenWrt 17.01.xx | + | Il codice è stato creato/testato con successo con OpenWRT 18.06.xx |
| <code bash> | <code bash> | ||
| - | NET_IF=" | ||
| NET_ID=" | NET_ID=" | ||
| FW_ZONE=" | FW_ZONE=" | ||
| uci batch << EOF | uci batch << EOF | ||
| set network.${NET_ID}=interface | set network.${NET_ID}=interface | ||
| - | set network.${NET_ID}.ifname=${NET_IF} | ||
| set network.${NET_ID}.proto=static | set network.${NET_ID}.proto=static | ||
| set network.${NET_ID}.ipaddr=192.168.3.1 | set network.${NET_ID}.ipaddr=192.168.3.1 | ||
| Line 59: | Line 53: | ||
| set firewall.${FW_ZONE}_dns.src=${FW_ZONE} | set firewall.${FW_ZONE}_dns.src=${FW_ZONE} | ||
| set firewall.${FW_ZONE}_dns.target=ACCEPT | set firewall.${FW_ZONE}_dns.target=ACCEPT | ||
| - | set firewall.${FW_ZONE}_dns.proto=tcpudp | + | add_list |
| + | add_list firewall.${FW_ZONE}_dns.proto=udp | ||
| set firewall.${FW_ZONE}_dns.dest_port=53 | set firewall.${FW_ZONE}_dns.dest_port=53 | ||
| EOF | EOF | ||
| Line 70: | Line 65: | ||
| </ | </ | ||
| - | =====Explanation of this config code===== | + | =====Spiegazione di questo codice di configurazione===== |
| - | * a guest network called | + | * è stata creata una reste ospite chiamata |
| - | * a dhcp configuration is created for the " | + | * è stata creata una configurazione DHCP per la rete " |
| - | * a firewall zone called | + | * è stata creata una firewall zone chiamata |
| - | * a firewall zone forwarder | + | * è stata creata un firewall zone forwarder |
| - | * a firewall rule allowing your guests to access your OpenWrt | + | * è stata creata una firewall rule per permettere ai tuoi ospiti di accedere al servizio |
| - | * a firewall rule allowing your guests to access your OpenWrt | + | * è stato creata una firewall rule che permette ai tuoi ospiti di accedere al servizio |
| - | (all of the customizations will be visible | + | (tutte le personalizzazioni saranno visibili |
| - | user Saturn: | + | utente |
| - | Forward | + | la forward |
| - | original line: "// | + | linea originale: "// |
| - | changed line: "// | + | linea modificata: "// |
| - | =====Customization===== | + | =====Personalizzazioni===== |
| - | There are endless of personal customization options. | + | Ci sono infinite opzioni di personalizzazione. |
| - | * Be aware that there are no special | + | * Sta' attento che non c'è nessuna speciale restrizione attiva come Internet firewall in questa configurazione di default |
| - | * Also you may have to find individual rules/network setups for your personal situations, e.g. if your guests would like access to your printer or need to stream stuff from their smartphones to your Smart-TV. | + | * Puoi anche dover trovare delle regole individuali/configurazioni di rete per le tue personali esigenze, per esempio se i tuoi ospiti vorranno accedere alla tua stampante o avessero bisogno di trasmewttere alcune cose dai loro smartphone alla tua Smart-TV. |
| - | * You could go even further and split of a LAN-jack using a custom | + | * Potresti andare ancora più lontano e dividere una presa LAN usando una configurazione |
| - | * If you have a cable modem web interface at http:// | + | * Se hai un' |
| config rule | config rule | ||
| Line 102: | Line 97: | ||
| =====IPv6===== | =====IPv6===== | ||
| - | To enable | + | Per abilitare |
| - | * Edit ''/ | + | * Modifica |
| option dhcpv6 ' | option dhcpv6 ' | ||
| option ra ' | option ra ' | ||
| - | * Edit ''/ | + | * Modifica |
| - | * Add [[https:// | + | * Aggiungi |
| - | =====Manual | + | =====Rollback |
| - | If you ever want to get rid of the customization created by this script, | + | Se desideri eliminare la personalizzazione creata da questo |
| - | * Delete the network interface | + | * Cancella l' |
| - | * Delete the firewall zone " | + | * Cancella la firewall zone " |
| - | * (All firewall rules will be deleted automatically, | + | * (Tutte le firewall |
| - | * Then click "Save & Apply" | + | * Infine clicca |
| - | =====On demand usage===== | + | =====Uso su richiesta===== |
| - | You may not have guests hanging out in your house all week long.\\ | + | Potresti non avere ospiti |
| - | You do not have to delete the whole config, when your guests are leaving. | + | Non devi cancellare l' |
| - | You can just enter the OpenWrt | + | |