/[pkg-wpa]/wpasupplicant/trunk/debian/README.Debian
ViewVC logotype

Contents of /wpasupplicant/trunk/debian/README.Debian

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1349 - (hide annotations) (download)
Fri Mar 27 17:48:42 2009 UTC (4 years, 1 month ago) by kelmo-guest
File size: 22191 byte(s)
* Remove debian/patches/03_dbus_service_activation_logfile.patch,
  wpa_supplicant can now log to syslog instead.
* Update copyright info in debian/ifupdown/*.
* When starting wpa_supplicant via ifupdown hook script, do not log to
  file by default now that we have syslog support.
* Update README.Debian for nl80211 driver and change in logging behaviour.
1 kelmo-guest 814 Modes of Operation in wpasupplicant for Debian
2     ==============================================
3    
4     The Debian wpasupplicant package provides two (2) convenient modes of operation
5     that are closely integrated to the core networking infrastructure; ifupdown.
6    
7     Table of Contents
8     =================
9    
10     1. Specifying the wpa_supplicant driver backend
11 kelmo-guest 929 - Table of supported drivers
12 kelmo-guest 1170 - Choosing driver backend
13 kelmo-guest 814
14     2. Mode #1: Managed Mode
15 kelmo-guest 929 - Examples
16     - Table of Common Options
17     - Important Notes About Managed Mode
18     - How It Works
19 kelmo-guest 814
20     3. Mode #2: Roaming Mode
21 kelmo-guest 929 - wpa_supplicant.conf
22     - /etc/network/interfaces
23 kelmo-guest 942 - Interacting with wpa_supplicant with wpa_cli and wpa_gui
24 kelmo-guest 929 - Controlling the Roaming Daemon with wpa_action
25     - Fine Tuning the Roaming Setup
26     - The Logfile
27     - Using External Mapping Scripts (e.g. guessnet)
28     - /etc/network/interfaces with external mapping
29 kelmo-guest 814
30     4. Troubleshooting
31 kelmo-guest 929 - Hidden ssids
32 kelmo-guest 814
33     5. Security Considerations
34 kelmo-guest 929 - Configuration File Permissions
35 kelmo-guest 814
36    
37     1. Specifying the wpa_supplicant driver backend
38     ===============================================
39    
40     The wext driver backend will be used for all interfaces that do not explicitly
41     set 'wpa-driver' to the driver type required for that device. Users of linux
42     2.4 kernels, or 2.6 kernels less than 2.6.14 will be required to specify a
43     wpa-driver type.
44    
45     Table of supported drivers
46     ==========================
47    
48     A summary of supported drivers follows:
49    
50 kelmo-guest 929 Driver Description
51     ====== ===========
52     atmel ATMEL AT76C5XXx (USB, PCMCIA)
53 kelmo-guest 1349 nl80211 Linux 802.11 netlink interface
54 kelmo-guest 929 wext Linux wireless extensions (generic)
55     wired wired Ethernet driver
56 kelmo-guest 814
57 kelmo-guest 1170 Choosing driver backend
58     =======================
59 kelmo-guest 814
60     Set the driver type in the interfaces(5) stanza for your device with the
61     'wpa-driver' option. For example:
62    
63     iface eth0 inet dhcp
64 kelmo-guest 1170 wpa-driver wext
65 kelmo-guest 929 . . . . . more options
66 kelmo-guest 814
67 kelmo-guest 986 If no wpa-driver configuration is supplied, the wext backend is used.
68 kelmo-guest 814
69     2. Mode #1: Managed Mode
70 kelmo-guest 1170 ========================
71 kelmo-guest 814
72     This mode provides the ability to establish a connection via wpa_supplicant to
73     one known network. It is similar to how the wireless-tools package works. Each
74     element required to establish the connection via wpa_supplicant is prefixed
75     with 'wpa-' and followed by the value that will be used for that element.
76    
77     Examples
78     ========
79    
80     NOTE: the 'wpa-psk' value is only valid if:
81 kelmo-guest 929 1) It is a plaintext (ascii) string between 8 and 63 characters in
82     length
83     2) It is a hexadecimal string of 64 characters
84 kelmo-guest 814
85     # Connect to access point of ssid 'NETBEER' with an encryption type of
86     # WPA-PSK/WPA2-PSK. It assumes the driver will use the 'wext' driver backend
87     # of wpa_supplicant because no wpa-driver option has been specified.
88     # The passphrase is given as a ASCII (plaintext) string. DHCP is used to
89     # obtain a network address.
90     #
91     iface wlan0 inet dhcp
92 kelmo-guest 986 wpa-ssid MyNetWork
93 kelmo-guest 929 # plaintext passphrase
94 kelmo-guest 986 wpa-psk plaintextsecret
95 kelmo-guest 814
96     # Connect to access point of ssid 'homezone' with an encryption type of
97     # WPA-PSK/WPA2-PSK, using the 'wext' driver backend of wpa_supplicant.
98     # The psk is given as an encoded hexadecimal string. DHCP is used to obtain
99     # a network address.
100     #
101     iface wlan0 inet dhcp
102 kelmo-guest 929 wpa-driver wext
103     wpa-ssid homezone
104     # hexadecimal psk is encoded from a plaintext passphrase
105     wpa-psk 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f
106 kelmo-guest 814
107     # Connect to access point of ssid 'HotSpot1' and bssid of '00:1a:2b:3c:4d:5e'
108     # with an encryption type of WPA-PSK/WPA2-PSK, using the the 'madwifi' driver
109     # backend of wpa_supplicant. The passphrase is given as a plaintext string.
110     # A static network address assignment is used.
111     #
112     iface ath0 inet static
113 kelmo-guest 1170 wpa-driver wext
114 kelmo-guest 929 wpa-ssid HotSpot1
115     wpa-bssid 00:1a:2b:3c:4d:5e
116     # plaintext passphrase
117     wpa-psk madhotspot
118 kelmo-guest 814 wpa-key-mgmt WPA-PSK
119     wpa-pairwise TKIP CCMP
120     wpa-group TKIP CCMP
121     wpa-proto WPA RSN
122 kelmo-guest 929 # static ip settings
123 kelmo-guest 814 address 192.168.0.100
124     netmask 255.255.255.0
125     network 192.168.0.0
126     broadcast 192.168.0.255
127     gateway 192.168.0.1
128    
129     # User supplied wpa_supplicant.conf is used for eth1. All network information
130     # is contained within the user supplied wpa_supplicant.conf. No wpa-driver type
131     # is specified, so wext is used. DHCP is used to obtain a network address.
132     #
133     iface eth1 inet dhcp
134 kelmo-guest 929 wpa-conf /path/to/wpa_supplicant.conf
135 kelmo-guest 814
136     Table of Common Options
137     =======================
138    
139     A brief summary of common 'wpa-' options that may be used in the
140     /etc/network/interfaces stanza for a wireless device. See the
141     'Important Notes About Managed Mode' section for information about
142     valid and invalid 'wpa-' values.
143    
144     NOTE: ALL values are CASE SeNsItVe
145    
146 kelmo-guest 929 Element Example Value Description
147     ======= ============= ===========
148     wpa-ssid plaintextstring sets the ssid of your network
149 kelmo-guest 814
150 kelmo-guest 929 wpa-bssid 00:1a:2b:3c:4d:5e the bssid of your AP
151    
152     wpa-psk 0123456789...... your preshared wpa key. Use
153     wpa_passphrase(8) to generate your psk
154     from a passphrase and ssid pair
155    
156     wpa-key-mgmt NONE, WPA-PSK, WPA-EAP, list of accepted authenticated key
157     IEEE8021X management protocols
158    
159     wpa-group CCMP, TKIP, WEP104, list of accepted group ciphers for WPA
160     WEP40
161    
162     wpa-pairwise CCMP, TKIP, NONE list of accepted pairwise ciphers for
163     WPA
164    
165     wpa-auth-alg OPEN, SHARED, LEAP list of allowed IEEE 802.11
166     authentication algorithms
167    
168     wpa-proto WPA, RSN list of accepted protocols
169    
170     wpa-identity myplaintextname administrator provided username
171     (EAP authentication)
172    
173     wpa-password myplaintextpassword your password (EAP authentication)
174    
175     wpa-scan-ssid 0 or 1 toggles scanning of ssid with specific
176     Probe Request frames
177    
178     wpa-ap-scan 0 or 1 or 2 adjusts the scanning logic of
179     wpa_supplicant
180    
181 kelmo-guest 814 The complete functionality of wpa_cli(8) should be implemented. Anything
182     missing is considered a bug and should be reported as such. Patches are always
183     welcome.
184    
185     Important Notes About Managed Mode
186     ==================================
187    
188     Almost all 'wpa-' options require there is at least a ssid specified. Only a
189     handful of options have a global effect. These are: 'wpa-ap-scan' and
190     'wpa-preauthenticate'.
191    
192     Any 'wpa-' option given for a device in the interfaces(5) file is sufficient to
193     trigger the wpa_supplicant daemon into action.
194    
195     The wpasupplicant ifupdown script makes assumptions about the 'type' of input
196     that is valid for each option. For example, it assumes that some input is
197     plaintext and wraps quotation marks around the input before passing it on
198     to wpa_cli, which then adds the input to the network block being formed via
199     the wpa_supplicant ctrl_interface socket. Running ifup manually with the
200     '--verbose' option will reveal all of the commands used to form the network
201     block via wpa_cli. If the value you used for any wpa-* option in
202     /etc/network/interfaces is surrounded by double quotes, than it has been
203     assumed to be of "plaintext" or "ascii" type input.
204    
205     Some input is assumed to be a hexadecimal string (eg. wpa-wep-key*). The value
206     'type' of the wpa-psk option however, is determined via a simple check for more
207     than one non hexadecimal character.
208    
209    
210     How It Works
211     ============
212    
213     As mentioned earlier, each wpa_supplicant specific element is prefixed with
214     'wpa-'. Each element correlates to a property of wpa_supplicant described in
215     the wpa_supplicant.conf(5), wpa_supplicant(8) and wpa_cli(8) manpages. The
216     supplicant is launched without any pre-configuration whatsoever, and wpa_cli
217     forms a network configuration from the input provided by the 'wpa-*' lines.
218     Initially, wpa_supplicant/wpa_cli does not directly set the properties of the
219     device (like setting an essid with iwconfig, for example), rather it informs
220     the device of what access point is suitable to associate with. Once the device
221     has scanned the area, and found that the suitable access point is available for
222     use, these properties are set.
223    
224 kelmo-guest 929 The scripts that do all the work are located at:
225 kelmo-guest 930
226 kelmo-guest 929 /etc/wpa_supplicant/ifupdown.sh
227 kelmo-guest 930 /etc/wpa_supplicant/functions.sh
228 kelmo-guest 814
229 kelmo-guest 929 ifupdown.sh is executed by run-parts, which in turn is invoked by ifupdown
230     during the 'pre-up', 'pre-down' and 'post-down' phases.
231 kelmo-guest 814
232     In the 'pre-up' phase, a wpa_supplicant daemon is launched followed by a series
233     of wpa_cli commands that set up a network configuration according to what
234     'wpa-' options were used in /etc/network/interfaces for the physical device.
235    
236 kelmo-guest 929 If wpa-roam is used, a wpa_cli daemon is launched in the 'post-up' phase.
237 kelmo-guest 814
238 kelmo-guest 929 In the 'pre-down' phase, the wpa_cli daemon is terminated.
239 kelmo-guest 814
240 kelmo-guest 929 In the 'post-down' phase, the wpa_supplicant daemon is terminated.
241 kelmo-guest 814
242    
243     3. Mode #2: Roaming Mode
244     ========================
245    
246     A self contained, simplistic roaming mechanism is provided by this package. It
247     is in the form of a wpa_cli action script, /sbin/wpa_action, and it assumes
248     control of ifupdown once activated. The wpa_action(8) manpage describes its
249     technical details in great depth.
250    
251     To activate a roaming interface, adapt the following example interfaces(5)
252     stanza:
253    
254     iface eth1 inet manual
255 kelmo-guest 929 wpa-driver wext
256 kelmo-guest 941 wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
257 kelmo-guest 814
258     Two daemons are spawned from the above example; wpa_supplicant and wpa_cli. It
259 kelmo-guest 1197 is required to provide a wpa_supplicant.conf containing a minimal amount of
260 kelmo-guest 941 global options, and any known network blocks that should be connected to
261     without interaction. A good starting point is provided by an example
262     configuration file:
263 kelmo-guest 814
264 kelmo-guest 941 # copy the template to /etc/wpa_supplicant/
265 kelmo-guest 934 cp /usr/share/doc/wpasupplicant/examples/wpa-roam.conf \
266 kelmo-guest 929 /etc/wpa_supplicant/wpa_supplicant.conf
267 kelmo-guest 986 # allow only root to read and write to file
268     chmod 0600 /etc/wpa_supplicant/wpa_supplicant.conf
269 kelmo-guest 814
270     NOTE: it is critical that the used wpa_supplicant.conf defines the location of
271     the 'ctrl_interface' so that a communication socket is created for the
272 kelmo-guest 941 wpa_cli (wpa-roam daemon) to attach. The mentioned example configuration,
273     /usr/share/doc/wpasupplicant/examples/wpa-roam.conf, has been set to a
274 kelmo-guest 934 sane default.
275 kelmo-guest 814
276     It is required to edit this configuration file, and add the network blocks for
277     all known networks. If you do not understand what this means, start reading the
278     wpa_supplicant.conf(5) manpage now.
279    
280     For each network, you may specify a special option 'id_str'. It should be set to
281     a simple text string. This text string forms the basis for network profiling; it
282     correlates to a logical interface defined in the interfaces(5) file. When no
283     'id_str' is given for a network, wpa_action assumes it will use the 'default'
284     logical interface as fallback. The fallback interface can be chosen via the
285 kelmo-guest 870 'wpa-roam-default-iface' option.
286 kelmo-guest 814
287     So what does all this mean? Lets illustrate it with a small example taken from
288     the wpa_action(8) manpage.
289    
290     wpa_supplicant.conf
291     ===================
292     network={
293 kelmo-guest 929 ssid="foo"
294 kelmo-guest 941 key_mgmt=NONE
295 kelmo-guest 929 # this id_str will notify /sbin/wpa_action to 'ifup uni'
296     id_str="uni"
297 kelmo-guest 814 }
298    
299     network={
300 kelmo-guest 929 ssid="bar"
301 kelmo-guest 941 psk=123456789...
302 kelmo-guest 929 # this id_str will notify /sbin/wpa_action to 'ifup home_static'
303     id_str="home_static"
304 kelmo-guest 814 }
305    
306     network={
307 kelmo-guest 929 ssid=""
308     key_mgmt=NONE
309 kelmo-guest 941 # no 'id_str' parameter is given, /sbin/wpa_action will 'ifup default'
310 kelmo-guest 814 }
311    
312     /etc/network/interfaces
313     =======================
314     # the roaming interface MUST use the manual inet method
315     # 'allow-hotplug' or 'auto' ensures the daemon starts automatically
316     allow-hotplug eth1
317     iface eth1 inet manual
318 kelmo-guest 929 wpa-driver wext
319     wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
320 kelmo-guest 814
321     # no id_str, 'default' is used as the fallback mapping target
322     iface default inet dhcp
323    
324     # id_str="uni"
325     iface uni inet dhcp
326    
327     # id_str="home_static"
328     iface home_static inet static
329     address 192.168.0.20
330     netmask 255.255.255.0
331     network 192.168.0.0
332     broadcast 192.168.0.255
333     gateway 192.168.0.1
334    
335     A logical interface is brought up via ifup, and taken down via ifdown, as
336     wpa_supplicant associates and de-associates with the network associated
337     to it by the 'id_str' option used in the wpa_supplicant.conf configuration file.
338    
339 kelmo-guest 978 A log of /sbin/wpa_action's actions is created at
340     /var/log/wpa_action.$IFACE.log, please attach the log when reporting problems.
341 kelmo-guest 814
342 kelmo-guest 942 Interacting with wpa_supplicant with wpa_cli and wpa_gui
343     ========================================================
344    
345     The wpa_supplicant process can be interacted with by members of the "netdev"
346     group if the example roaming configuration was used as is (or by whatever
347     group or gid specified by the GROUP= crtl_interface parameter).
348    
349     # the default ctrl_interface option used in the example file
350     # /usr/share/doc/wpasupplicant/examples/wpa-roam.conf
351     ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
352    
353     To interact with the supplicant, the wpa_cli (command line) and wpa_gui (QT)
354     have been provided. With these you may connect, disconnect, add/delete new
355     network blocks, provide required interactive security information and so on.
356    
357 kelmo-guest 814 Controlling the Roaming Daemon with wpa_action
358     ==============================================
359    
360     Once the roaming daemon is started, it assumes control of ifupdown. That is;
361     wpa_cli calls ifup when wpa_supplicant has successfully associated with an
362     access point, and calls ifdown when the connection is lost or terminated.
363     While the roaming daemon is active, ifupdown should not be controlled directly
364     by manually issued commands, rather /sbin/wpa_action is supplied to stop and
365     reload the roaming daemon. For example, to stop the
366     romaing daemon on the device 'eth1':
367    
368 kelmo-guest 929 wpa_action eth1 stop
369 kelmo-guest 814
370     When it is required to update the roaming daemon with a new networks details,
371     it can be done without stopping it. Edit the wpa_supplicant.conf file that is
372     being used by the daemon with the new networks details, add optional network
373     settings to /etc/network/interfaces that are specific to the new network
374     (linked by the 'id_str') and then 'reload' the daemon like so:
375    
376 kelmo-guest 929 wpa_action eth1 reload
377 kelmo-guest 814
378     For the complete technical details of what wpa_action can do, read the
379     wpa_action(8) manpage.
380    
381     Fine Tuning the Roaming Setup
382     =============================
383    
384     You may face situations where multiple known access points are in close
385     proximity. You can choose which one is preferred manually, with wpa_cli or
386     wpa_gui, or you can give each network its own priority. This is provided by the
387     'priority' option of wpa_supplicant.conf.
388    
389     The Logfile
390     ===========
391    
392     All activity of the roaming dameon is logged to /var/log/wpa_action.log. The
393     following information is logged:
394    
395 kelmo-guest 929 * time and date
396     * interface name and action event
397     * values of enviromental variables (WPA_ID, WPA_ID_STR, WPA_CTRL_DIR)
398     * ifupdown command executed
399     * wpa_cli status (based on WPA-PSK network, may display different info)
400     - bssid
401     - ssid
402     - id
403     - id_str
404     - pairwise_cipher
405     - group_cipher
406     - key_mgmt
407     - wpa_state
408     - ip_address
409 kelmo-guest 814
410     Using External Mapping Scripts (e.g. guessnet)
411     ==============================================
412    
413     In addition to the internal mapping of logical interfaces via 'id_str',
414     wpa_action can call external mapping scripts. A mapping script should return
415     the name of the logical interface which should be brought up. Any mapping
416     script that works from ifupdowns mapping mechanism (see man interfaces) should
417     also work when called from wpa_action.
418    
419     To call a mapping script add a line 'wpa-mapping-script name-of-the-script' to
420     the interfaces stanza of the physical roaming device. (You may have to specify
421     the absolute path to the mapping script.)
422    
423     The contents of lines starting with wpa-map are passed to stdin of the mapping
424     script. Since ifupdown allows only one wpa-map line you can append any number
425     to wpa-map for additional lines. For example:
426    
427     iface wlan0 inet manual
428 kelmo-guest 929 wpa-driver wext
429     wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
430     wpa-mapping-script guessnet-ifupdown
431     wpa-map0 home
432     wpa-map1 work
433     wpa-map2 school
434     # ... additional wpa-mapX lines as required
435 kelmo-guest 814
436    
437     By default the mapping script will only be used when no 'id_str' is available
438     for the current network. If you want to completely disable 'id_str' matching
439     and use only an external mapping script, use the
440     'wpa-mapping-script-priority 1' option to override default behaviour.
441    
442     If the mapping script returns an empty string wpa_action will fallback to using
443     the 'default' interface, unless an alternative is defined by the
444     'wpa-roam-default-iface' option.
445    
446     Below is an advanced example, using guessnet-ifupdown as the external mapping
447     script.
448    
449     /etc/network/interfaces with external mapping
450     =============================================
451    
452     allow-hotplug wlan0
453     iface wlan0 inet manual
454     wpa-driver wext
455     wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
456 kelmo-guest 929 wpa-roam-default-iface default-wparoam
457 kelmo-guest 814 wpa-mapping-script guessnet-ifupdown
458 kelmo-guest 929 wpa-map default: default-guessnet
459     wpa-map0 home_static
460     wpa-map1 work_static
461 kelmo-guest 814
462     # school can only be chosen via 'id_str' matching
463     iface school inet dhcp
464 kelmo-guest 929 # resolvconf
465     dns-nameservers 11.22.33.44 55.66.77.88
466 kelmo-guest 814
467     iface home_static inet static
468     address 192.168.0.20
469     netmask 255.255.255.0
470     network 192.168.0.0
471     broadcast 192.168.0.255
472     gateway 192.168.0.1
473 kelmo-guest 929 test peer address 192.168.0.1 mac 00:01:02:03:04:05
474 kelmo-guest 814
475     iface work_static inet static
476 kelmo-guest 929 address 192.168.3.200
477 kelmo-guest 814 netmask 255.255.255.0
478     network 192.168.3.0
479     broadcast 192.168.3.255
480     gateway 192.168.3.1
481 kelmo-guest 929 test peer address 192.168.3.1 mac 00:01:02:03:04:05
482 kelmo-guest 814
483     iface default-guessnet inet dhcp
484    
485     iface default-wparoam inet dhcp
486    
487     In this example wpa_action will use guessnet for the selection of a suitable
488     logical interface only when no 'id_str' option has been provided for the
489     current network in the provided wpa_supplicant.conf.
490    
491     The 'wpa-map' lines provide guessnet with the logical interfaces that are to be
492     tested as well as the default interface to be used when all tests fail. The
493     'test' lines of each logical interface are used by guessnet to determine if
494     we are actually connected to that network. For instance, guessnet will choose
495     the logical interface 'home_static' if there's a device with an IP address of
496     192.168.0.1 and MAC of 00:01:02:03:04:05 on the current network. If all tests
497     fail, the 'default-guessnet' interface will be configured.
498    
499     Please, read the guessnet(8) manpage for more information.
500    
501    
502     4. Troubleshooting
503     ==================
504    
505     In order to debug connection, association and authentication problems,
506 kelmo-guest 1349 increase the verbosity level of wpa_supplicant to log debug output by
507     adding the wpa-debug-level option to /etc/network/interfaces like in
508     the following example:
509 kelmo-guest 814
510 kelmo-guest 959 iface eth1 inet dhcp
511 kelmo-guest 1158 wpa-debug-level 3
512 kelmo-guest 959 ...
513    
514 kelmo-guest 1158 Debug level number 3 starts the supplicant with the -ddd command line option,
515     level 2 with -dd an level 1 with -d. Values of -1 and -2 will cause
516 kelmo-guest 979 wpa_supplicant to be started with -q and -qq options respectively (quiet mode).
517 kelmo-guest 1158 Any other wpa-debug-level value will cause the supplicant to be started
518     with default debug level.
519 kelmo-guest 959
520 kelmo-guest 1349 If wpa_supplicant is started via D-Bus, then you must edit
521     /usr/share/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service and
522     add the debugging command line option to the Exec field.
523    
524     It is also possible to have wpa_supplicant write all debug output to a text
525     file with the -f command line option. You may specify a file to log to with
526     the wpa-logfile in /etc/network/interfaces if starting wpa_supplicant via
527     ifupdown.
528    
529 kelmo-guest 959 Another method is to start `wpa_cli -i <interface>` in another shell before
530     starting the interface. Use the command 'level 0' first, to get all debug
531     messages sent to the control socket by wpa_supplicant.
532    
533     To debug the ifupdown scripts that start wpa_supplicant and friends, use
534     `ifup --verbose <interface>` to get verbose messages, or set
535     wpa-maint-debug to any value to see shell code execution (set -x).
536    
537 kelmo-guest 814 Hidden ssids
538     ============
539    
540 kelmo-guest 941 For reference, see #358137 [1]. In order to be able to associate to hidden
541 kelmo-guest 929 ssids, please try to set the option 'ap_scan=1' in the global section, and
542 kelmo-guest 814 'scan_ssid=1' in your network block section of your wpa_supplicant.conf file.
543     If you are using the managed mode, you can do so by these stanzas:
544    
545     iface eth1 inet dhcp
546 kelmo-guest 929 wpa-ap-scan 1
547     wpa-scan-ssid 1
548     # ... additional options for your setup
549 kelmo-guest 814
550 kelmo-guest 941 According to #368770 [2], association can take a very long time under certain
551 kelmo-guest 929 circumstances. In some cases, setting the parameter 'ap_scan=2' in the
552 kelmo-guest 814 config file, (or using a 'wpa-ap-scan 2' stanza, which is equivalent) can
553 kelmo-guest 929 greatly help to speed up association. Please note that setting ap_scan to the
554     value of 2 also requires that all networks have a precisely defined security
555     policy for for key_mgmt, pairwise, group and proto network policy variables.
556 kelmo-guest 814
557 kelmo-guest 941 [1] http://bugs.debian.org/358137
558     [2] http://bugs.debian.org/368770
559 kelmo-guest 814
560 kelmo-guest 929
561 kelmo-guest 814 5. Security Considerations
562     ==========================
563    
564     Configuration File Permissions
565     ==============================
566     It is important to keep PSK's and other sensitive information concerning your
567     network settings private, therefore ensure that important configuration files
568     containing such data are only readable by their owner. For example:
569    
570 kelmo-guest 929 chmod 0600 /etc/network/interfaces
571     chmod 0600 /etc/wpa_supplicant/wpa_supplicant.conf
572 kelmo-guest 814
573     By default, /etc/network/interfaces is world readable, and thus unsuitable for
574     containing secret keys and passwords.

  ViewVC Help
Powered by ViewVC 1.1.5