Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| it:docs:guide-user:network:wifi:guestwifi:configuration [2019/03/16 10:49] – [IPv6] 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 (con script di shell di esempio) ====== | ====== Configura una WLAN ospite utilizzando principalmente la riga di comando (con script di shell di esempio) ====== | ||
| Line 24: | Line 22: | ||
| Il codice è stato creato/ | Il codice è stato creato/ | ||
| <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 57: | 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 108: | Line 105: | ||
| * Modifica ''/ | * Modifica ''/ | ||
| - | * Aggiungi [[https:// | + | * Aggiungi [[https:// |
| - | =====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 | + | |