Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 09/02/2018, à 16:23

Bob36180

Recherche configuration pour hostapd pour chipset rtl8812au

Re à tous !!

Je voudrais savoir si on pouvait modifier hostapd pour qu'il supporte les autres chipsets qu'Atheros ?? Ici en l’occurrence le rtl8812au, tout simplement... wink

Merci d'avance !!

Dernière modification par Bob36180 (Le 15/02/2018, à 15:26)


La différence entre Linux et Windows, c'est que Linux c'est comme une belle fille, il faut l'apprivoiser, la comprendre, la séduire. Windows, c'est comme une prostituée, il faut payer et surtout bien se protéger...

Hors ligne

#2 Le 13/02/2018, à 23:18

Spirale21

Re : Recherche configuration pour hostapd pour chipset rtl8812au

Bonjour,
je serais toi je mettrais un titre plus explicite genre recherche configuration pour hostapd pour chipset XXX
car hostapd est un démon (en gros un programme qui peut juste se lancer, s'arrêter ou se relancer) mais tu peux lui donner en entrer un fichier de configuration... donc édite ton titre pour attirer les spécialistes :-)

Dernière modification par Spirale21 (Le 13/02/2018, à 23:18)


il y a trois manière de faire: la bonne, la mauvaise et la mienne

Hors ligne

#3 Le 15/02/2018, à 15:26

Bob36180

Re : Recherche configuration pour hostapd pour chipset rtl8812au

Très pertinent, merci Spirale... smile


La différence entre Linux et Windows, c'est que Linux c'est comme une belle fille, il faut l'apprivoiser, la comprendre, la séduire. Windows, c'est comme une prostituée, il faut payer et surtout bien se protéger...

Hors ligne

#4 Le 10/03/2018, à 18:19

Bob36180

Re : Recherche configuration pour hostapd pour chipset rtl8812au

Petit up !!
Le but de ce topic serait de répéter le WiFi d'une interface wifi à l'autre... Je désire utiliser hostapd pour le cryptage wpa2. L'interface connectée à internet est wlx00c0ca964944 utilisant le chipset rtl8812au (https://github.com/abperiasamy/rtl8812AU_8821AU_linux) et l'interface qui fait office d'AP est wlp1s0, de chipset realtek aussi. J'utilise hostapd 2.6 patché pour realtek...
J'ai trouvé beaucoup de ce type de questions sur le net, heureux êtes-vous si vous trouvez la solution !! wink
Merci d'avance de vos réponses !

EDIT : Le mode AP se met bien en route avec le message "AP-ENABLED", le client se connecte, mais les pages internet ne se chargent pas, pourtant je suis bien connecté...

Le script que j'utilise :

#!/bin/sh
iInf="wlp1s0"  #Interface with Internet Connectivity (ex: eth0)
wInf="wlx00c0ca964944"  #Wireless interface (ex: wlan2)

echo "Stopping port 5353 ..."
sudo kill -9 $( lsof -i:5353 -t )
echo "Bringing down wireless interface ..."
sudo ifconfig $wInf down
echo "Starting hostapd ..."
sudo hostapd -dd -B /etc/hostapd/hostapd.conf
echo "Configuring wireless interface ..."
sudo ifconfig $wInf 192.168.200.1 netmask 255.255.255.0
echo "Starting dhcpd Server ..."

echo "Starting dnsmasq as DHCP server ..."
sudo dnsmasq
echo "Stopping firewall and allowing everyone ..."
sudo iptables -t nat -A POSTROUTING -o wlp1s0 -j MASQUERADE
sudo iptables -A FORWARD -i wlp1s0 -o wlx00c0ca964944 -m state --state RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A FORWARD -i wlx00c0ca964944 -o wlp1s0 -j ACCEPT
sudo sh -c "iptables-save > /etc/iptables.ipv4.nat"

echo "Enabling IP forwarding ..."
echo 1 > /proc/sys/net/ipv4/ip_forward
echo "Wireless gateway setup is complete"

La sortie de ce script :

root@bob-E202SA:/home/bob/Scripts# ./hostapd.sh
Stopping port 5353 ...
Bringing down wireless interface ...
Starting hostapd ...
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd/hostapd.conf
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Using driver-based off-channel TX
nl80211: Supported vendor command: vendor_id=0x1018 subcmd=1
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4106
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4107
nl80211: Supported vendor event: vendor_id=0x1018 subcmd=0
nl80211: Supported vendor event: vendor_id=0x1018 subcmd=1
nl80211: interface wlx00c0ca964944 in phy phy2
nl80211: Set mode ifindex 4 iftype 3 (AP)
nl80211: Setup AP(wlx00c0ca964944) - device_ap_sme=1 use_monitor=0
nl80211: Subscribe to mgmt frames with AP handle 0x1a8f370 (device SME)
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1a8f370 match=04
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=1): 04
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1a8f370 match=0501
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1a8f370 match=0504
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1a8f370 match=06
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=1): 06
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1a8f370 match=08
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=1): 08
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1a8f370 match=09
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=1): 09
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1a8f370 match=0a
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=1): 0a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1a8f370 match=11
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=1): 11
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1a8f370 match=7f
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=1): 7f
nl80211: Failed to subscribe for mgmt frames from SME driver - trying to run without it
nl80211: Enable Probe Request reporting nl_preq=0x1a8f370
nl80211: Register frame type=0x40 (WLAN_FC_STYPE_PROBE_REQ) nl_handle=0x1a8f370 match=
nl80211: Register frame command failed (type=64): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=0): [NULL]
nl80211: Failed to enable Probe Request frame reporting in AP mode
rfkill: initial event: idx=4 type=1 op=0 soft=0 hard=0
nl80211: Add own interface ifindex 4 (ifidx_reason -1)
nl80211: if_indices[16]: 4(-1)
phy: phy2
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
wlx00c0ca964944: interface state UNINITIALIZED->COUNTRY_UPDATE
Previous country code US, new country code US 
nl80211: Regulatory information - country=US (DFS-FCC)
nl80211: 2402-2472 @ 40 MHz 30 mBm
nl80211: 5170-5250 @ 80 MHz 17 mBm
nl80211: 5250-5330 @ 80 MHz 23 mBm (DFS)
nl80211: 5490-5730 @ 160 MHz 23 mBm (DFS)
nl80211: 5735-5835 @ 80 MHz 30 mBm
nl80211: 57240-63720 @ 2160 MHz 40 mBm
nl80211: Added 802.11b mode based on 802.11g information
Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=30 dBm
Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=30 dBm
Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=30 dBm
Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=30 dBm
Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=30 dBm
Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=30 dBm
Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=30 dBm
Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=30 dBm
Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=30 dBm
Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=30 dBm
Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=36 freq=5180 MHz max_tx_power=17 dBm
Allowed channel: mode=2 chan=40 freq=5200 MHz max_tx_power=17 dBm
Allowed channel: mode=2 chan=44 freq=5220 MHz max_tx_power=17 dBm
Allowed channel: mode=2 chan=48 freq=5240 MHz max_tx_power=17 dBm
Allowed channel: mode=2 chan=149 freq=5745 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=153 freq=5765 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=157 freq=5785 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=161 freq=5805 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=165 freq=5825 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=30 dBm
Completing interface initialization
Mode: IEEE 802.11g  Channel: 5  Frequency: 2432 MHz
DFS 0 channels required radar detection
nl80211: Set freq 2432 (ht_enabled=0, vht_enabled=0, bandwidth=20 MHz, cf1=2432 MHz, cf2=0 MHz)
  * freq=2432
  * vht_enabled=0
  * ht_enabled=0
  * channel_type=0
