[Flug] hostapd.conf nicht lesbar

Wilfried Ulrich Wilfried.F.Ulrich at web.de
So Sep 10 15:42:09 CEST 2017


Hallo,

ich versuche gerade auf meinem Printserver (ausgemustertes Netbook)

das WLAN als AP zu konfigurieren, bekomme es aber nicht zum laufen:

    hostapd -dd /etc/hostapd.conf

random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd.conf
Could not open configuration file '/etc/hostapd.conf' for reading.
Failed to set up interface with /etc/hostapd.conf
hostapd_init: free iface 0x814879f0
Failed to initialize interface

Sollte aber worldreadable sein (war der erste Abhilfeversuch, jetzt
wieder 644 statt 777)

    stat hostapd.conf

  Datei: „hostapd.conf“
  Größe: 784           Blöcke: 8          EA Block: 4096   reguläre Datei
Gerät: 803h/2051d    Inode: 1592232     Verknüpfungen: 1
Zugriff: (0777/-rwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)
Zugriff    : 2017-09-10 13:27:13.014007735 +0200
Modifiziert: 2017-09-10 13:41:00.599071009 +0200
Geändert   : 2017-09-10 14:07:28.056190428 +0200
 Geburt    : -

Im Anhang  einige Ansätze zur Analyse, waren leider erfolglos.


Hat jemand eine Idee, wie dem Problem abzuhelfen ist?

Vielen Dank schon mal für eure Mühen.


Gruß Wilfried



-- 

.. {°v°}
. {    }
._{_^^_}_
 F436A6ED
 4EA1 1C00 F436 A6ED
 BC7A 6719 7EB7 950C BDDB  112C 4EA1 1C00 F436 A6ED

-------------- nächster Teil --------------
Die Hardware (ath5) ist geeignet

	iw list  (Auszug)
		Supported interface modes:
			 * IBSS
			 * managed
			 * AP
			 * AP/VLAN
			 * monitor
			 * mesh point
#
#
#

Die Konfigurationen sind wie folgt#

	cat /etc/hostapd/hostapd.conf

### Wireless network name ###
interface=wlan0
### Set your bridge name ###
bridge=br0
### Set driver name ###
driver=nl80211
### Ländereinstellung ###
country_code=DE
### Set the SSID ###
ssid=*******
#ignore_broadcast_ssid=1
### Set operation mode ###
hw_mode=g
###Set channel number ###
channel=6
### Set wpa mode ###
wpa=2
### Set the passphrase (WiFi password) ###
wpa_passphrase=**********
### Key management algorithms ##
wpa_key_mgmt=WPA-PSK
### Set cipher suites (encryption algorithms) ###
### TKIP = Temporal Key Integrity Protocol    ###
### CCMP = AES in Counter mode with CBC-MAC   ###
wpa_pairwise=TKIP
rsn_pairwise=CCMP
### Shared Key Authentication ###
auth_algs=1
### Accept all MAC address ###
macaddr_acl=0
#
#
#
	cat /etc/network/interfaces

auto lo br0
iface lo inet loopback
 
# wireless wlan0
allow-hotplug wlan0
iface wlan0 inet manual
 
# eth0 
allow-hotplug eth0
iface eth0 inet manual
 
# Setup bridge 
iface br0 inet static
    bridge_ports wlan0 eth0
    address 192.168.0.102
    netmask 255.255.255.0
    network 192.168.0.0
    gateway 192.168.0.254 
#
#
#

Fehleranalyse:

	rfkill list

0: samsung-wlan: Wireless LAN
	Soft blocked: no
	Hard blocked: no
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
#
#
#
	 systemctl status networking

● networking.service - LSB: Raise network interfaces.
   Loaded: loaded (/etc/init.d/networking)
  Drop-In: /run/systemd/generator/networking.service.d
           └─50-insserv.conf-$network.conf
        /lib/systemd/system/networking.service.d
           └─network-pre.conf
   Active: active (exited) since So 2017-09-10 13:43:23 CEST; 58min ago

Sep 10 13:43:20 myServer networking[303]: Configuring network interfaces...can't add wlan0 to bridge br0: Oper...orted
Sep 10 13:43:20 myServer networking[303]: Waiting for br0 to get ready (MAXWAIT is 32 seconds).
Sep 10 13:43:23 myServer networking[303]: done.
Sep 10 13:43:23 myServer systemd[1]: Started LSB: Raise network interfaces..
Hint: Some lines were ellipsized, use -l to show in full.
#
#
#
	tail /var/log/syslog

