Outils pour utilisateurs

Outils du site


gabriel_rotella:gabriel_rotella9

Point d'accès sans fil avec Hostapd sur Titania

Installer les programmes nécessaires:

apt-get install iw wireless-tools hostapd

Modifiez le fichier suivant pour configurer HostAP. Ajoutez la ligne: dans le fichier /etc/default/hostapd:

DAEMON_CONF="/etc/hostapd/hostapd.conf" 
 Defaults for hostapd initscript
#
# See /usr/share/doc/hostapd/README.Debian for information about alternative
# methods of managing hostapd.
#
# Uncomment and set DAEMON_CONF to the absolute path of a hostapd configurati$
# file and hostapd will be started during system boot. An example configurati$
# file can be found at /usr/share/doc/hostapd/examples/hostapd.conf.gz
#
DAEMON_CONF="/etc/hostapd/hostapd.conf"

# Additional daemon options to be appended to hostapd command:-
#       -d   show more debug messages (-dd for even more)
#       -K   include key data in debug messages
#       -t   include timestamps in some debug messages
#
# Note that -B (daemon mode) and -P (pidfile) options are automatically
# configured by the init.d script and must not be added to DAEMON_OPTS.
#
#DAEMON_OPTS=""

Créer le fichier hostapd.conf dans etc/hostapd/ avec:

#L'interface wifi
interface=wlo1
#Le SSID (le nom du point d'accès wifi)
ssid=Prueba123
#Le driver wifi
driver=nl80211
#On choisit le channel
channel=6
#Mettre le paramètre à "g" pour la bande à 2.4Ghz, et à "a" pour la bande à 5Ghz
hw_mode=g


#Pour nous permettre d'obtenir la liste des stations connectées
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0

#On log le trafic
logger_syslog=-1
logger_syslog_level=1
logger_stdout=-1
logger_stdout_level=2

# Levels (minimum value for logged events):
#  0 = verbose debugging
#  1 = debugging
#  2 = informational messages
#  3 = notification
#  4 = warning
#  -1 = all

Dans etc/network/interfaces:

auto wlo1
iface wlo1 inet static
        address 192.168.4.2
        netmask 255.255.255.0
        hostapd /etc/hostapd/hostapd.conf 
gabriel_rotella/gabriel_rotella9.txt · Dernière modification: 2020/07/14 13:18 par Gabriel Rotella