RATE[0] rate=10 flags=0x1
RATE[1] rate=20 flags=0x1
RATE[2] rate=55 flags=0x1
RATE[3] rate=110 flags=0x1
RATE[4] rate=60 flags=0x0
RATE[5] rate=90 flags=0x0
RATE[6] rate=120 flags=0x0
RATE[7] rate=180 flags=0x0
RATE[8] rate=240 flags=0x0
RATE[9] rate=360 flags=0x0
RATE[10] rate=480 flags=0x0
RATE[11] rate=540 flags=0x0
hostapd_setup_bss(hapd=0x1a8fc00 (wlx00c0ca964944), first=1)
wlx00c0ca964944: Flushing old station entries
nl80211: flush -> DEL_STATION wlx00c0ca964944 (all)
nl80211: Station flush failed: ret=-95 (Operation not supported)
wlx00c0ca964944: Could not connect to kernel driver
wlx00c0ca964944: Deauthenticate all stations
nl80211: sta_remove -> DEL_STATION wlx00c0ca964944 ff:ff:ff:ff:ff:ff --> -95 (Operation not supported)
wpa_driver_nl80211_set_key: ifindex=4 (wlx00c0ca964944) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 (wlx00c0ca964944) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 (wlx00c0ca964944) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 (wlx00c0ca964944) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
Using interface wlx00c0ca964944 with hwaddr 00:c0:ca:96:49:44 and ssid "Wifi"
Deriving WPA PSK based on passphrase
SSID - hexdump_ascii(len=4):
     57 69 66 69                                       Wifi            
