Connexion Google Home et Hostapd impossible
Bonjour,
J'essaie depuis quelques temps de connecter ma google home mini à un hostpot réalisé sur ma raspberry Pi 3B, cependant lors de la synchronisation de l'appareil avec mon hotspot ce dernier se casse et la synchronisation n'aboutit pas.
Le hotspot mise à part ça fonctionne lorsque je connecte mon smartphone et je peux naviguer sans problème sur internet. Sauf après une tentative de connexion avec la google home, car le hotspot devient inaccessible même pour mon smartphone.
Le hostpot est fait grâce à hostapd et utilise le réseau ethernet pour récupérer l’accès à internet de mon pc portable. Le connecte mon pc portable à un hotspot publique et c'est ce qui m'empêche de connecter directement ma google home sur le réseau internet.
Le montage réseau effectué :
Citation:
Google Home <-----(wlan0)----->Raspberry Pi 3B<-----(eth0)---->Pc portable sous Ubuntu<----(wlan0)------> Internet
Je ne trouve pas vraiment de piste pour résoudre mon problème et je fais appel à vous pour me donner des idées.
En vous remerciant.
PS : J'ai essayé de vous donner le maximum d'informations sur ma configuration ci dessous
Ici les logs que j'ai pu récupérer :
log d'hostapd :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386
|
1584891744.896113: random: Trying to read entropy from /dev/random
1584891744.896318: Configuration file: /etc/hostapd/hostapd.conf
1584891744.898781: ctrl_interface_group=0
1584891744.904033: nl80211: Using driver-based roaming
1584891744.904146: nl80211: Supported cipher 00-0f-ac:1
1584891744.904179: nl80211: Supported cipher 00-0f-ac:5
1584891744.904208: nl80211: Supported cipher 00-0f-ac:2
1584891744.904235: nl80211: Supported cipher 00-0f-ac:4
1584891744.904372: nl80211: Using driver-based off-channel TX
1584891744.904465: nl80211: Supported vendor command: vendor_id=0x1018 subcmd=1
1584891744.904547: nl80211: Use separate P2P group interface (driver advertised support)
1584891744.904577: nl80211: Enable multi-channel concurrent (driver advertised support)
1584891744.904609: nl80211: use P2P_DEVICE support
1584891744.904633: nl80211: interface wlan0 in phy phy0
1584891744.906022: nl80211: Set mode ifindex 3 iftype 3 (AP)
1584891744.906161: nl80211: Setup AP(wlan0) - device_ap_sme=1 use_monitor=0
1584891744.906319: nl80211: Subscribe to mgmt frames with AP handle 0x1d19b88 (device SME)
1584891744.906362: nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1d19b88 match=04
1584891744.906476: nl80211: Register frame command failed (type=208): ret=-22 (Invalid argument)
1584891744.906508: nl80211: Register frame match - hexdump(len=1): 04
1584891744.906543: nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1d19b88 match=0501
1584891744.906642: nl80211: Register frame command failed (type=208): ret=-22 (Invalid argument)
1584891744.906674: nl80211: Register frame match - hexdump(len=2): 05 01
1584891744.906708: nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1d19b88 match=0504
1584891744.906798: nl80211: Register frame command failed (type=208): ret=-22 (Invalid argument)
1584891744.906840: nl80211: Register frame match - hexdump(len=2): 05 04
1584891744.906873: nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1d19b88 match=06
1584891744.906955: nl80211: Register frame command failed (type=208): ret=-22 (Invalid argument)
1584891744.906988: nl80211: Register frame match - hexdump(len=1): 06
1584891744.907036: nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1d19b88 match=08
1584891744.907116: nl80211: Register frame command failed (type=208): ret=-22 (Invalid argument)
1584891744.907150: nl80211: Register frame match - hexdump(len=1): 08
1584891744.907181: nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1d19b88 match=09
1584891744.907278: nl80211: Register frame command failed (type=208): ret=-22 (Invalid argument)
1584891744.907309: nl80211: Register frame match - hexdump(len=1): 09
1584891744.907346: nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1d19b88 match=0a
1584891744.907428: nl80211: Register frame command failed (type=208): ret=-22 (Invalid argument)
1584891744.907459: nl80211: Register frame match - hexdump(len=1): 0a
1584891744.907489: nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1d19b88 match=11
1584891744.907586: nl80211: Register frame command failed (type=208): ret=-22 (Invalid argument)
1584891744.907618: nl80211: Register frame match - hexdump(len=1): 11
1584891744.907647: nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x1d19b88 match=7f
1584891744.907726: nl80211: Register frame command failed (type=208): ret=-22 (Invalid argument)
1584891744.907756: nl80211: Register frame match - hexdump(len=1): 7f
1584891744.907862: nl80211: Failed to subscribe for mgmt frames from SME driver - trying to run without it
1584891744.907945: nl80211: Enable Probe Request reporting nl_preq=0x1d19b88
1584891744.907973: nl80211: Register frame type=0x40 (WLAN_FC_STYPE_PROBE_REQ) nl_handle=0x1d19b88 match=
1584891744.908055: nl80211: Register frame command failed (type=64): ret=-22 (Invalid argument)
1584891744.908086: nl80211: Register frame match - hexdump(len=0): [NULL]
1584891744.908138: nl80211: Failed to enable Probe Request frame reporting in AP mode
1584891744.909038: rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
1584891744.911748: nl80211: Add own interface ifindex 3 (ifidx_reason -1)
1584891744.911839: nl80211: if_indices[16]: 3(-1)
1584891744.911940: phy: phy0
1584891744.911982: BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
1584891744.912225: wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
1584891744.912498: Previous country code FR, new country code FR
1584891744.913289: nl80211: Regulatory information - country=FR (DFS-ETSI)
1584891744.913360: nl80211: 2402-2482 @ 40 MHz 20 mBm
1584891744.913395: nl80211: 5170-5250 @ 80 MHz 20 mBm
1584891744.913429: nl80211: 5250-5330 @ 80 MHz 20 mBm (DFS)
1584891744.913461: nl80211: 5490-5710 @ 160 MHz 27 mBm (DFS)
1584891744.913493: nl80211: 57000-66000 @ 2160 MHz 40 mBm
1584891744.913570: nl80211: Added 802.11b mode based on 802.11g information
1584891744.913599: Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=20 dBm
1584891744.913628: Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=20 dBm
1584891744.913655: Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=20 dBm
1584891744.913680: Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=20 dBm
1584891744.913707: Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=20 dBm
1584891744.913734: Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=20 dBm
1584891744.913760: Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=20 dBm
1584891744.913786: Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=20 dBm
1584891744.913812: Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=20 dBm
1584891744.913838: Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=20 dBm
1584891744.913865: Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=20 dBm
1584891744.913891: Allowed channel: mode=1 chan=12 freq=2467 MHz max_tx_power=20 dBm
1584891744.913918: Allowed channel: mode=1 chan=13 freq=2472 MHz max_tx_power=20 dBm
1584891744.913944: Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=20 dBm
1584891744.913971: Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=20 dBm
1584891744.913997: Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=20 dBm
1584891744.914023: Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=20 dBm
1584891744.914049: Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=20 dBm
1584891744.914075: Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=20 dBm
1584891744.914101: Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=20 dBm
1584891744.914127: Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=20 dBm
1584891744.914153: Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=20 dBm
1584891744.914179: Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=20 dBm
1584891744.914206: Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=20 dBm
1584891744.914232: Allowed channel: mode=0 chan=12 freq=2467 MHz max_tx_power=20 dBm
1584891744.914259: Allowed channel: mode=0 chan=13 freq=2472 MHz max_tx_power=20 dBm
1584891744.914290: Completing interface initialization
1584891744.914313: Mode: IEEE 802.11g Channel: 1 Frequency: 2412 MHz
1584891744.914341: DFS 0 channels required radar detection
1584891744.914367: nl80211: Set freq 2412 (ht_enabled=0, vht_enabled=0, bandwidth=20 MHz, cf1=2412 MHz, cf2=0 MHz)
1584891744.914405: * freq=2412
1584891744.914430: * vht_enabled=0
1584891744.914453: * ht_enabled=0
1584891744.914476: * channel_type=0
1584891744.914564: RATE[0] rate=10 flags=0x1
1584891744.914595: RATE[1] rate=20 flags=0x1
1584891744.914621: RATE[2] rate=55 flags=0x1
1584891744.914646: RATE[3] rate=110 flags=0x1
1584891744.914670: RATE[4] rate=60 flags=0x0
1584891744.914695: RATE[5] rate=90 flags=0x0
1584891744.914719: RATE[6] rate=120 flags=0x0
1584891744.914744: RATE[7] rate=180 flags=0x0
1584891744.914769: RATE[8] rate=240 flags=0x0
1584891744.914793: RATE[9] rate=360 flags=0x0
1584891744.914818: RATE[10] rate=480 flags=0x0
1584891744.914842: RATE[11] rate=540 flags=0x0
1584891744.914868: hostapd_setup_bss(hapd=0x1d178a8 (wlan0), first=1)
1584891744.914965: wlan0: Flushing old station entries
1584891744.914993: nl80211: flush -> DEL_STATION wlan0 (all)
1584891744.915081: nl80211: Station flush failed: ret=-14 (Bad address)
1584891744.915118: wlan0: Could not connect to kernel driver
1584891744.915148: wlan0: Deauthenticate all stations
1584891744.916620: nl80211: sta_remove -> DEL_STATION wlan0 ff:ff:ff:ff:ff:ff --> 0 (Success)
1584891744.916796: wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
1584891744.916919: nl80211: set_key failed; err=-22 Invalid argument)
1584891744.916951: Failed to clear default encryption keys (ifname=wlan0 keyidx=0)
1584891744.917014: wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
1584891744.920961: wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
1584891744.921901: wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
1584891744.922030: nl80211: set_key failed; err=-22 Invalid argument)
1584891744.922063: Failed to clear default encryption keys (ifname=wlan0 keyidx=3)
1584891744.922110: Using interface wlan0 with hwaddr b8:27:eb:16:72:ee and ssid "raspi-hotspot"
1584891744.922147: Deriving WPA PSK based on passphrase
1584891744.922173: SSID - hexdump_ascii(len=13):
72 61 73 70 69 2d 68 6f 74 73 70 6f 74 raspi-hotspot
1584891744.922249: PSK (ASCII passphrase) - hexdump_ascii(len=8): [REMOVED]
1584891745.035863: PSK (from passphrase) - hexdump(len=32): [REMOVED]
1584891745.036050: random: Got 20/20 bytes from /dev/random
1584891745.036095: Get randomness: len=32 entropy=0
1584891745.036506: GMK - hexdump(len=32): [REMOVED]
1584891745.036539: Get randomness: len=32 entropy=0
1584891745.036963: Key Counter - hexdump(len=32): [REMOVED]
1584891745.036994: WPA: Delay group state machine start until Beacon frames have been configured
1584891745.037365: nl80211: Set beacon (beacon_set=0)
1584891745.037396: nl80211: Beacon head - hexdump(len=64): 80 00 00 00 ff ff ff ff ff ff b8 27 eb 16 72 ee b8 27 eb 16 72 ee 00 00 00 00 00 00 00 00 00 00 64 00 11 04 00 0d 72 61 73 70 69 2d 68 6f 74 73 70 6f 74 01 08 82 84 8b 96 0c 12 18 24 03 01 01
1584891745.037532: nl80211: Beacon tail - hexdump(len=37): 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 7f 04 00 00 00 02
1584891745.037621: nl80211: ifindex=3
1584891745.037645: nl80211: beacon_int=100
1584891745.037667: nl80211: dtim_period=2
1584891745.037691: nl80211: ssid - hexdump_ascii(len=13):
72 61 73 70 69 2d 68 6f 74 73 70 6f 74 raspi-hotspot
1584891745.037780: * beacon_int=100
1584891745.037806: * dtim_period=2
1584891745.037832: nl80211: hidden SSID not in use
1584891745.037856: nl80211: privacy=1
1584891745.037881: nl80211: auth_algs=0x1
1584891745.037905: nl80211: wpa_version=0x2
1584891745.037930: nl80211: key_mgmt_suites=0x2
1584891745.037954: nl80211: pairwise_ciphers=0x10
1584891745.037979: nl80211: group_cipher=0x10
1584891745.038005: nl80211: beacon_ies - hexdump(len=6): 7f 04 00 00 00 02
1584891745.038042: nl80211: proberesp_ies - hexdump(len=6): 7f 04 00 00 00 02
1584891745.038078: nl80211: assocresp_ies - hexdump(len=6): 7f 04 00 00 00 02
1584891745.093525: WPA: Start group state machine to set initial keys
1584891745.093636: WPA: group state machine entering state GTK_INIT (VLAN-ID 0)
1584891745.093668: Get randomness: len=16 entropy=0
1584891745.094210: GTK - hexdump(len=16): [REMOVED]
1584891745.094249: WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)
1584891745.094367: wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=3 addr=0xd4108 key_idx=1 set_tx=1 seq_len=0 key_len=16
1584891745.094422: nl80211: KEY_DATA - hexdump(len=16): [REMOVED]
1584891745.094452: broadcast key
1584891745.096939: nl80211: Set wlan0 operstate 0->1 (UP)
1584891745.097021: netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=6 (IF_OPER_UP)
1584891745.097524: Failed to set TX queue parameters for queue 0.
1584891745.097613: Failed to set TX queue parameters for queue 1.
1584891745.097693: Failed to set TX queue parameters for queue 2.
1584891745.097769: Failed to set TX queue parameters for queue 3.
1584891745.097800: wlan0: interface state COUNTRY_UPDATE->ENABLED
1584891745.097834: wlan0: AP-ENABLED
1584891745.097861: wlan0: Setup of interface done.
1584891745.097889: ctrl_iface not configured!
1584891745.100213: RTM_NEWLINK: ifi_index=3 ifname=wlan0 operstate=6 linkmode=0 ifi_family=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
1584891745.100509: VLAN: RTM_NEWLINK: ifi_index=3 ifname=wlan0 ifi_family=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
1584891745.100554: VLAN: vlan_newlink(wlan0)
1584891745.120151: RTM_NEWLINK: ifi_index=3 ifname=wlan0 operstate=6 linkmode=0 ifi_family=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
1584891745.120355: VLAN: RTM_NEWLINK: ifi_index=3 ifname=wlan0 ifi_family=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
1584891745.120394: VLAN: vlan_newlink(wlan0)
1584891748.790496: nl80211: Event message available
1584891748.790720: nl80211: Drv Event 19 (NL80211_CMD_NEW_STATION) received for wlan0
1584891748.790766: nl80211: New station 24:18:1d:3e:02:17
1584891748.790799: nl80211: Assoc Req IEs - hexdump(len=72): 00 0d 72 61 73 70 69 2d 68 6f 74 73 70 6f 74 01 08 82 84 8b 96 24 30 48 6c 32 04 0c 12 18 60 21 02 02 14 24 02 01 0d 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 80 00 dd 09 00 10 18 02 00 00 10 00 00
1584891748.791018: wlan0: Event ASSOC (0) received
1584891748.791068: 1584891748.791072: wlan0: STA 24:18:1d:3e:02:17 IEEE 802.11: associated
1584891748.791934: STA included RSN IE in (Re)AssocReq
1584891748.791967: New STA
1584891748.792266: ap_sta_add: register ap_handle_timer timeout for 24:18:1d:3e:02:17 (300 seconds - ap_max_inactivity)
1584891748.792337: nl80211: Set STA flags - ifname=wlan0 addr=24:18:1d:3e:02:17 total_flags=0x60 flags_or=0x0 flags_and=0xfffffff1 authorized=0
1584891748.792529: 1584891748.792534: wlan0: STA 24:18:1d:3e:02:17 WPA: event 1 notification
1584891748.792770: wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=0x1d20fe0 key_idx=0 set_tx=1 seq_len=0 key_len=0
1584891748.792835: addr=24:18:1d:3e:02:17
1584891748.792991: nl80211: set_key failed; err=-22 Invalid argument)
1584891748.793031: IEEE 802.1X: Ignore STA - 802.1X not enabled or forced for WPS
1584891748.793077: 1584891748.793081: wlan0: STA 24:18:1d:3e:02:17 WPA: start authentication
1584891748.793107: WPA: 24:18:1d:3e:02:17 WPA_PTK entering state INITIALIZE
1584891748.793194: wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=0x1d20fe0 key_idx=0 set_tx=1 seq_len=0 key_len=0
1584891748.793241: addr=24:18:1d:3e:02:17
1584891748.793331: nl80211: set_key failed; err=-22 Invalid argument)
1584891748.793366: nl80211: Set STA flags - ifname=wlan0 addr=24:18:1d:3e:02:17 total_flags=0x60 flags_or=0x0 flags_and=0xfffffffe authorized=0
1584891748.793972: 1584891748.793977: wlan0: STA 24:18:1d:3e:02:17 IEEE 802.1X: unauthorizing port
1584891748.794012: WPA: 24:18:1d:3e:02:17 WPA_PTK_GROUP entering state IDLE
1584891748.794044: WPA: 24:18:1d:3e:02:17 WPA_PTK entering state AUTHENTICATION
1584891748.794076: WPA: 24:18:1d:3e:02:17 WPA_PTK entering state AUTHENTICATION2
1584891748.794106: WPA: Re-initialize GMK/Counter on first station
1584891748.794130: Get randomness: len=32 entropy=1
1584891748.794780: GMK - hexdump(len=32): [REMOVED]
1584891748.794815: Get randomness: len=32 entropy=0
1584891748.795237: Key Counter - hexdump(len=32): [REMOVED]
1584891748.795269: Get randomness: len=16 entropy=0
1584891748.795669: GTK - hexdump(len=16): [REMOVED]
1584891748.795766: wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=3 addr=0xd4108 key_idx=1 set_tx=1 seq_len=0 key_len=16
1584891748.795817: nl80211: KEY_DATA - hexdump(len=16): [REMOVED]
1584891748.795846: broadcast key
1584891748.798411: Get randomness: len=32 entropy=0
1584891748.798823: WPA: Assign ANonce - hexdump(len=32): 81 fc d9 a4 cf 29 1f b7 46 a9 b1 c9 12 a6 b3 74 ce f5 78 bd 85 5e 59 07 32 4e 36 82 f0 6a 8f 85
1584891748.798970: WPA: 24:18:1d:3e:02:17 WPA_PTK entering state INITPSK
1584891748.799004: Searching a PSK for 24:18:1d:3e:02:17 prev_psk=(nil)
1584891748.799037: Searching a PSK for 24:18:1d:3e:02:17 prev_psk=(nil)
1584891748.799067: WPA: 24:18:1d:3e:02:17 WPA_PTK entering state PTKSTART
1584891748.799116: 1584891748.799120: wlan0: STA 24:18:1d:3e:02:17 WPA: sending 1/4 msg of 4-Way Handshake
1584891748.799147: WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=1 kde_len=0 keyidx=0 encr=0)
1584891748.799183: WPA: Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 01
1584891748.799276: WPA: Use EAPOL-Key timeout of 1000 ms (retry counter 1)
1584891748.799315: wlan0: hostapd_new_assoc_sta: reschedule ap_handle_timer timeout for 24:18:1d:3e:02:17 (300 seconds - ap_max_inactivity)
1584891749.268818: wlan0: Event EAPOL_RX (24) received
1584891749.268917: IEEE 802.1X: 121 bytes from 24:18:1d:3e:02:17
1584891749.268990: IEEE 802.1X: version=1 type=3 length=117
1584891749.269020: WPA: Received EAPOL-Key from 24:18:1d:3e:02:17 key_info=0x10a type=2 key_data_length=22
1584891749.269055: WPA: Received Key Nonce - hexdump(len=32): c9 37 f6 67 1d b2 0a 07 c7 dc 5a 0d 66 7d 65 6f be 9c b9 36 4a bb b8 14 46 b7 02 e0 fb 8b 53 cd
1584891749.269135: WPA: Received Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 01
1584891749.269208: 1584891749.269213: wlan0: STA 24:18:1d:3e:02:17 WPA: received EAPOL-Key frame (2/4 Pairwise)
1584891749.269249: WPA: 24:18:1d:3e:02:17 WPA_PTK entering state PTKCALCNEGOTIATING
1584891749.269281: Searching a PSK for 24:18:1d:3e:02:17 prev_psk=(nil)
1584891749.269421: WPA: PTK derivation - A1=b8:27:eb:16:72:ee A2=24:18:1d:3e:02:17
1584891749.269460: WPA: Nonce1 - hexdump(len=32): 81 fc d9 a4 cf 29 1f b7 46 a9 b1 c9 12 a6 b3 74 ce f5 78 bd 85 5e 59 07 32 4e 36 82 f0 6a 8f 85
1584891749.269539: WPA: Nonce2 - hexdump(len=32): c9 37 f6 67 1d b2 0a 07 c7 dc 5a 0d 66 7d 65 6f be 9c b9 36 4a bb b8 14 46 b7 02 e0 fb 8b 53 cd
1584891749.269617: WPA: PMK - hexdump(len=32): [REMOVED]
1584891749.269643: WPA: PTK - hexdump(len=48): [REMOVED]
1584891749.269668: WPA: KCK - hexdump(len=16): [REMOVED]
1584891749.269692: WPA: KEK - hexdump(len=16): [REMOVED]
1584891749.269717: WPA: TK - hexdump(len=16): [REMOVED]
1584891749.269779: WPA: 24:18:1d:3e:02:17 WPA_PTK entering state PTKCALCNEGOTIATING2
1584891749.269812: WPA: 24:18:1d:3e:02:17 WPA_PTK entering state PTKINITNEGOTIATING
1584891749.270721: 1584891749.270727: wlan0: STA 24:18:1d:3e:02:17 WPA: sending 3/4 msg of 4-Way Handshake
1584891749.270764: WPA: Send EAPOL(version=2 secure=1 mic=1 ack=1 install=1 pairwise=1 kde_len=46 keyidx=1 encr=1)
1584891749.270802: WPA: Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 02
1584891749.270844: Plaintext EAPOL-Key Key Data - hexdump(len=56): [REMOVED]
1584891749.271200: WPA: Use EAPOL-Key timeout of 1000 ms (retry counter 1)
1584891749.286665: wlan0: Event EAPOL_RX (24) received
1584891749.286736: IEEE 802.1X: 99 bytes from 24:18:1d:3e:02:17
1584891749.286770: IEEE 802.1X: version=1 type=3 length=95
1584891749.286798: WPA: Received EAPOL-Key from 24:18:1d:3e:02:17 key_info=0x30a type=2 key_data_length=0
1584891749.286831: WPA: Received Key Nonce - hexdump(len=32): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1584891749.286913: WPA: Received Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 02
1584891749.286977: 1584891749.286981: wlan0: STA 24:18:1d:3e:02:17 WPA: received EAPOL-Key frame (4/4 Pairwise)
1584891749.287063: WPA: 24:18:1d:3e:02:17 WPA_PTK entering state PTKINITDONE
1584891749.287185: wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=3 addr=0x1d20fe0 key_idx=0 set_tx=1 seq_len=0 key_len=16
1584891749.287245: nl80211: KEY_DATA - hexdump(len=16): [REMOVED]
1584891749.287273: addr=24:18:1d:3e:02:17
1584891749.288009: wlan0: AP-STA-CONNECTED 24:18:1d:3e:02:17
1584891749.288041: nl80211: Set STA flags - ifname=wlan0 addr=24:18:1d:3e:02:17 total_flags=0x61 flags_or=0x1 flags_and=0xffffffff authorized=1
1584891749.288607: 1584891749.288612: wlan0: STA 24:18:1d:3e:02:17 IEEE 802.1X: authorizing port
1584891749.288665: 1584891749.288669: wlan0: STA 24:18:1d:3e:02:17 RADIUS: starting accounting session 9D56AEC13C246688
1584891749.288806: 1584891749.288810: wlan0: STA 24:18:1d:3e:02:17 WPA: pairwise key handshake completed (RSN)
1584891763.679002: nl80211: Event message available
1584891763.679180: nl80211: Drv Event 19 (NL80211_CMD_NEW_STATION) received for wlan0
1584891763.679214: nl80211: New station 44:07:0b:8c:8b:e9
1584891763.679247: nl80211: Assoc Req IEs - hexdump(len=99): 00 0d 72 61 73 70 69 2d 68 6f 74 73 70 6f 74 01 08 02 04 0b 0c 12 16 18 24 21 02 08 15 24 02 01 0d 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00 32 04 30 48 60 6c 2d 1a 20 00 03 ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 08 e0 e1 09 00 7f 08 00 00 00 00 20 00 00 40
1584891763.679462: wlan0: Event ASSOC (0) received
1584891763.679508: 1584891763.679512: wlan0: STA 44:07:0b:8c:8b:e9 IEEE 802.11: associated
1584891763.679611: STA included RSN IE in (Re)AssocReq
1584891763.679639: New STA
1584891763.679974: ap_sta_add: register ap_handle_timer timeout for 44:07:0b:8c:8b:e9 (300 seconds - ap_max_inactivity)
1584891763.680037: nl80211: Set STA flags - ifname=wlan0 addr=44:07:0b:8c:8b:e9 total_flags=0x60 flags_or=0x0 flags_and=0xfffffff1 authorized=0
1584891763.680198: 1584891763.680202: wlan0: STA 44:07:0b:8c:8b:e9 WPA: event 1 notification
1584891763.680310: wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=0x1d21558 key_idx=0 set_tx=1 seq_len=0 key_len=0
1584891763.680358: addr=44:07:0b:8c:8b:e9
1584891763.684651: IEEE 802.1X: Ignore STA - 802.1X not enabled or forced for WPS
1584891763.684739: 1584891763.684744: wlan0: STA 44:07:0b:8c:8b:e9 WPA: start authentication
1584891763.684772: WPA: 44:07:0b:8c:8b:e9 WPA_PTK entering state INITIALIZE
1584891763.684876: wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=0x1d21558 key_idx=0 set_tx=1 seq_len=0 key_len=0
1584891763.684926: addr=44:07:0b:8c:8b:e9
1584891763.685030: nl80211: set_key failed; err=-22 Invalid argument)
1584891763.685064: nl80211: Set STA flags - ifname=wlan0 addr=44:07:0b:8c:8b:e9 total_flags=0x60 flags_or=0x0 flags_and=0xfffffffe authorized=0
1584891763.685704: 1584891763.685709: wlan0: STA 44:07:0b:8c:8b:e9 IEEE 802.1X: unauthorizing port
1584891763.685741: WPA: 44:07:0b:8c:8b:e9 WPA_PTK_GROUP entering state IDLE
1584891763.685774: WPA: 44:07:0b:8c:8b:e9 WPA_PTK entering state AUTHENTICATION
1584891763.685807: WPA: 44:07:0b:8c:8b:e9 WPA_PTK entering state AUTHENTICATION2
1584891763.685837: Get randomness: len=32 entropy=2
1584891763.686274: WPA: Assign ANonce - hexdump(len=32): 9f ab bb 79 8f 38 25 0f a2 a6 7c 59 3d 58 bb b6 bd a6 f5 69 b4 16 c9 78 08 f4 2d 3f 01 fb 7a 92
1584891763.686360: WPA: 44:07:0b:8c:8b:e9 WPA_PTK entering state INITPSK
1584891763.686392: Searching a PSK for 44:07:0b:8c:8b:e9 prev_psk=(nil)
1584891763.686425: Searching a PSK for 44:07:0b:8c:8b:e9 prev_psk=(nil)
1584891763.686454: WPA: 44:07:0b:8c:8b:e9 WPA_PTK entering state PTKSTART
1584891763.686498: 1584891763.686502: wlan0: STA 44:07:0b:8c:8b:e9 WPA: sending 1/4 msg of 4-Way Handshake
1584891763.686529: WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=1 kde_len=0 keyidx=0 encr=0)
1584891763.686565: WPA: Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 01
1584891763.686658: WPA: Use EAPOL-Key timeout of 1000 ms (retry counter 1)
1584891763.686697: wlan0: hostapd_new_assoc_sta: reschedule ap_handle_timer timeout for 44:07:0b:8c:8b:e9 (300 seconds - ap_max_inactivity)
1584891763.693800: wlan0: Event EAPOL_RX (24) received
1584891763.693843: IEEE 802.1X: 121 bytes from 44:07:0b:8c:8b:e9
1584891763.693876: IEEE 802.1X: version=1 type=3 length=117
1584891763.693903: WPA: Received EAPOL-Key from 44:07:0b:8c:8b:e9 key_info=0x10a type=2 key_data_length=22
1584891763.693936: WPA: Received Key Nonce - hexdump(len=32): c6 08 04 e4 0c 2d 4e 53 25 1b 36 f6 67 bb 9f 58 99 29 0a a2 4f b4 29 24 0b 45 07 46 ee 49 e9 09
1584891763.694014: WPA: Received Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 01
1584891763.694142: 1584891763.694146: wlan0: STA 44:07:0b:8c:8b:e9 WPA: received EAPOL-Key frame (2/4 Pairwise)
1584891763.694180: WPA: 44:07:0b:8c:8b:e9 WPA_PTK entering state PTKCALCNEGOTIATING
1584891763.694211: Searching a PSK for 44:07:0b:8c:8b:e9 prev_psk=(nil)
1584891763.694335: WPA: PTK derivation - A1=b8:27:eb:16:72:ee A2=44:07:0b:8c:8b:e9
1584891763.694374: WPA: Nonce1 - hexdump(len=32): 9f ab bb 79 8f 38 25 0f a2 a6 7c 59 3d 58 bb b6 bd a6 f5 69 b4 16 c9 78 08 f4 2d 3f 01 fb 7a 92
1584891763.694452: WPA: Nonce2 - hexdump(len=32): c6 08 04 e4 0c 2d 4e 53 25 1b 36 f6 67 bb 9f 58 99 29 0a a2 4f b4 29 24 0b 45 07 46 ee 49 e9 09
1584891763.694531: WPA: PMK - hexdump(len=32): [REMOVED]
1584891763.694556: WPA: PTK - hexdump(len=48): [REMOVED]
1584891763.694580: WPA: KCK - hexdump(len=16): [REMOVED]
1584891763.694605: WPA: KEK - hexdump(len=16): [REMOVED]
1584891763.694630: WPA: TK - hexdump(len=16): [REMOVED]
1584891763.694688: WPA: 44:07:0b:8c:8b:e9 WPA_PTK entering state PTKCALCNEGOTIATING2
1584891763.694721: WPA: 44:07:0b:8c:8b:e9 WPA_PTK entering state PTKINITNEGOTIATING
1584891763.695538: 1584891763.695542: wlan0: STA 44:07:0b:8c:8b:e9 WPA: sending 3/4 msg of 4-Way Handshake
1584891763.695577: WPA: Send EAPOL(version=2 secure=1 mic=1 ack=1 install=1 pairwise=1 kde_len=46 keyidx=1 encr=1)
1584891763.695614: WPA: Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 02
1584891763.695656: Plaintext EAPOL-Key Key Data - hexdump(len=56): [REMOVED]
1584891763.695790: WPA: Use EAPOL-Key timeout of 1000 ms (retry counter 1)
1584891763.700393: wlan0: Event EAPOL_RX (24) received
1584891763.700424: IEEE 802.1X: 99 bytes from 44:07:0b:8c:8b:e9
1584891763.700456: IEEE 802.1X: version=1 type=3 length=95
1584891763.700483: WPA: Received EAPOL-Key from 44:07:0b:8c:8b:e9 key_info=0x30a type=2 key_data_length=0
1584891763.700516: WPA: Received Key Nonce - hexdump(len=32): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
1584891763.700597: WPA: Received Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 02
1584891763.700654: 1584891763.700658: wlan0: STA 44:07:0b:8c:8b:e9 WPA: received EAPOL-Key frame (4/4 Pairwise)
1584891763.700720: WPA: 44:07:0b:8c:8b:e9 WPA_PTK entering state PTKINITDONE
1584891763.700801: wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=3 addr=0x1d21558 key_idx=0 set_tx=1 seq_len=0 key_len=16
1584891763.700851: nl80211: KEY_DATA - hexdump(len=16): [REMOVED]
1584891763.700879: addr=44:07:0b:8c:8b:e9
1584891763.701516: wlan0: AP-STA-CONNECTED 44:07:0b:8c:8b:e9
1584891763.701547: nl80211: Set STA flags - ifname=wlan0 addr=44:07:0b:8c:8b:e9 total_flags=0x61 flags_or=0x1 flags_and=0xffffffff authorized=1
1584891763.702025: 1584891763.702029: wlan0: STA 44:07:0b:8c:8b:e9 IEEE 802.1X: authorizing port
1584891763.702080: 1584891763.702084: wlan0: STA 44:07:0b:8c:8b:e9 RADIUS: starting accounting session D6D4AEE3C4DA0DFC
1584891763.702200: 1584891763.702204: wlan0: STA 44:07:0b:8c:8b:e9 WPA: pairwise key handshake completed (RSN)
1584891788.544137: nl80211: Event message available
1584891788.544333: nl80211: Drv Event 20 (NL80211_CMD_DEL_STATION) received for wlan0
1584891788.544372: nl80211: Delete station 24:18:1d:3e:02:17
1584891788.544421: wlan0: Event DISASSOC (1) received
1584891788.544469: 1584891788.544474: wlan0: STA 24:18:1d:3e:02:17 IEEE 802.11: disassociated
1584891788.544594: wlan0: AP-STA-DISCONNECTED 24:18:1d:3e:02:17
1584891788.544645: 1584891788.544650: wlan0: STA 24:18:1d:3e:02:17 WPA: event 2 notification
1584891788.544766: wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=0x1d20fe0 key_idx=0 set_tx=1 seq_len=0 key_len=0
1584891788.544825: addr=24:18:1d:3e:02:17
1584891788.545606: WPA: 24:18:1d:3e:02:17 WPA_PTK entering state DISCONNECTED
1584891788.545660: WPA: 24:18:1d:3e:02:17 WPA_PTK entering state INITIALIZE
1584891788.545754: wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=0x1d20fe0 key_idx=0 set_tx=1 seq_len=0 key_len=0
1584891788.545807: addr=24:18:1d:3e:02:17
1584891788.545983: nl80211: set_key failed; err=-22 Invalid argument)
1584891788.546019: nl80211: Set STA flags - ifname=wlan0 addr=24:18:1d:3e:02:17 total_flags=0x0 flags_or=0x0 flags_and=0xfffffffe authorized=0
1584891788.546669: 1584891788.546676: wlan0: STA 24:18:1d:3e:02:17 IEEE 802.1X: unauthorizing port
1584891788.547217: nl80211: sta_remove -> DEL_STATION wlan0 24:18:1d:3e:02:17 --> 0 (Success)
1584891788.547263: ap_free_sta: cancel ap_handle_timer for 24:18:1d:3e:02:17
1584891791.182055: nl80211: Event message available
1584891791.182219: nl80211: Drv Event 20 (NL80211_CMD_DEL_STATION) received for wlan0
1584891791.182254: nl80211: Delete station 44:07:0b:8c:8b:e9
1584891791.182300: wlan0: Event DISASSOC (1) received
1584891791.182344: 1584891791.182348: wlan0: STA 44:07:0b:8c:8b:e9 IEEE 802.11: disassociated
1584891791.182464: wlan0: AP-STA-DISCONNECTED 44:07:0b:8c:8b:e9
1584891791.182511: 1584891791.182516: wlan0: STA 44:07:0b:8c:8b:e9 WPA: event 2 notification
1584891791.182709: wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=0x1d21558 key_idx=0 set_tx=1 seq_len=0 key_len=0
1584891791.182777: addr=44:07:0b:8c:8b:e9
1584891791.182920: nl80211: set_key failed; err=-22 Invalid argument)
1584891791.182955: WPA: 44:07:0b:8c:8b:e9 WPA_PTK entering state DISCONNECTED
1584891791.182988: WPA: 44:07:0b:8c:8b:e9 WPA_PTK entering state INITIALIZE
1584891791.183076: wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=0x1d21558 key_idx=0 set_tx=1 seq_len=0 key_len=0
1584891791.183124: addr=44:07:0b:8c:8b:e9
1584891791.183220: nl80211: set_key failed; err=-22 Invalid argument)
1584891791.183255: nl80211: Set STA flags - ifname=wlan0 addr=44:07:0b:8c:8b:e9 total_flags=0x0 flags_or=0x0 flags_and=0xfffffffe authorized=0
1584891791.183947: 1584891791.183953: wlan0: STA 44:07:0b:8c:8b:e9 IEEE 802.1X: unauthorizing port
1584891791.184521: nl80211: sta_remove -> DEL_STATION wlan0 44:07:0b:8c:8b:e9 --> 0 (Success)
1584891791.184576: ap_free_sta: cancel ap_handle_timer for 44:07:0b:8c:8b:e9
1584891791.184666: nl80211: Event message available
1584891791.184722: nl80211: Drv Event 20 (NL80211_CMD_DEL_STATION) received for wlan0
1584891791.184752: nl80211: Delete station 44:07:0b:8c:8b:e9
1584891791.184794: wlan0: Event DISASSOC (1) received
1584891791.184834: 1584891791.184839: wlan0: STA 44:07:0b:8c:8b:e9 IEEE 802.11: disassociated
1584891791.184931: Disassociation notification for unknown STA 44:07:0b:8c:8b:e9 |
Voici la conf que j'utilise :
Version hostapd : 2.6
hostapd.conf
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
driver=nl80211
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
auth_algs=1
wpa_key_mgmt=WPA-PSK
beacon_int=100
ssid=raspi-hotspot
channel=1
hw_mode=g
ieee80211n=0
wpa_passphrase=azerty
interface=wlan0
wpa=2
wpa_pairwise=CCMP
country_code=FR
ignore_broadcast_ssid=0 |
dhcpcd.conf :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
# It is possible to fall back to a static IP if DHCP fails:
# define static profile
#profile static_eth0
#static ip_address=192.168.1.23/24
#static routers=192.168.1.1
static domain_name_servers=8.8.8.8
# fallback to static profile on eth0
#interface eth0
#fallback static_eth0
interface wlan0
# It is possible to fall back to a static IP if DHCP fails:
# define static profile
#profile static_eth0
#static ip_address=192.168.1.23/24
#static routers=192.168.1.1
static domain_name_servers=8.8.8.8
# fallback to static profile on eth0
#interface eth0
#fallback static_eth0
interface wlan0
static ip_address=10.3.141.1/16
nohook wpa_supplicant |
iptables côté rapsberry :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
*filter
:INPUT ACCEPT [62360:63158728]
:FORWARD ACCEPT [126:15480]
:OUTPUT ACCEPT [41506:2832507]
-A FORWARD -i wlan0 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
COMMIT
# Completed on Sun Mar 22 18:42:57 2020
# Generated by iptables-save v1.6.0 on Sun Mar 22 18:42:57 2020
*nat
:PREROUTING ACCEPT [227:38253]
:INPUT ACCEPT [123:27967]
:OUTPUT ACCEPT [2026:137360]
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -j MASQUERADE
-A POSTROUTING -s 192.168.50.0/24 ! -d 192.168.50.0/24 -j MASQUERADE
-A POSTROUTING -o eth0 -j MASQUERADE
-A POSTROUTING -o wlan0 -j MASQUERADE
COMMIT |
iptables côté pc portable :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| *filter
:INPUT ACCEPT [83207:68203602]
:FORWARD ACCEPT [81343:102618219]
:OUTPUT ACCEPT [82550:10280266]
-A FORWARD -i enp4s0 -o wlp3s0 -p tcp -m tcp --dport 80 -j ACCEPT
COMMIT
# Completed on Sun Mar 22 18:43:56 2020
# Generated by iptables-save v1.6.1 on Sun Mar 22 18:43:56 2020
*nat
:PREROUTING ACCEPT [2137:276273]
:INPUT ACCEPT [1177:176232]
:OUTPUT ACCEPT [6780:490029]
:POSTROUTING ACCEPT [2142:163852]
-A POSTROUTING -o wlp3s0 -j SNAT --to-source 10.188.22.202
COMMIT |