Jump to content
Noob ody

Hostapd doesn't work after a mac address change

Recommended Posts

Hello

I'm trying to setup a evil twin AP using hostapd and dnsmasq. Without changing the MAC address, i was able to connect to it with my other device but as soon as i changed MAC address of my wireless interface hostapd doesn't seem to work anymore. Any kind of help would be appreciated. 

Share this post


Link to post
Share on other sites

I know one little trick to try, it's worked for me in the past, for some reason I've noticed that wifi MAC addresses don't like the first number to be odd. when you change the address, try making the first number even like 00:XX:XX:XX:XX:XX.

It's a simple thing to try without more info.

Share this post


Link to post
Share on other sites

CHi kdodge

Thanks for replying.

Here are the commands I am using:

ifconfig wlan0 down

macchanger -r wlan0

ifconfig wlan0 up

systemctl stop NetworkManager

systemctl stop wpa_supplicant

hostapd hostapd.conf

dnsmasq -C dnsmasq.conf -d

ifconfig wlan0 1920168.43.1 netmask 255.255.255.0

 

Share this post


Link to post
Share on other sites

I tried  using "hostapd hostapd.conf -dd" command instead to get debug information and the following was it's output:

 

Ignore Probe Request due to DS Params mismatch: chan=6 != ds.chan=7
nl80211: Event message available
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan0
nl80211: MLME event 59 (NL80211_CMD_FRAME) on wlan0(98:22:ef:02:64:6b) A1=ff:ff:ff:ff:ff:ff A2=2a:6d:83:f1:b7:66
nl80211: MLME event frame - hexdump(len=106): 40 00 00 00 ff ff ff ff ff ff 2a 6d 83 f1 b7 66 ff ff ff ff ff ff e0 b9 00 00 01 08 02 04 0b 0c 12 16 18 24 32 04 30 48 60 6c 03 01 07 2d 1a 6f 01 17 ff 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7f 08 00 00 00 00 00 00 00 40 bf 0c 31 71 00 03 fe ff 00 00 fe ff 00 00 dd 07 00 50 f2 08 00 13 00
nl80211: Frame event
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=2a:6d:83:f1:b7:66 bssid=ff:ff:ff:ff:ff:ff freq=2437 ssi_signal=-22 fc=0x40 seq_ctrl=0xb9e0 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=106
Ignore Probe Request due to DS Params mismatch: chan=6 != ds.chan=7

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...