Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revisionLast revisionBoth sides next revision | ||
| it:docs:guide-user:network:wifi:guestwifi:configuration [2019/03/16 11:27] – [On demand usage] lucenera | it:docs:guide-user:network:wifi:guestwifi:configuration [2020/04/17 20:25] – [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 48: | Line 44: | ||
| set firewall.${FW_ZONE}_fwd.dest=wan | set firewall.${FW_ZONE}_fwd.dest=wan | ||
| set firewall.${FW_ZONE}_dhcp=rule | set firewall.${FW_ZONE}_dhcp=rule | ||
| - | set firewall.${FW_ZONE}_dhcp.name=${FW_ZONE}_DHCP | + | set firewall.${FW_ZONE}_dhcp.name=${FW_ZONE}_DHCP_67 |
| + | set firewall.${FW_ZONE}_dhcp.src=${FW_ZONE} | ||
| + | set firewall.${FW_ZONE}_dhcp.target=ACCEPT | ||
| + | set firewall.${FW_ZONE}_dhcp.proto=udp | ||
| + | set firewall.${FW_ZONE}_dhcp.dest_port=67 | ||
| + | set firewall.${FW_ZONE}_dhcp.name=${FW_ZONE}_DHCP_68 | ||
| set firewall.${FW_ZONE}_dhcp.src=${FW_ZONE} | set firewall.${FW_ZONE}_dhcp.src=${FW_ZONE} | ||
| set firewall.${FW_ZONE}_dhcp.target=ACCEPT | set firewall.${FW_ZONE}_dhcp.target=ACCEPT | ||
| set firewall.${FW_ZONE}_dhcp.proto=udp | set firewall.${FW_ZONE}_dhcp.proto=udp | ||
| - | set firewall.${FW_ZONE}_dhcp.dest_port=67-68 | + | set firewall.${FW_ZONE}_dhcp.dest_port=68 |
| set firewall.${FW_ZONE}_dns=rule | set firewall.${FW_ZONE}_dns=rule | ||
| set firewall.${FW_ZONE}_dns.name=${FW_ZONE}_DNS | set firewall.${FW_ZONE}_dns.name=${FW_ZONE}_DNS | ||
| 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 119: | Line 121: | ||
| =====Uso su richiesta===== | =====Uso su richiesta===== | ||
| Potresti non avere ospiti in giro per casa tutta la settimana.\\ | Potresti non avere ospiti in giro per casa tutta la settimana.\\ | ||
| - | Non devi cancellare l' | + | Non devi cancellare l' |