@all
Also ich häng mich hier auch nochmal rein, da ich die Aussage "Easyvdr und Fritz Wlan USB Stick arbeiten nicht zusammen" so nicht stehen lassen kann, da ich dieses Gespann schon seit Monaten/Jahren erfolgreich betreibe.
Deshalb poste ich mal meine Konfiguration bzw. Dateien, die mir so einfallen:
(Zu beachten ist, dass ich für mich nochmal in WPA und WPA2 unterteilt habe, Punkte ersetzen meine Schlüsselwörter und ID`s.)
/etc/wpa2_supplicant.conf:
Code:
ctrl_interface=/var/run/wpa_supplicant
ap_scan=2
network={
scan_ssid=1
ssid="........"
proto=WPA2
key_mgmt=WPA-PSK
pairwise=CCMP
group=CCMP
psk=".................."
#psk=...............
/etc/network/interfaces:
Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
/etc/vdr/sysconfig (Auszug):
Code:
NETWORK="WLAN"
HOSTNAME="easyVDR"
START_FTPD="yes"
START_SSH="yes"
LAN_NETWORK_DRIVER="8139too"
WAKE_ON_LAN="no"
LAN_USE_DHCP="no"
LAN_IP="192.168.178.7"
LAN_MASK="255.255.255.0"
LAN_GATEWAY="192.168.178.1"
LAN_NAMESERVER1="192.168.178.1"
LAN_DOMAIN="local"
WLAN_NETWORK_DRIVER="wireless/fwlanusb"
WLAN_USE_DHCP="no"
WLAN_IP="192.168.178.6"
WLAN_MASK="255.255.255.0"
WLAN_GATEWAY="192.168.178.1"
WLAN_NAMESERVER1="192.168.178.1"
WLAN_SSID="..........."
WLAN_ART="Managed"
WLAN_CHANNEL="13"
WLAN_SEC="WPA2"
WLAN_WEP_AUTH="open"
WLAN_WEP_KEY_1="61:62:63:64:65:66:67:68:69:6A:6B:6C:6D"
WLAN_WEP_KEY_2="61:62:63:64:65:66:67:68:69:6A:6B:6C:6D"
WLAN_WEP_KEY_3="61:62:63:64:65:66:67:68:69:6A:6B:6C:6D"
WLAN_WEP_KEY_4="61:62:63:64:65:66:67:68:69:6A:6B:6C:6D"
WLAN_WEP_KEY="2"
WLAN_WPA_CONFIG_FILE="/etc/wpa_supplicant.conf"
WLAN_WPA2_CONFIG_FILE="/etc/wpa2_supplicant.conf"
WLAN_WPA_DRIVER="wext"
Wenn noch wichtige Dateien fehlen, bitte nachfragen.
Jörg
Nachtrag:
/etc/init.d/LANStart (Auszug):
Code:
function wlanstart() {
[ $LOGGING = "yes" ] && $LOGGERCMD "Starte WLAN"
if [ x"$WLAN_NETWORK_DRIVER" = x"AUTODETECT" ]; then
execute modprobe $(detect_lannetcard)
else
execute modprobe `basename $WLAN_NETWORK_DRIVER`
fi
WLAN_DEVICE=`iwconfig 2> /dev/null | grep ESSID | cut -d " " -f 1`
[ -z "$WLAN_DEVICE" ] && WLAN_DEVICE=`iwconfig | grep "IEEE 802.11" | awk '{print $1}'`
execute ifconfig $WLAN_DEVICE up
case "$WLAN_SEC" in
"KEINE")
execute iwconfig $WLAN_DEVICE mode $WLAN_ART
execute iwconfig $WLAN_DEVICE essid $WLAN_SSID
execute iwconfig $WLAN_DEVICE channel $WLAN_CHANNEL
execute iwconfig $WLAN_DEVICE key off
execute iwconfig $WLAN_DEVICE commit
;;
"WEP")
execute iwconfig $WLAN_DEVICE mode $WLAN_ART
execute iwconfig $WLAN_DEVICE essid $WLAN_SSID
execute iwconfig $WLAN_DEVICE channel $WLAN_CHANNEL
execute iwconfig $WLAN_DEVICE key [1] $WLAN_WEP_KEY_1
execute iwconfig $WLAN_DEVICE key [2] $WLAN_WEP_KEY_2
execute iwconfig $WLAN_DEVICE key [3] $WLAN_WEP_KEY_3
execute iwconfig $WLAN_DEVICE key [4] $WLAN_WEP_KEY_4
execute iwconfig $WLAN_DEVICE key "[$WLAN_WEP_KEY]" $WLAN_WEP_AUTH
execute iwconfig $WLAN_DEVICE commit
;;
"WPA")
if [ "!" -f $WLAN_WPA_CONFIG_FILE ]; then
$LOGGERCMD "WPA-Config nicht vorhanden"
(sleep 35 && svdrpsend.pl MESG "WPA-Config nicht vorhanden") &
fi
wpa_supplicant -dd -K -t -Bw -i $WLAN_DEVICE -D $WLAN_WPA_DRIVER -c $WLAN_WPA_CONFIG_FILE
;;
"WPA2")
if [ "!" -f $WLAN_WPA2_CONFIG_FILE ]; then
$LOGGERCMD "WPA2-Config nicht vorhanden"
(sleep 35 && svdrpsend.pl MESG "WPA2-Config nicht vorhanden") &
fi
wpa_supplicant -dd -K -t -Bw -i $WLAN_DEVICE -D $WLAN_WPA_DRIVER -c $WLAN_WPA2_CONFIG_FILE
;;
esac
if [ $WLAN_USE_DHCP = "yes" ]; then
execute udhcpc -i $WLAN_DEVICE -b -H `hostname` -p /var/run/udhcpc.pid
else
[ -n "$WLAN_DOMAIN" ] && echo "search $WLAN_DOMAIN" > /etc/resolv.conf
[ -n "$WLAN_NAMESERVER1" ] && echo "nameserver $WLAN_NAMESERVER1" >> /etc/resolv.conf
[ -n "$WLAN_NAMESERVER2" ] && echo "nameserver $WLAN_NAMESERVER2" >> /etc/resolv.conf
[ -n "$WLAN_NAMESERVER3" ] && echo "nameserver $WLAN_NAMESERVER3" >> /etc/resolv.conf
execute ifconfig $WLAN_DEVICE $WLAN_IP netmask $WLAN_MASK up
if [ $? != 0 ]; then
(sleep 35 && svdrpsend.pl MESG "W-LAN konnte nicht gestartet werden") &
$LOGGERCMD "W-LAN konnte nicht gestartet werden"
fi
fi
[ -n "$WLAN_GATEWAY" ] && execute route add default gw $WLAN_GATEWAY
}
/etc/vdr/plugins/setup/vdr-setup.xml (Auszug):
Code:
<menu name="Netzwerk">
<entry name="Netzwerk-Art" sysconfig="NETWORK" type="selection" value="WLAN">
<value>AUS</value>
<value>LAN</value>
<value>WLAN</value>
<value>LANWLAN</value>
</entry>
<entry name="Hostname" sysconfig="HOSTNAME" type="text" value="easyVDR" />
<entry name="Starte FTP Dämon" sysconfig="START_FTPD" type="bool" value="yes" />
<menu name="LAN-Einstellungen">
<entry name="LAN-Netzwerktreiber" sysconfig="LAN_NETWORK_DRIVER" type="selection" setup="networkdriver" value="8139too" />
<entry name="Wake On Lan" sysconfig="WAKE_ON_LAN" type="bool" value="no" />
<entry name="LAN DHCP" sysconfig="LAN_USE_DHCP" type="bool" value="no" />
<entry name="LAN IP-Adresse" sysconfig="LAN_IP" type="ip" value="192.168.178.7" />
<entry name="LAN Mask" sysconfig="LAN_MASK" type="ip" value="255.255.255.0" />
<entry name="LAN Gateway" sysconfig="LAN_GATEWAY" type="ip" value="192.168.178.1" />
<entry name="LAN Nameserver 1" sysconfig="LAN_NAMESERVER1" type="ip" value="192.168.178.1" />
<entry name="LAN Nameserver 2" sysconfig="LAN_NAMESERVER2" type="ip" value="" />
<entry name="LAN Nameserver 3" sysconfig="LAN_NAMESERVER3" type="ip" value="" />
<entry name="LAN Domaine" sysconfig="LAN_DOMAIN" type="text" value="local" />
</menu>
<menu name="WLan-Einstellungen">
<entry name="WLAN-Netzwerktreiber" sysconfig="WLAN_NETWORK_DRIVER" type="selection" setup="networkdriver" value="wireless/fwlanusb" />
<entry name="WLAN DHCP" sysconfig="WLAN_USE_DHCP" type="bool" value="no" />
<entry name="WLAN IP" sysconfig="WLAN_IP" type="ip" value="192.168.178.6" />
<entry name="WLAN Mask" sysconfig="WLAN_MASK" type="ip" value="255.255.255.0" />
<entry name="WLAN Gateway" sysconfig="WLAN_GATEWAY" type="ip" value="192.168.178.1" />
<entry name="WLAN Nameserver 1" sysconfig="WLAN_NAMESERVER1" type="ip" value="192.168.178.1" />
<entry name="WLAN Nameserver 2" sysconfig="WLAN_NAMESERVER2" type="ip" value="" />
<entry name="WLAN Nameserver 3" sysconfig="WLAN_NAMESERVER3" type="ip" value="" />
<entry name="WLAN Domaine" sysconfig="WLAN_DOMAIN" type="text" value="local" />
<entry name="WLAN SSID" sysconfig="WLAN_SSID" type="text" value="................" />
<entry name="WLAN Art" sysconfig="WLAN_ART" type="selection" value="Managed">
<value>Ad-hoc</value>
<value>Managed</value>
</entry>
<entry name="WLAN CHANNEL" sysconfig="WLAN_CHANNEL" type="selection" value="13">
<value>1</value>
<value>2</value>
<value>3</value>
<value>4</value>
<value>5</value>
<value>6</value>
<value>7</value>
<value>8</value>
<value>9</value>
<value>10</value>
<value>11</value>
<value>12</value>
<value>13</value>
<value>14</value>
</entry>
<entry name="WLAN Verschlüsselung" sysconfig="WLAN_SEC" type="selection" value="WPA2">
<value>KEINE</value>
<value>WEP</value>
<value>WPA</value>
<value>WPA2</value>
</entry>
<menu name="WEP-Einstellungen">
<entry name="WLAN WEP Authentifizierung" sysconfig="WLAN_WEP_AUTH" type="selection" value="open">
<value>open</value>
<value>restricted</value>
</entry>
<entry name="WLAN WEP KEY 1" sysconfig="WLAN_WEP_KEY_1" type="hex" value="61:62:63:64:65:66:67:68:69:6A:6B:6C:6D" />
<entry name="WLAN WEP KEY 2" sysconfig="WLAN_WEP_KEY_2" type="hex" value="61:62:63:64:65:66:67:68:69:6A:6B:6C:6D" />
<entry name="WLAN WEP KEY 3" sysconfig="WLAN_WEP_KEY_3" type="hex" value="61:62:63:64:65:66:67:68:69:6A:6B:6C:6D" />
<entry name="WLAN WEP KEY 4" sysconfig="WLAN_WEP_KEY_4" type="hex" value="61:62:63:64:65:66:67:68:69:6A:6B:6C:6D" />
<entry name="WLAN WEP KEY" sysconfig="WLAN_WEP_KEY" type="selection" value="2">
<value>1</value>
<value>2</value>
<value>3</value>
<value>4</value>
</entry>
</menu>
<menu name="WPA-Einstellungen">
<entry name="WPA-Configfile" sysconfig="WLAN_WPA_CONFIG_FILE" type="text" value="/etc/wpa_supplicant.conf" />
<entry name="WPA2-Configfile" sysconfig="WLAN_WPA2_CONFIG_FILE" type="text" value="/etc/wpa2_supplicant.conf" />
<entry name="WPA-Treiber" sysconfig="WLAN_WPA_DRIVER" type="selection" value="wext">
<value>hostap</value>
<value>hermes</value>
<value>madwifi</value>
<value>atmel</value>
<value>wext</value>
<value>ndiswrapper</value>
<value>broadcom</value>
<value>ipw</value>
<value>bsd</value>
<value>ndis</value>
</entry>
</menu>
</menu>