X-Git-Url: https://hackdaworld.org/gitweb/?p=lectures%2Fdfb-slides.git;a=blobdiff_plain;f=wlan1%2Fwlan1-content;h=818d163bf8cea1bd9551c8be142843a769bfa8f0;hp=4edb59bee8aa85a1c8ea3e509b402ae731c93a54;hb=56d4b0f73d20f1104a304573aac565db10446262;hpb=c680b6fb2c7abca844c0d2a3ac93114354486c60 diff --git a/wlan1/wlan1-content b/wlan1/wlan1-content index 4edb59b..818d163 100644 --- a/wlan1/wlan1-content +++ b/wlan1/wlan1-content @@ -1,10 +1,3 @@ -# T^WaveLAN -# D^Teil 1: Wireless LAN unter Linux -# A^Benedikt 'Hunz' Heinz, Frank Zirkelbach -# M^hunz@hunz.org, frank@luga.de -# E^Linuxinfotag 2003 -# L^FH-Augsburg - 1 Einfuehrung 1.1 Was ist Wireless LAN? + Drahtlose Netzwerk Technologie @@ -37,22 +30,80 @@ + Client wird auf selbe SSID wie AP konfiguriert (automat.) + Client muss die selben WEPkeys benutzen wie AP + An einem Ethernet koennen mehrere APs angeschlossen werden -# TODO: sniffs! selbe SSID? roaming? was passiert von STA1<->STA2? + # TODO: sniffs! selbe SSID? roaming? was passiert von STA1<->STA2? Bsp.: {Client 1} ~~~ (AP 1)---[Ethernet]---(AP 2) ~~~ {Client 2} 2.3 AdHoc Mode + Nur Wireless Clients ohne AP + daher keine Ethernetverbindung + Clients muessen selben Channel, SSID und WEPkey haben Bsp.: {Client 1} ~~~ {Client 2} ~~~ ... -# TODO: sniffs anguckn + # TODO: sniffs anguckn 2.4 WDS + Mehrere Ethernets ohne direkte Verbindun werden durch AccessPoints verbunden + keine Clients noetig + APs muessen auf selbem Channel sein und die selben WEPkeys haben Bsp.: [Ethernet 1]---(AP 1) ~~~ (AP 2)---[Ethernet 2] - -2^Wireless Hardware und Linux Treiber^Hersteller^Chipsets/Driver -3^Funktionsweise^Channels^Managed Mode^Ad-Hoc Mode^WDS -4^Setup eines Wireless Clients (sta)^pcmcia-cs^wireless_tools^Beispiel Setup -5^Setup eines Wireless Accesspoints (ap)^pcmcia-cs und hostap^wireless_tools^Beispiel Setup -6^Sicherheit^WEP^ACL^Hidden ssid +3 WaveLAN unter Linux + 3.1 Vorraussetzungen + + Kernel + http://www.kernel.org (>=2.4.20 - nicht unbedingt pre/testing/2.5) + hier: kein PCMCIA Support im Kernel sondern pcmcia-cs + Network device support ---> + [*] Network device support + ... + Wireless LAN (non-hamradio) ---> + [*] Wireless LAN (non-hamradio) + fuer PCI Karten auch: + Hermes chipset 802.11b support (Orinoco/Prism2/Symbol) + Hermes in PLX9052 based PCI adaptor support + Prism 2.5 PCI 802.11b adaptor support + + wireless_tools + http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html + + linux/wireless.h installen + entweder wireless.h ueber /usr/include/linux/wireless.h kopieren oder + bei neuem kernel /usr/include/linux nach /usr/src/linux/include/linux linken + + compilen + make + sudo make install + /etc/ld.so.conf: /usr/local/lib/ (falls noetig) && ldconfig + + pcmcia-cs (hier - weil nicht im Kernel) + http://pcmcia-cs.sourceforge.net + + compilen: + make config (interaktiv) + make all && make install + + config: card Eintrag in /etc/pcmcia/config (cardctl info) + + start/stop: /etc/init.d/pcmcia start/stop + 3.2 Client Setup + + setzen des WEPkeys + iwconfig eth0 key s:123456789abcd (104 Bit key benutzen, wenn supported!) + + setzen der SSID + iwconfig eth0 essid "" oder iwconfig eth0 essid any + + Wireless device hochfahren + ifconfig eth0 192.168.1.5 up + 3.3 AP Setup + + Chipsatz + http://www.seattlewireless.net/index.cgi/HardwareComparison + Prism: HostAP http://hostap.epitest.fi + Lucent: HermesAP http://hunz.org/hermesap.html + + HostAP + Treiber, der IEEE 802.11 management Funktionen am Host Computer uebernimmt + + build: + cp -a hostap/driver/* ./pcmcia-cs/ + jetzt wie bei pcmcia-cs + + config: + card Eintrag in /etc/pcmcia/hostap_cs.conf (cardctl info) + iwconfig wlan0 essid "foobar" (default "test") + iwconfig wlan0 channel X (zum setzen des channels) + + HermesAP + Erweiterter Orinoco Treiber, der AP-Firmware benutzt + + build: + aus driver/orinoco-0.13b-hermesap-0.1a/ *.c *.h ins wireless dir von pcmcia-cs kopieren + pcmcia-cs wie oben compilen + + AP firmware extrahieren und laden: + im firmware dir ./hfwget.sh ausfuehren + dann firmware mit hfw/hfwload ethX firmware/T108580.hfw laden + + config: + ssid / wepkeys / channel setzen wie oben + hidden mode mit iwpriv ethX hidden 1 +#4 Sicherheit +# WaveLAN unsicher! Mehr dazu siehe Vortrag 2!