Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Strony: 1
Cześć
Jest sobie Gentuś w PieCu, ma podpiętą do USB kartę Tp-Link 722N, i udostępnia neta do Nexusa 7 2013 z najnowszym stabilnym Andkiem.
Konfiguracja:
tworzenie mostka:
brctl delbr br0 2>/dev/null iw dev wlan0 interface add wlan0_sta type managed addr ec:08:6b:17:66:e2 iw dev wlan0 interface add wlan0_ap type managed addr ec:08:6b:17:66:e3 ifconfig wlan0 up brctl addbr br0 2>/dev/null brctl setfd br0 1 2>/dev/null brctl addif br0 lan 2>/dev/null brctl addif br0 wlan0_ap 2>/dev/null ifconfig br0 192.168.0.1 netmask 255.255.255.0 2>/dev/null ifconfig br0 up 2>/dev/null exit 0;
konfig hostpad:
interface=wlan0_ap bridge=br0 driver=nl80211 hw_mode=g ieee80211n=1 wmm_enabled=1 channel=2 country_code=PL ieee80211d=1 ssid=test_andka auth_algs=3 wpa=3 wpa_passphrase=abc98765 wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP rsn_pairwise=CCMP macaddr_acl=0 ht_capab=[HT20][SHORT-GI-20] eap_reauth_period=360000000 ignore_broadcast_ssid=0 logger_syslog=-1
Łączy podręcznikowo:
2016-09-03T12:39:53.011160+02:00 localhost hostapd: wlan0_ap: STA {ORYGINALNY_MAC} IEEE 802.11: authenticated Sep 3 12:39:53 localhost hostapd: wlan0_ap: STA {ORYGINALNY_MAC} IEEE 802.11: authenticated 2016-09-03T12:39:53.014651+02:00 localhost hostapd: wlan0_ap: STA {ORYGINALNY_MAC} IEEE 802.11: associated (aid 1) Sep 3 12:39:53 localhost hostapd: wlan0_ap: STA {ORYGINALNY_MAC} IEEE 802.11: associated (aid 1) 2016-09-03T12:39:53.041927+02:00 localhost hostapd: wlan0_ap: STA {ORYGINALNY_MAC} RADIUS: starting accounting session 70687FB9-00000003 Sep 3 12:39:53 localhost hostapd: wlan0_ap: STA {ORYGINALNY_MAC} RADIUS: starting accounting session 70687FB9-00000003 2016-09-03T12:39:53.041949+02:00 localhost hostapd: wlan0_ap: STA {ORYGINALNY_MAC} WPA: pairwise key handshake completed (RSN) Sep 3 12:39:53 localhost hostapd: wlan0_ap: STA {ORYGINALNY_MAC} WPA: pairwise key handshake completed (RSN) 2016-09-03T12:39:53.273257+02:00 localhost dhcpd: uid lease 192.168.0.10 for client {ORYGINALNY_MAC} is duplicate on 192.168.0.0/16 2016-09-03T12:39:53.273296+02:00 localhost dhcpd: DHCPREQUEST for 192.168.0.7 from {ORYGINALNY_MAC} via br0 2016-09-03T12:39:53.273321+02:00 localhost dhcpd: DHCPACK on 192.168.0.7 to {ORYGINALNY_MAC} via br0 Sep 3 12:39:53 localhost dhcpd: uid lease 192.168.0.10 for client {ORYGINALNY_MAC} is duplicate on 192.168.0.0/16 Sep 3 12:39:53 localhost dhcpd: DHCPREQUEST for 192.168.0.7 from {ORYGINALNY_MAC} via br0 Sep 3 12:39:53 localhost dhcpd: DHCPACK on 192.168.0.7 to {ORYGINALNY_MAC} via br0
Jako że z tym Nexusem włóczę się po różnych dziwnych hotspotach, to zachciało mi się mieć na nim losowy mac adress.
Kidy jednak zmienię mac w Andku w taki sposób:
svc wifi disable busybox ifconfig wlan0 down busybox ifconfig wlan0 hw ether 6b:69:b6:4e:0e:59 busybox ifconfig wlan0 up svc wifi enable
to kończą się żarty, a zaczynają schody:
hostapd melduje:
2016-09-03T12:41:30.225084+02:00 localhost hostapd: wlan0_ap: STA {ORYGINALNY_MAC} IEEE 802.11: authenticated Sep 3 12:41:30 localhost hostapd: wlan0_ap: STA {ORYGINALNY_MAC} IEEE 802.11: authenticated 2016-09-03T12:41:30.228619+02:00 localhost hostapd: wlan0_ap: STA {ORYGINALNY_MAC} IEEE 802.11: associated (aid 1) Sep 3 12:41:30 localhost hostapd: wlan0_ap: STA {ORYGINALNY_MAC} IEEE 802.11: associated (aid 1) 2016-09-03T12:41:39.237166+02:00 localhost hostapd: wlan0_ap: STA {ORYGINALNY_MAC} IEEE 802.11: deauthenticated due to local deauth request Sep 3 12:41:39 localhost hostapd: wlan0_ap: STA {ORYGINALNY_MAC} IEEE 802.11: deauthenticated due to local deauth request 2016-09-03T12:41:41.829074+02:00 localhost hostapd: wlan0_ap: STA {ORYGINALNY_MAC} IEEE 802.11: authenticated Sep 3 12:41:41 localhost hostapd: wlan0_ap: STA {ORYGINALNY_MAC} IEEE 802.11: authenticated 2016-09-03T12:41:41.832557+02:00 localhost hostapd: wlan0_ap: STA {ORYGINALNY_MAC} IEEE 802.11: associated (aid 1) Sep 3 12:41:41 localhost hostapd: wlan0_ap: STA {ORYGINALNY_MAC} IEEE 802.11: associated (aid 1) 2016-09-03T12:41:50.837223+02:00 localhost hostapd: wlan0_ap: STA {ORYGINALNY_MAC} IEEE 802.11: deauthenticated due to local deauth request Sep 3 12:41:50 localhost hostapd: wlan0_ap: STA {ORYGINALNY_MAC} IEEE 802.11: deauthenticated due to local deauth request 2016-09-03T12:41:53.476068+02:00 localhost hostapd: wlan0_ap: STA {ORYGINALNY_MAC} IEEE 802.11: authenticated Sep 3 12:41:53 localhost hostapd: wlan0_ap: STA {ORYGINALNY_MAC} IEEE 802.11: authenticated 2016-09-03T12:41:53.479441+02:00 localhost hostapd: wlan0_ap: STA {ORYGINALNY_MAC} IEEE 802.11: associated (aid 1) Sep 3 12:41:53 localhost hostapd: wlan0_ap: STA {ORYGINALNY_MAC} IEEE 802.11: associated (aid 1)
W logach Andka w tym samym czasie się gotuje:
09-03 12:44:17.628 20037 20037 I wpa_supplicant: wlan0: Trying to associate with SSID 'test_andka' 09-03 12:44:17.633 754 805 D WifiStateMachine: ConnectModeState SSID state=re-enabled nid=1 [id=1 ssid="test_andka"] 09-03 12:44:17.633 754 805 E WifiConfigStore: Ignoring SSID re-enabled from supplicant: "test_andka"WPA_PSK had autoJoinStatus=0 self added false ephemeral false 09-03 12:44:21.678 20037 20037 I wpa_supplicant: wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=1 ssid="test_andka" auth_failures=1 duration=10 reason=WRONG_KEY 09-03 12:44:21.679 754 805 D WifiStateMachine: ConnectModeState SSID state=temp-disabled nid=1 [id=1 ssid="test_andka" auth_failures=1 duration=10 reason=WRONG_KEY] 09-03 12:44:21.679 754 805 E WifiConfigStore: SSID temp disabled for "test_andka"WPA_PSK had autoJoinStatus=0 self added false ephemeral false 09-03 12:44:21.679 754 805 E WifiConfigStore: message=id=1 ssid="test_andka" auth_failures=1 duration=10 reason=WRONG_KEY 09-03 12:44:29.249 754 805 E WifiConfigStore: saveWifiConfigBSSID Setting BSSID for "test_andka"WPA_PSK to any 09-03 12:44:29.260 754 805 D WifiStateMachine: CMD_AUTO_CONNECT will save config -> "test_andka" nid=1 09-03 12:44:29.303 20037 20037 I wpa_supplicant: wlan0: CTRL-EVENT-SSID-REENABLED id=1 ssid="test_andka" 09-03 12:44:29.303 20037 20037 I wpa_supplicant: wlan0: Trying to associate with SSID 'test_andka' 09-03 12:44:29.308 754 805 D WifiStateMachine: ConnectModeState SSID state=re-enabled nid=1 [id=1 ssid="test_andka"] 09-03 12:44:29.308 754 805 E WifiConfigStore: Ignoring SSID re-enabled from supplicant: "test_andka"WPA_PSK had autoJoinStatus=0 self added false ephemeral false 09-03 12:44:33.367 20037 20037 I wpa_supplicant: wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=1 ssid="test_andka" auth_failures=1 duration=10 reason=WRONG_KEY 09-03 12:44:33.374 754 805 D WifiStateMachine: ConnectModeState SSID state=temp-disabled nid=1 [id=1 ssid="test_andka" auth_failures=1 duration=10 reason=WRONG_KEY] 09-03 12:44:33.375 754 805 E WifiConfigStore: SSID temp disabled for "test_andka"WPA_PSK had autoJoinStatus=0 self added false ephemeral false 09-03 12:44:33.375 754 805 E WifiConfigStore: message=id=1 ssid="test_andka" auth_failures=1 duration=10 reason=WRONG_KEY 09-03 12:44:40.883 754 805 E WifiConfigStore: saveWifiConfigBSSID Setting BSSID for "test_andka"WPA_PSK to any 09-03 12:44:40.897 754 805 D WifiStateMachine: CMD_AUTO_CONNECT will save config -> "test_andka" nid=1 09-03 12:44:40.959 20037 20037 I wpa_supplicant: wlan0: CTRL-EVENT-SSID-REENABLED id=1 ssid="test_andka" 09-03 12:44:40.960 20037 20037 I wpa_supplicant: wlan0: Trying to associate with SSID 'test_andka' 09-03 12:44:40.964 754 805 D WifiStateMachine: ConnectModeState SSID state=re-enabled nid=1 [id=1 ssid="test_andka"] 09-03 12:44:40.964 754 805 E WifiConfigStore: Ignoring SSID re-enabled from supplicant: "test_andka"WPA_PSK had autoJoinStatus=0 self added false ephemeral false 09-03 12:44:45.016 20037 20037 I wpa_supplicant: wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=1 ssid="test_andka" auth_failures=1 duration=10 reason=WRONG_KEY 09-03 12:44:45.025 754 805 D WifiStateMachine: ConnectModeState SSID state=temp-disabled nid=1 [id=1 ssid="test_andka" auth_failures=1 duration=10 reason=WRONG_KEY] 09-03 12:44:45.025 754 805 E WifiConfigStore: SSID temp disabled for "test_andka"WPA_PSK had autoJoinStatus=0 self added false ephemeral false 09-03 12:44:45.025 754 805 E WifiConfigStore: message=id=1 ssid="test_andka" auth_failures=1 duration=10 reason=WRONG_KEY 09-03 12:44:52.557 754 805 E WifiConfigStore: saveWifiConfigBSSID Setting BSSID for "test_andka"WPA_PSK to any 09-03 12:44:52.580 754 805 D WifiStateMachine: CMD_AUTO_CONNECT will save config -> "test_andka" nid=1 09-03 12:44:52.627 20037 20037 I wpa_supplicant: wlan0: CTRL-EVENT-SSID-REENABLED id=1 ssid="test_andka"
Próbowałem po zmianie macu w Andku zapominać i ponownie dodawać sieć, ale nic nie pomaga,
próbowałem przed odpaleniem sieci w Andku restartować hostpad, kombinowałem jak koń pod górę, nic nie pomaga.
co ciekawe, w logach hostpad nie ma ani śladu nowego Mac-addresu Andka.
Zastanawiam się, czy do danej sieci jest przypisywany jakiś ticket który jest sprawdzany przy ponownym łączeniu, czy co innego?
Wszelkie uwagi i pomysły mile widziane. ;)
PS:
Różne andkowe wtyczki typu Pry-FI poległy w takich samych okolicznościach próbując starcia z moim hostapd. ;P
EDIT:
Android 6 ma coś namieszane, na domyślnym romie po odpaleniu [b]svc wifi enable[/b] zmieniał mac na oryginalny, ale nie pokazywał tj zmiany ifconfig, na CyanogenMod-13 [b]svc enable wifi[/b] przywraca oryginalny mac-adress karty.
Pozdro
Ostatnio edytowany przez Jacekalex (2016-09-03 18:37:05)
Offline
Strony: 1
Time (s) | Query |
---|---|
0.00011 | SET CHARSET latin2 |
0.00004 | SET NAMES latin2 |
0.00108 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='18.225.95.117' WHERE u.id=1 |
0.00074 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '18.225.95.117', 1738270806) |
0.00046 | SELECT * FROM punbb_online WHERE logged<1738270506 |
0.00147 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=28926 AND t.moved_to IS NULL |
0.00010 | SELECT search_for, replace_with FROM punbb_censoring |
0.00213 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=28926 ORDER BY p.id LIMIT 0,25 |
0.00127 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=28926 |
Total query time: 0.0074 s |