PSK (ASCII passphrase) - hexdump_ascii(len=11): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
random: Got 20/20 bytes from /dev/random
Get randomness: len=32 entropy=0
GMK - hexdump(len=32): [REMOVED]
Get randomness: len=32 entropy=0
Key Counter - hexdump(len=32): [REMOVED]
WPA: Delay group state machine start until Beacon frames have been configured
nl80211: Set beacon (beacon_set=0)
nl80211: Beacon head - hexdump(len=55): 80 00 00 00 ff ff ff ff ff ff 00 c0 ca 96 49 44 00 c0 ca 96 49 44 00 00 00 00 00 00 00 00 00 00 64 00 11 04 00 04 57 69 66 69 01 08 82 84 8b 96 0c 12 18 24 03 01 05
nl80211: Beacon tail - hexdump(len=39): 07 06 55 53 20 01 0b 1e 2a 01 04 32 04 30 48 60 6c 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
nl80211: ifindex=4
nl80211: beacon_int=100
nl80211: dtim_period=2
nl80211: ssid - hexdump_ascii(len=4):
     57 69 66 69                                       Wifi            
  * beacon_int=100
  * dtim_period=2
nl80211: hidden SSID not in use
nl80211: privacy=1
nl80211: auth_algs=0x1
nl80211: wpa_version=0x2
nl80211: key_mgmt_suites=0x2
nl80211: pairwise_ciphers=0x10
nl80211: group_cipher=0x10
WPA: Start group state machine to set initial keys
WPA: group state machine entering state GTK_INIT (VLAN-ID 0)
Get randomness: len=16 entropy=0
GTK - hexdump(len=16): [REMOVED]
WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)
wpa_driver_nl80211_set_key: ifindex=4 (wlx00c0ca964944) alg=3 addr=0x47c253 key_idx=1 set_tx=1 seq_len=0 key_len=16
nl80211: KEY_DATA - hexdump(len=16): [REMOVED]
   broadcast key
nl80211: Set wlx00c0ca964944 operstate 0->1 (UP)
netlink: Operstate: ifindex=4 linkmode=-1 (no change), operstate=6 (IF_OPER_UP)
Failed to set TX queue parameters for queue 0.
Failed to set TX queue parameters for queue 1.
Failed to set TX queue parameters for queue 2.
Failed to set TX queue parameters for queue 3.
wlx00c0ca964944: interface state COUNTRY_UPDATE->ENABLED
wlx00c0ca964944: AP-ENABLED 
wlx00c0ca964944: Setup of interface done.
ctrl_iface not configured!
Configuring wireless interface ...
Starting dhcpd Server ...
Starting dnsmasq as DHCP server ...
Stopping firewall and allowing everyone ...
Enabling IP forwarding ...
Wireless gateway setup is complete

Et la comme je le disais mon smartphone voit le réseau, peut s'y connecter, et obtient une adresse ip. Cependant je n'ai pas de connection.
Des idées ??

Dernière modification par Bob36180 (Le 23/03/2018, à 10:19)


La différence entre Linux et Windows, c'est que Linux c'est comme une belle fille, il faut l'apprivoiser, la comprendre, la séduire. Windows, c'est comme une prostituée, il faut payer et surtout bien se protéger...

Hors ligne