Aller au contenu

OpenBSD Configuration point d'accés wi-fi - hostap


Messages recommandés

Bonjour,

Je souhait utilisé une machine sous OpenBSD 3.9 comme borne d'accés Wi-Fi,

Pour cela j'ai installer une carte OvisLink Evo-W54PCI (Chipset Ralink RT2500).

Mon soucis est au niveau de hostapd.conf, comment le configurer, car les variables contenu dans ce fichier semble être différente sur les autres distributions (Linux, FreeBSD, ...), à savoir:

Voici ce qui me faudrait en temp normal, du moins je pense:

------------------------------------------------------------------------

interface=ral0

driver=bsd

logger_syslog=-1

logger_syslog_level=0

logger_stdout=-1

logger_stdout_level=0

debug=4

dump_file=/tmp/hostapd.dump

ctrl_interface=/var/run/hostapd

ctrl_interface_group=wheel

ssid=secret

wpa=1

wpa_passphrase=verysecret

wpa_key_mgmt=WPA-PSK

wpa_pairwise=TKIP

------------------------------------------------------------------------

Et voici le fichier d'origine sous OpenBSD:

------------------------------------------------------------------------

# $OpenBSD: hostapd.conf,v 1.8 2005/11/03 23:06:48 david Exp $

# sample hostapd configuration file

# see hostapd.conf(5)

# "wavelan is a battle field"

#

# Macros

#

# Define macros for the interfaces to be used by hostapd. The "wlan"

# interface is optional.

wlan="ath0"

wired="sis0"

#

# Tables

#

# Define the MAC addresses (BSSIDs) for your accesspoints in a table.

table <myess> {

00:90:4b:0d:fd:c8,

00:02:6f:21:ea:8b

}

# Address masks are providing a simple way to match by MAC vendor ID.

#

# table <senao> { 00:02:6f:ff:ff:ff & ff:ff:ff:00:00:00 }

#

# Global options

#

# Comment this option to run hostapd in passive IAPP logging mode.

set hostap interface $wlan

# Use default radiotap mode.

set hostap mode radiotap

# Use multicast (according to the revised standard).

set iapp interface $wired

set iapp mode multicast

#

# Event rules

#

# Log probe requests.

hostap handle type management subtype probe request \

with iapp type radiotap

# Log and annoy foreign accesspoints.

#

# This will be logged as well but the important thing is to

# annoy other accesspoints in your wireless territory.

hostap handle type data bssid !<myess> \

with frame type management subtype deauth reason auth expire \

from &bssid to ff:ff:ff:ff:ff:ff bssid &bssid

# The first de-auth example will not work with some newer stuff, like

# iwi(4)/ipw(4) "centrino", because they ignore management frames to

# the broadcast address as a countermeasure against the "void11"

# attack.

#

# hostap handle type data bssid !<myess> \

# with frame type management subtype deauth reason auth expire \

# from &bssid to &from bssid &bssid

# Detect flooding of management frames except beacons.

# This will detect some possible Denial of Service attacks

# against the IEEE 802.11 protocol (like "void11").

hostap handle skip type management subtype ! beacon \

with log \

rate 100 / 10 sec

# Finally log any rogue accesspoints limited to every second.

hostap handle skip type management subtype beacon bssid !<myess> \

with iapp type radiotap limit 1 sec

------------------------------------------------------------------------

Je n'ai rien trouver sur le net sur la version que j'ai de hostapd, à chaque fois je retombe sur la config. classique, quand je fait un man de hostapd.conf, j'ai bien les nouvelles variable mais je vois pas comment faire correspondre avec ce que je voudrai.

Est ce une spécificité de OpenBSD?

J'ai trouver un bon tuto sur cette page: Wireless Network, mais vu que j'arrive pas à le mettre en oeuvre... Bien sure si je modifie mon hostapd.conf en version "standard" là j'ai que des érreurs au lancement du daemon.

Sur le site de l'éditeur pareille, pas d'infos: http://hostap.epitest.fi/hostapd/

Si quelqu'un à une idée...

Merci, :)

Lien vers le commentaire
Partager sur d’autres sites

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

×
×
  • Créer...