Raspberry pi 3 en HOT spot wifi
flo39400
Messages postés
596
Date d'inscription
Statut
Membre
Dernière intervention
-
flo39400 Messages postés 596 Date d'inscription Statut Membre Dernière intervention -
flo39400 Messages postés 596 Date d'inscription Statut Membre Dernière intervention -
Bonjour, j'ai j'aimerai faire de mon raspberry pi un hot spot.
Mais quand je me connecter au réseau il est une page web qui s'ouvre automatiquement.
L'idée n'est pas de partager une connection internet via un pont réseau mais juste accéder au site local placer dans la raspberry pi.
Comme sur les hot spot tel que free wifi par exemple.
Pouvez me donner quelques piste afin de mettre en place cela ?
Merci d'avance.
Mais quand je me connecter au réseau il est une page web qui s'ouvre automatiquement.
L'idée n'est pas de partager une connection internet via un pont réseau mais juste accéder au site local placer dans la raspberry pi.
Comme sur les hot spot tel que free wifi par exemple.
Pouvez me donner quelques piste afin de mettre en place cela ?
Merci d'avance.
A voir également:
- Raspberry pi 3 en HOT spot wifi
- Ai suite 3 - Télécharger - Optimisation
- Changer wifi chromecast - Guide
- Voir mot de passe wifi android - Guide
- Picasa 3 - Télécharger - Albums photo
- Adresse mac wifi - Guide
3 réponses
Salut,
Je ne suis pas sûr d'avoir bien compris tes explications ;-\
J'hésite entre un serveur web et un portail captif.
Je pencherai pour le second, donc voir : portail captif
Je ne suis pas sûr d'avoir bien compris tes explications ;-\
J'hésite entre un serveur web et un portail captif.
Je pencherai pour le second, donc voir : portail captif
Bonsoir, j'ai installer : Hostapd.
Le problème il me dit que j'ai un problème dans le fichier de configuration.
Voici le message:
pi@serveurFTP:~ $ hostapd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
Line 18: no authentication algorithms allowed
1 errors found in configuration file '/etc/hostapd/hostapd.conf'
Failed to set up interface with /etc/hostapd/hostapd.conf
Failed to initialize interface
Le fichier de configuration:
# interface wlan du Wi-Fi
interface=wlan0
# nl80211 avec tous les drivers Linux mac80211
driver=nl80211
# Nom du spot Wi-Fi
ssid=Nexus
# mode Wi-Fi (a = IEEE 802.11a, b = IEEE 802.11b, g = IEEE 802.11g)
hw_mode=g
# canal de fréquence Wi-Fi (1-14)
channel=6
# Wi-Fi ouvert, pas d'authentification !
auth_algs=0
# Beacon interval in kus (1.024 ms)
beacon_int=100
# DTIM (delivery trafic information message)
dtim_period=2
# Maximum number of stations allowed in station table
max_num_sta=255
# RTS/CTS threshold; 2347 = disabled (default)
rts_threshold=2347
# Fragmentation threshold; 2346 = disabled (default)
fragm_threshold=2346
Voila si vous pouvez m'aider..... Merci
Le problème il me dit que j'ai un problème dans le fichier de configuration.
Voici le message:
pi@serveurFTP:~ $ hostapd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
Line 18: no authentication algorithms allowed
1 errors found in configuration file '/etc/hostapd/hostapd.conf'
Failed to set up interface with /etc/hostapd/hostapd.conf
Failed to initialize interface
Le fichier de configuration:
# interface wlan du Wi-Fi
interface=wlan0
# nl80211 avec tous les drivers Linux mac80211
driver=nl80211
# Nom du spot Wi-Fi
ssid=Nexus
# mode Wi-Fi (a = IEEE 802.11a, b = IEEE 802.11b, g = IEEE 802.11g)
hw_mode=g
# canal de fréquence Wi-Fi (1-14)
channel=6
# Wi-Fi ouvert, pas d'authentification !
auth_algs=0
# Beacon interval in kus (1.024 ms)
beacon_int=100
# DTIM (delivery trafic information message)
dtim_period=2
# Maximum number of stations allowed in station table
max_num_sta=255
# RTS/CTS threshold; 2347 = disabled (default)
rts_threshold=2347
# Fragmentation threshold; 2346 = disabled (default)
fragm_threshold=2346
Voila si vous pouvez m'aider..... Merci
Voici la carte wifi:
pi@serveurFTP:~ $ iw list
Wiphy phy0
max # scan SSIDs: 10
max scan IEs length: 2048 bytes
Retry short limit: 7
Retry long limit: 4
Coverage class: 0 (up to 0m)
Device supports T-DLS.
Supported Ciphers:
Available Antennas: TX 0 RX 0
Supported interface modes:
Band 1:
Capabilities: 0x1020
HT20
Static SM Power Save
RX HT20 SGI
No RX STBC
Max AMSDU length: 3839 bytes
DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: 16 usec (0x07)
HT TX/RX MCS rate indexes supported: 0-7
Bitrates (non-HT):
Frequencies:
Supported commands:
Supported TX frame types:
Supported RX frame types:
software interface modes (can always be added):
valid interface combinations:
total <= 3, #channels <= 2
total <= 4, #channels <= 1
Device supports scan flush.
pi@serveurFTP:~ $ iw list
Wiphy phy0
max # scan SSIDs: 10
max scan IEs length: 2048 bytes
Retry short limit: 7
Retry long limit: 4
Coverage class: 0 (up to 0m)
Device supports T-DLS.
Supported Ciphers:
- WEP40 (00-0f-ac:1)
- WEP104 (00-0f-ac:5)
- TKIP (00-0f-ac:2)
- CCMP (00-0f-ac:4)
- CMAC (00-0f-ac:6)
Available Antennas: TX 0 RX 0
Supported interface modes:
- IBSS
- managed
- AP
- P2P-client
- P2P-GO
- P2P-device
Band 1:
Capabilities: 0x1020
HT20
Static SM Power Save
RX HT20 SGI
No RX STBC
Max AMSDU length: 3839 bytes
DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: 16 usec (0x07)
HT TX/RX MCS rate indexes supported: 0-7
Bitrates (non-HT):
- 1.0 Mbps
- 2.0 Mbps (short preamble supported)
- 5.5 Mbps (short preamble supported)
- 11.0 Mbps (short preamble supported)
- 6.0 Mbps
- 9.0 Mbps
- 12.0 Mbps
- 18.0 Mbps
- 24.0 Mbps
- 36.0 Mbps
- 48.0 Mbps
- 54.0 Mbps
Frequencies:
- 2412 MHz [1] (20.0 dBm)
- 2417 MHz [2] (20.0 dBm)
- 2422 MHz [3] (20.0 dBm)
- 2427 MHz [4] (20.0 dBm)
- 2432 MHz [5] (20.0 dBm)
- 2437 MHz [6] (20.0 dBm)
- 2442 MHz [7] (20.0 dBm)
- 2447 MHz [8] (20.0 dBm)
- 2452 MHz [9] (20.0 dBm)
- 2457 MHz [10] (20.0 dBm)
- 2462 MHz [11] (20.0 dBm)
- 2467 MHz [12] (20.0 dBm)
- 2472 MHz [13] (20.0 dBm)
- 2484 MHz [14] (disabled)
Supported commands:
- new_interface
- set_interface
- new_key
- start_ap
- join_ibss
- set_pmksa
- del_pmksa
- flush_pmksa
- remain_on_channel
- frame
- set_channel
- tdls_oper
- start_sched_scan
- start_p2p_device
- crit_protocol_start
- crit_protocol_stop
- connect
- disconnect
Supported TX frame types:
- managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
- P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
- P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
- P2P-device: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
Supported RX frame types:
- managed: 0x40 0xd0
- P2P-client: 0x40 0xd0
- P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
- P2P-device: 0x40 0xd0
software interface modes (can always be added):
valid interface combinations:
- #{ managed } <= 1, #{ P2P-device } <= 1, #{ P2P-client, P2P-GO } <= 1,
total <= 3, #channels <= 2
- #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1,
total <= 4, #channels <= 1
Device supports scan flush.
Bonjour merci, donc ça vient de la:
17 # Wi-Fi ouvert, pas d'authentification !
18 auth_algs=0
Voici la totalité :
1
2 # interface wlan du Wi-Fi
3 interface=wlan0
4
5 # nl80211 avec tous les drivers Linux mac80211
6 driver=nl80211
7
8 # Nom du spot Wi-Fi
9 ssid=Free Video
10
11 # mode Wi-Fi (a = IEEE 802.11a, b = IEEE 802.11b, g = IEEE 802.11g)
12 hw_mode=g
13
14 # canal de fréquence Wi-Fi (1-14)
15 channel=6
16
17 # Wi-Fi ouvert, pas d'authentification !
18 auth_algs=0
19
20 # Beacon interval in kus (1.024 ms)
21 beacon_int=100
22
23 # DTIM (delivery trafic information message)
24 dtim_period=2
25
26 # Maximum number of stations allowed in station table
27 max_num_sta=255
28
29 # RTS/CTS threshold; 2347 = disabled (default)
30 rts_threshold=2347
31
32 # Fragmentation threshold; 2346 = disabled (default)
33 fragm_threshold=2346
J'ai pris cette configuration sur le site: https://doc.ubuntu-fr.org/hostapd
17 # Wi-Fi ouvert, pas d'authentification !
18 auth_algs=0
Voici la totalité :
1
2 # interface wlan du Wi-Fi
3 interface=wlan0
4
5 # nl80211 avec tous les drivers Linux mac80211
6 driver=nl80211
7
8 # Nom du spot Wi-Fi
9 ssid=Free Video
10
11 # mode Wi-Fi (a = IEEE 802.11a, b = IEEE 802.11b, g = IEEE 802.11g)
12 hw_mode=g
13
14 # canal de fréquence Wi-Fi (1-14)
15 channel=6
16
17 # Wi-Fi ouvert, pas d'authentification !
18 auth_algs=0
19
20 # Beacon interval in kus (1.024 ms)
21 beacon_int=100
22
23 # DTIM (delivery trafic information message)
24 dtim_period=2
25
26 # Maximum number of stations allowed in station table
27 max_num_sta=255
28
29 # RTS/CTS threshold; 2347 = disabled (default)
30 rts_threshold=2347
31
32 # Fragmentation threshold; 2346 = disabled (default)
33 fragm_threshold=2346
J'ai pris cette configuration sur le site: https://doc.ubuntu-fr.org/hostapd
Re j'ai modifier le fichier de configuration:
1
2 # interface wlan du Wi-Fi
3 interface=wlan0
4
5 # nl80211 avec tous les drivers Linux mac80211
6 driver=nl80211
7
8 # Nom du spot Wi-Fi
9 ssid=Free Video
10
11 # mode Wi-Fi (a = IEEE 802.11a, b = IEEE 802.11b, g = IEEE 802.11g)
12 hw_mode=g
13
14 # canal de fréquence Wi-Fi (1-14)
15 channel=6
16
17 # Wi-Fi ouvert, pas d'authentification ! passage a 1
18 auth_algs=1
19
20 # Beacon interval in kus (1.024 ms)
21 beacon_int=100
22
23 # DTIM (delivery trafic information message)
24 dtim_period=2
25
26 # Maximum number of stations allowed in station table
27 max_num_sta=255
28
29 # RTS/CTS threshold; 2347 = disabled (default)
30 rts_threshold=2347
31
32 # Fragmentation threshold; 2346 = disabled (default)
33 fragm_threshold=2346
Mais la pu rien ne ce passe : Après ces deux commandes :
pi@serveurFTP:~ $ sudo service dnsmasq start
pi@serveurFTP:~ $ sudo service hostapd start
Le nom SSID Free Video n'apparait pas :/
Aucun messages rien.
1
2 # interface wlan du Wi-Fi
3 interface=wlan0
4
5 # nl80211 avec tous les drivers Linux mac80211
6 driver=nl80211
7
8 # Nom du spot Wi-Fi
9 ssid=Free Video
10
11 # mode Wi-Fi (a = IEEE 802.11a, b = IEEE 802.11b, g = IEEE 802.11g)
12 hw_mode=g
13
14 # canal de fréquence Wi-Fi (1-14)
15 channel=6
16
17 # Wi-Fi ouvert, pas d'authentification ! passage a 1
18 auth_algs=1
19
20 # Beacon interval in kus (1.024 ms)
21 beacon_int=100
22
23 # DTIM (delivery trafic information message)
24 dtim_period=2
25
26 # Maximum number of stations allowed in station table
27 max_num_sta=255
28
29 # RTS/CTS threshold; 2347 = disabled (default)
30 rts_threshold=2347
31
32 # Fragmentation threshold; 2346 = disabled (default)
33 fragm_threshold=2346
Mais la pu rien ne ce passe : Après ces deux commandes :
pi@serveurFTP:~ $ sudo service dnsmasq start
pi@serveurFTP:~ $ sudo service hostapd start
Le nom SSID Free Video n'apparait pas :/
Aucun messages rien.
Mais comment configurer ma raspberry pi pour créé un réseau wifi tel un routeur ?