WLAN

Installation einer Atheros PCMCIA WLAN Karte unter Debian

http://www.andreas-janssen.de/wlan.html

1. apt-get install module-assistant build-essential madwifi-source 2. module-assistant prepare 3. module-assistant auto-install madwifi-source 4. apt-get install wireless-tools

Dazu legt man eine Datei in /etc/modprobe.d an, z.B. /etc/modprobe.d/local, und fügt die benötigte Option dort ein.

Für ein Ad-Hoc-Netzwerk auf allen Rechnern:

options ath_pci autocreate=adhoc

Für ein Infrastruktur-Netzwerk mit Access Point auf dem AP:

options ath_pci autocreate=ap

Das Modul wird von hotplug oder discover beim Systemstart automatisch geladen. Falls beides nicht verwendet wird, kann man das Modul auch zu /etc/modules hinzufügen:

echo ath_pci >> /etc/modules

#Statische IP-Adresse usw.
iface ath0 inet static
	wireless-mode Ad-Hoc
	wireless-essid meinwlan
	wireless-key off
	address 192.168.1.1
	netmask 255.255.255.0
	broadcast 192.168.1.255

Wlan Dump mit wlanconfig und aircrack-ng

ifdown ath0 

wlanconfig ath0 destroy

wlanconfig ath create wlandev wifi0 wlanmode monitor

airmon-ng start ath0

airodump-ng --write cap ath0

aircrack-ng cap-01.cap

oder 
wireshark cap-01.cap zur Analyse

Wlan unter Arch Linux einrichten

#Script wlanconnect.sh als root ausführen
#Vorarbeit:
#pacman -S wireless_tools
#pacman -S wpa_supplicant
#Edit /etc/wpa_supplicant.conf
#network
#ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
#network={
#       ssid="nettermenschonair"
#       scan_ssid=1
#       key_mgmt=WPA-PSK
#       psk="5445384563457214"
#    }
#
ifconfig eth0 down
#ifconfig ath0 essid nettermenschonair
wpa_supplicant -B -Dmadwifi -iath0 -c /etc/wpa_supplicant.conf
ifconfig ath0 192.168.0.111
route add default gw 192.168.0.1
ifconfig ath0 up
/etc/rc.d/openntpd start
Cookie Consent mit Real Cookie Banner