|
|
|
![]() |
|
Strumenti |
![]() |
#21 | |
Member
Iscritto dal: Oct 2009
Messaggi: 83
|
Quote:
Codice:
jtl@pc:$ sudo ifconfig wlan0 up SIOCSIFFLAGS: Unknown error 132 |
|
![]() |
![]() |
![]() |
#22 |
Senior Member
Iscritto dal: Jan 2007
Messaggi: 3603
|
https://bbs.archlinux.org/viewtopic.php?id=81930
qui ce n'è finche' vuoi XD in conclusione dicono di installare i madwifi... http://blog.troyastle.com/2010/05/at...004-lucid.html |
![]() |
![]() |
![]() |
#23 |
Member
Iscritto dal: Oct 2009
Messaggi: 83
|
è possibile che questi problemi (ad esempio quando perdo la connessione quando creo il bridge) siano dovuti al fatto che il mio router non usa il dhcp, ma solo indirizzi fissi?
|
![]() |
![]() |
![]() |
#24 |
Senior Member
Iscritto dal: Jan 2007
Messaggi: 3603
|
no no, quei messaggi di errore sono proprio a livello di driver..
se non usi dhcp ovviamente alla fine devi impostarlo a manina con ifconfig invece di fare "dhcpcd br0" giusto? ma comunque il tuo errore viene fuori ben prima quindi non è quello ![]() hai provato a installare i madwifi? |
![]() |
![]() |
![]() |
#25 | ||
Member
Iscritto dal: Oct 2009
Messaggi: 83
|
Quote:
http://www.su-root.eu/computing/turn...-using-hostapd al punto .2 diceva di dare: Codice:
/etc/rc.d/wicd stop killall dhcpcd Quote:
Non ho ancora provato a installare i mad wifi, poi riporto. |
||
![]() |
![]() |
![]() |
#26 | |
Senior Member
Iscritto dal: Jan 2007
Messaggi: 3603
|
Quote:
sono un paio di righe, con una imposti l'ip e con una il gateway predefinito. dai una letta qui alla sezione "IP Addressing" https://help.ubuntu.com/10.04/server...iguration.html tu al posto di eth0 devi usare br0.. |
|
![]() |
![]() |
![]() |
#27 |
Member
Iscritto dal: Oct 2009
Messaggi: 83
|
Do qualche aggiornamento, anche se forse mi conviene abbandonare:
ho installato i madwifi, il mio hostapd.conf è: Codice:
##### hostapd configuration file ############################################## # Empty lines and lines starting with # are ignored # AP netdevice name (without 'ap' postfix, i.e., wlan0 uses wlan0ap for # management frames); ath0 for madwifi interface=ath0 # In case of madwifi and nl80211 driver interfaces, an additional configuration # parameter, bridge, must be used to notify hostapd if the interface is # included in a bridge. This parameter is not used with Host AP driver. bridge=br0 # Driver interface type (hostap/wired/madwifi/prism54/test/none/nl80211/bsd); # default: hostap). nl80211 is used with all Linux mac80211 drivers. # Use driver=none if building hostapd as a standalone RADIUS server that does # not control any wireless/wired driver. # driver=hostap driver=madwifi [....] http://www.su-root.eu/computing/turn...-using-hostapd ,usando wifi0 al posto di wlan0, ma: Codice:
~$ sudo ifconfig ath0 mode Master mode: Unknown host ifconfig: `--help' gives usage information. Codice:
~$ sudo iwconfig ath0 mode Master Infine il test (fallito): Codice:
~$ sudo hostapd -dd /etc/hostapd/hostapd.conf Configuration file: /etc/hostapd/hostapd.conf ctrl_interface_group=0 Configure bridge br0 for EAPOL traffic. madwifi_set_iface_flags: dev_up=0 madwifi_set_privacy: enabled=0 madwifi_receive_probe_req Enter BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits) SIOCGIWRANGE: WE(compiled)=22 WE(source)=18 enc_capa=0xf ath0: IEEE 802.11 Fetching hardware channel/rate support not supported. Flushing old station entries madwifi_sta_deauth: addr=ff:ff:ff:ff:ff:ff reason_code=3 Deauthenticate all stations madwifi_sta_deauth: addr=ff:ff:ff:ff:ff:ff reason_code=2 madwifi_set_privacy: enabled=0 Mode: IEEE 802.11b Channel: 6 Frequency: 0 MHz madwifi_del_key: addr=00:00:00:00:00:00 key_idx=0 madwifi_del_key: addr=00:00:00:00:00:00 key_idx=1 madwifi_del_key: addr=00:00:00:00:00:00 key_idx=2 madwifi_del_key: addr=00:00:00:00:00:00 key_idx=3 Using interface ath0 with hwaddr [questo l'ho nascosto io] and ssid 'test' madwifi_set_wps_ie buflen = 0 madwifi_set_wps_ie buflen = 0 Using existing control interface directory. ctrl_iface bind(PF_UNIX) failed: Address already in use ctrl_iface exists and seems to be in use - cannot override it Delete '/var/run/hostapd/ath0' manually if it is not used anymore Failed to setup control interface ath0: Unable to setup interface. madwifi_set_iface_flags: dev_up=0 Ultima modifica di JTL : 02-11-2011 alle 11:42. |
![]() |
![]() |
![]() |
#28 | |
Senior Member
Iscritto dal: Jan 2007
Messaggi: 3603
|
è giusto iwconfig mode master.. credo sia un errore di battitura nel tutorial.
Quote:
fai un bel "rm /var/run/hostapd/ath0" quando lanci hostapd controlla sempre con "top" che non ce ne siano altri e in caso devi prima killarli con "killall hostapd" |
|
![]() |
![]() |
![]() |
#29 |
Member
Iscritto dal: Oct 2009
Messaggi: 83
|
Ok forse ce la stiamo facendo...
adesso nel corso della procedura non riporto errori, la connessione del pc funziona ma lo smartohone non vede la rete wi-fi. forse questo mi può aiutare ma non ci capisco granchè... Codice:
~$ ifconfig ath0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:8a inet6 addr: XXXX::XXX:XXXX:XXXX:XXXX/XX Scope:Link UP BROADCAST MULTICAST MTU:2290 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:18 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:1396 (1.3 KB) br0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:8a inet6 addr: XXXX::XXX:XXXX:XXXX:XXXX/XX Scope:Link UP BROADCAST RUNNING MULTICAST MTU:2290 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:468 (468.0 B) eth0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:e9 inet addr:192.168.1.202 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: XXXX::XXX:XXXX:XXXX:XXXX/XX Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:104390 errors:0 dropped:0 overruns:0 frame:0 TX packets:86919 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:113910138 (113.9 MB) TX bytes:11400954 (11.4 MB) Interrupt:27 Base address:0x4000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:8349 errors:0 dropped:0 overruns:0 frame:0 TX packets:8349 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:7295560 (7.2 MB) TX bytes:7295560 (7.2 MB) wifi0 Link encap:UNSPEC HWaddr XX-XX-XX-XX-XX-7A-00-00-00-00-00-00-00-00-00-00 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:360 errors:0 dropped:0 overruns:0 frame:107 TX packets:814 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:280 RX bytes:48076 (48.0 KB) TX bytes:39784 (39.7 KB) Interrupt:16 Codice:
~$ iwconfig lo no wireless extensions. eth0 no wireless extensions. wifi0 no wireless extensions. vboxnet0 no wireless extensions. br0 no wireless extensions. addbr no wireless extensions. ath0 IEEE 802.11g ESSID:"test" Mode:Master Frequency:2.412 GHz Access Point: XX:XX:XX:XX:XX:7A Bit Rate:0 kb/s Tx-Power:16 dBm Sensitivity=1/1 Retry:off RTS thr:off Fragment thr:off Power Management:off Link Quality=0/70 Signal level=-96 dBm Noise level=-96 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 |
![]() |
![]() |
![]() |
#30 | ||
Senior Member
Iscritto dal: Jan 2007
Messaggi: 3603
|
Quote:
l'ip l'hai impostato tu con ifconfig br0 etc etc?? è strano che l'abbia preso la scheda eth0... se funzionasse XD pero' prima di tutto, se il cell non vede la rete siamo a un punto ancora precedente, visto che con gli altri drivers bastava lanciare hostapd e te la vedeva... comunque: Quote:
Ultima modifica di nebbia88 : 02-11-2011 alle 15:46. |
||
![]() |
![]() |
![]() |
#31 |
Senior Member
Iscritto dal: Jan 2007
Messaggi: 3603
|
qui ce n'è uno dove non fà il bridge tra le 2 connessioni, è da provare..
http://www.raphink.info/2009/01/sett...th-wpa-on.html lasciando stare per ora il fatto di abilitare la wpa.. è interessante perche' nel hostapd.conf usa wifi0 come bridge, e forse è quello che sbagliavamo seguendo l'altro... poi ovviamente non facendo il bridge tra wifi e ethernet, configura anche un server dhcp e poi abilita il NAT. in quel modo il pc diventa come un normale router.. è tutto spiegato abbastanza bene... nota che lui fa sempre "cat" per postare i suoi file di config, tu devi aprirli e editarli! |
![]() |
![]() |
![]() |
#32 | |
Member
Iscritto dal: Oct 2009
Messaggi: 83
|
vediamo prima di cominciare a seguire la nuova guida serve un po' di teoria.
eth0 è l'interfaccia della porta ethernet e quella è a posto. con i driver madwifi la situazione sembre essere: -ath0 è l'interfaccia wifi -wifi0 è il bridge tra ath0 e eth0. è corretto? se le cose stanno cosi non devo più usare brctl. Adesso faccio riferiemento all'articolo di su-root, dove sta scritto: Quote:
Ultima modifica di JTL : 02-11-2011 alle 22:14. |
|
![]() |
![]() |
![]() |
#33 |
Senior Member
Iscritto dal: Jan 2007
Messaggi: 3603
|
|
![]() |
![]() |
![]() |
#34 |
Member
Iscritto dal: Oct 2009
Messaggi: 83
|
Non dice niente, se lo prende ma poi hostapd non funziona:
Codice:
~$ sudo hostapd -dd /etc/hostapd/hostapd.conf [sudo] password for jtl: Configuration file: /etc/hostapd/hostapd.conf ctrl_interface_group=0 Configure bridge wifi0 for EAPOL traffic. madwifi_set_iface_flags: dev_up=0 madwifi_set_privacy: enabled=0 madwifi_receive_probe_req Enter BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits) SIOCGIWRANGE: WE(compiled)=22 WE(source)=18 enc_capa=0xf ath0: IEEE 802.11 Fetching hardware channel/rate support not supported. Flushing old station entries madwifi_sta_deauth: addr=ff:ff:ff:ff:ff:ff reason_code=3 Deauthenticate all stations madwifi_sta_deauth: addr=ff:ff:ff:ff:ff:ff reason_code=2 madwifi_set_privacy: enabled=0 Mode: IEEE 802.11b Channel: 6 Frequency: 0 MHz madwifi_del_key: addr=00:00:00:00:00:00 key_idx=0 madwifi_del_key: addr=00:00:00:00:00:00 key_idx=1 madwifi_del_key: addr=00:00:00:00:00:00 key_idx=2 madwifi_del_key: addr=00:00:00:00:00:00 key_idx=3 Using interface ath0 with hwaddr [...] and ssid 'test' madwifi_set_wps_ie buflen = 0 madwifi_set_wps_ie buflen = 0 madwifi_set_iface_flags: dev_up=1 ath0: Setup of interface done. l2_packet_receive - recvfrom: Network is down l2_packet_receive - recvfrom: Network is down l2_packet_receive - recvfrom: Network is down l2_packet_receive - recvfrom: Network is down Wireless event: cmd=0x8b19 len=16 ^Z [1]+ Stopped sudo hostapd -dd /etc/hostapd/hostapd.conf |
![]() |
![]() |
![]() |
#35 | |
Senior Member
Iscritto dal: Jan 2007
Messaggi: 3603
|
Quote:
noto ora, come mai dice mode: IEEE 802.11b??? qui hai messo g vero? Codice:
# Operation mode (a = IEEE 802.11a, b = IEEE 802.11b, g = IEEE 802.11g, # Default: IEEE 802.11b hw_mode=g P.S. ho trovato il tutorial definitivo... è per la mia distro preferita: http://www.murga-linux.com/puppy/viewtopic.php?t=68127 puppy 5.2.. 130MB di iso, con unetbootin puoi farla partire dall'usb, puo' salvarsi su una partizione FAT32, insomma, è perfetta :P più che altro leggendo quello ho avuto qualche conferma! ad esempio che è giusto così: Codice:
wlanconfig ath0 create wlandev wifi0 wlanmode ap Ultima modifica di nebbia88 : 03-11-2011 alle 09:31. |
|
![]() |
![]() |
![]() |
#36 |
Member
Iscritto dal: Oct 2009
Messaggi: 83
|
Ok nebbia, ho messo IEEE 802.11b (la scheda supportasse entrambre...) e adesso hostapd va e la rete viene vista dal dispositivo mobile, senza fare il bridge.
Il problema adesso è che lo smartpohne non riceve un indirizzo IP.. Qualche suggerimento? (serve il bridge)? Per adesso ho lasciando stare la guida sulla (peraltro mitica) Puppy se no mi confondo. ------------ Stamattina all'unversità ho avuto problemi con i madwifi invece... posso scegliere di usare i driver precenti in questi casi? |
![]() |
![]() |
![]() |
#37 | |
Senior Member
Iscritto dal: Jan 2007
Messaggi: 3603
|
Quote:
http://www.raphink.info/2009/01/sett...th-wpa-on.html se vuoi ricaricare gli ath5k dovrebbe bastarti fare rmmod ath_pci e modprobe ath5k anzi.. c'e' da rmmoddare parecchia roba: https://wiki.archlinux.org/index.php...ss_Setup#ath5k ma che problemi ti davano in particolare? Ultima modifica di nebbia88 : 04-11-2011 alle 18:02. |
|
![]() |
![]() |
![]() |
#38 | |
Member
Iscritto dal: Oct 2009
Messaggi: 83
|
Ciao
Quote:
Codice:
jtl@pc:~$ sudo brctl addbr wifi0 device wifi0 already exists; can't create bridge with the same name jtl@pc:~$ sudo brctl addif wifi0 eth0 *** stack smashing detected ***: <unknown> terminated ======= Backtrace: ========= /lib/libc.so.6(__fortify_fail+0x37)[0x7f326ba67217] /lib/libc.so.6(__fortify_fail+0x0)[0x7f326ba671e0] [0x403e75] ======= Memory map: ======== 00400000-00407000 r-xp 00000000 08:05 92294 /usr/sbin/brctl 00606000-00607000 r--p 00006000 08:05 92294 /usr/sbin/brctl 00607000-00608000 rw-p 00007000 08:05 92294 /usr/sbin/brctl 007d5000-007f6000 rw-p 00000000 00:00 0 [heap] 7f326b751000-7f326b767000 r-xp 00000000 08:05 1581072 /lib/libgcc_s.so.1 7f326b767000-7f326b966000 ---p 00016000 08:05 1581072 /lib/libgcc_s.so.1 7f326b966000-7f326b967000 r--p 00015000 08:05 1581072 /lib/libgcc_s.so.1 7f326b967000-7f326b968000 rw-p 00016000 08:05 1581072 /lib/libgcc_s.so.1 7f326b968000-7f326bae2000 r-xp 00000000 08:05 1581089 /lib/libc-2.11.1.so 7f326bae2000-7f326bce1000 ---p 0017a000 08:05 1581089 /lib/libc-2.11.1.so 7f326bce1000-7f326bce5000 r--p 00179000 08:05 1581089 /lib/libc-2.11.1.so 7f326bce5000-7f326bce6000 rw-p 0017d000 08:05 1581089 /lib/libc-2.11.1.so 7f326bce6000-7f326bceb000 rw-p 00000000 00:00 0 7f326bceb000-7f326bd0b000 r-xp 00000000 08:05 1581073 /lib/ld-2.11.1.so 7f326bee2000-7f326bee5000 rw-p 00000000 00:00 0 7f326bf08000-7f326bf0a000 rw-p 00000000 00:00 0 7f326bf0a000-7f326bf0b000 r--p 0001f000 08:05 1581073 /lib/ld-2.11.1.so 7f326bf0b000-7f326bf0c000 rw-p 00020000 08:05 1581073 /lib/ld-2.11.1.so 7f326bf0c000-7f326bf0d000 rw-p 00000000 00:00 0 7fff11167000-7fff1117c000 rw-p 00000000 00:00 0 [stack] 7fff111ff000-7fff11200000 r-xp 00000000 00:00 0 [vdso] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] Aborted ![]() Il network manager andava in tilt (faceva bip-bip-bip-bip.... passando il cursore sulle voci senza premere niente) e non si connetteva alla rete. |
|
![]() |
![]() |
![]() |
#39 |
Senior Member
Iscritto dal: Jan 2007
Messaggi: 3603
|
no io farei:
Codice:
ifconfig eth0 0.0.0.0 up ifconfig ath0 0.0.0.0 up modprobe bridge brctl addbr br0 brctl addif br0 eth0 brctl addif br0 ath0 http://www.murga-linux.com/puppy/viewtopic.php?t=68127 P.S. questo va fatto PRIMA di lanciare hostapd... P.P.S. puo' esser normale che QUEL network manager non funzioni con madwifi ![]() http://www.hackenberger.at/blog/guid...dwifi-drivers/ la prima parte l'hai già fatta, parti da "then install provided debs" Ultima modifica di nebbia88 : 05-11-2011 alle 09:25. |
![]() |
![]() |
![]() |
#40 | |
Member
Iscritto dal: Oct 2009
Messaggi: 83
|
Sto facendo qualche passo indietro:
Quote:
Codice:
sudo ifconfig br0 [indirizzo ip del mio portatile?] netmask 255.255.255.0 Nebbia88, usi Puppy? mi puoi postare il contenuto del tuo hostapd.conf oppure di quello del pacchetto di questo link (murga-linux)? |
|
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 22:37.