Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
it:docs:guide-user:network:wifi:guestwifi:configuration [2019/03/16 11:30] lucenerait:docs:guide-user:network:wifi:guestwifi:configuration [2020/04/18 16:31] (current) – [Passo dopo passo] lucenera
Line 22: Line 22:
 Il codice è stato creato/testato con successo con OpenWRT 18.06.xx Il codice è stato creato/testato con successo con OpenWRT 18.06.xx
 <code bash> <code bash>
-NET_IF="wlan0-1" 
 NET_ID="guest" NET_ID="guest"
 FW_ZONE="guest" FW_ZONE="guest"
 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 55: 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 firewall.${FW_ZONE}_dns.proto=tcp 
 +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
  • Last modified: 2020/04/18 16:31
  • by lucenera