Sep 10 14:57:35 myServer systemd[1]: Starting LSB: Raise network interfaces....
Sep 10 14:57:35 myServer networking[3019]: Configuring network interfaces...can't add wlan0 to bridge br0: Operation not supported
Sep 10 14:57:35 myServer kernel: [ 4460.506996] device eth0 entered promiscuous mode
Sep 10 14:57:35 myServer kernel: [ 4460.516125] sky2 0000:03:00.0 eth0: enabling interface
Sep 10 14:57:35 myServer kernel: [ 4460.528229] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Sep 10 14:57:35 myServer kernel: [ 4460.531832] br0: port 1(eth0) entered forwarding state
Sep 10 14:57:35 myServer kernel: [ 4460.531857] br0: port 1(eth0) entered forwarding state
Sep 10 14:57:35 myServer networking[3019]: Waiting for br0 to get ready (MAXWAIT is 32 seconds).
Sep 10 14:57:35 myServer avahi-daemon[739]: Joining mDNS multicast group on interface br0.IPv4 with address 192.168.0.102.
Sep 10 14:57:35 myServer avahi-daemon[739]: New relevant interface br0.IPv4 for mDNS.
Sep 10 14:57:35 myServer avahi-daemon[739]: Registering new address record for 192.168.0.102 on br0.IPv4.
Sep 10 14:57:36 myServer kernel: [ 4461.352114] br0: port 1(eth0) entered disabled state
Sep 10 14:57:36 myServer avahi-daemon[739]: Joining mDNS multicast group on interface br0.IPv6 with address fe80::213:77ff:feb3:199b.
Sep 10 14:57:36 myServer avahi-daemon[739]: New relevant interface br0.IPv6 for mDNS.
Sep 10 14:57:36 myServer avahi-daemon[739]: Registering new address record for fe80::213:77ff:feb3:199b on br0.*.
Sep 10 14:57:38 myServer kernel: [ 4463.152222] sky2 0000:03:00.0 eth0: Link is up at 100 Mbps, full duplex, flow control both
Sep 10 14:57:38 myServer kernel: [ 4463.152282] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Sep 10 14:57:38 myServer kernel: [ 4463.152352] br0: port 1(eth0) entered forwarding state
Sep 10 14:57:38 myServer kernel: [ 4463.152383] br0: port 1(eth0) entered forwarding state
Sep 10 14:57:41 myServer systemd[1]: Reloading OpenBSD Secure Shell server.
Sep 10 14:57:41 myServer systemd[1]: Reloaded OpenBSD Secure Shell server.
Sep 10 14:57:41 myServer systemd[1]: Reloading OpenBSD Secure Shell server.
Sep 10 14:57:41 myServer systemd[1]: Reloaded OpenBSD Secure Shell server.
Sep 10 14:57:41 myServer networking[3019]: done.
Sep 10 14:57:41 myServer systemd[1]: Started LSB: Raise network interfaces..
#
#
#
	systemctl status hostapd

● hostapd.service - LSB: Advanced IEEE 802.11 management daemon
   Loaded: loaded (/etc/init.d/hostapd)
   Active: active (exited) since So 2017-09-10 15:02:13 CEST; 10s ago
  Process: 3237 ExecStop=/etc/init.d/hostapd stop (code=exited, status=0/SUCCESS)
  Process: 3240 ExecStart=/etc/init.d/hostapd start (code=exited, status=0/SUCCESS)

Sep 10 15:02:13 myServer systemd[1]: Started LSB: Advanced IEEE 802.11 management daemon.
#
#
#
	tail  /var/log/syslog

Sep 10 15:02:13 myServer systemd[1]: Stopping LSB: Advanced IEEE 802.11 management daemon...
Sep 10 15:02:13 myServer systemd[1]: Starting LSB: Advanced IEEE 802.11 management daemon...
Sep 10 15:02:13 myServer systemd[1]: Started LSB: Advanced IEEE 802.11 management daemon.
#
#
#

-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : signature.asc
Dateityp    : application/pgp-signature
Dateigröße  : 833 bytes
Beschreibung: OpenPGP digital signature
URL         : <http://lug-freiburg.de/pipermail/flug/attachments/20170910/7ed5aa6d/attachment.sig>


Mehr Informationen über die Mailingliste Flug