7
GATEWAY
REFERENCE GUIDE
R1C
7 of 25
Basic Examples
In this section we provide two example Wi-Fi network configurations.
Open Wi-Fi
We start by configuring an open Wi-Fi network with the SSID "ex-open".
Enter configuration mode
vyatta@vyatta:~$
configure
[edit]
Create a Gateway instance
vyatta@vyatta#
edit service anyfi gateway "open-gw"
[edit service anyfi gateway open-gw]
vyatta@vyatta#
set controller
x.x.x.x
[edit service anyfi gateway open-gw]
vyatta@vyatta#
set bridge br0
[edit service anyfi gateway open-gw]
vyatta@vyatta#
set ssid "Open Wi-Fi"
[edit service anyfi gateway open-gw]
vyatta@vyatta#
top
[edit]
Review changes
vyatta@vyatta#
show service anyfi gateway
+gateway open-gw {
+ bridge br0
+ controller x.x.x.x
+ ssid "Open Wi-Fi"
+}
[edit]
Commit, save and exit
configuration mode
vyatta@vyatta#
commit
vyatta@vyatta#
save
vyatta@vyatta#
exit
The newly created
service
should now be registered with the
Controller
. For more
information on how to distribute the
service
to
clients
refer to the Reference Guide for the
Controller
.
WARNING
Bridging unauthenticated Wi-Fi traffic to a network interface may
pose a security threat to the associated network.
Secure Wi-Fi
We now configure a WPA2 protected Wi-Fi network with EAP authentication.
Enter configuration mode
vyatta@vyatta:~$
configure
[edit]