Hallo,
Ich möchte mir ein Access Point erstellen, dass von Ethernet zu eine Wlan Verbindung aufbaut. Habe schon einen Anleitung im Internet gefunden. Leider funktioniert das nicht so richtig.
Ich bekomme von der hostapd eine Fehlermeldung:
Code
random: getrandom() support available
Configuration file: /etc/hostapd/hostapd.conf
Line 3: invalid line ' '
Line 7: invalid line ' '
Line 16: invalid line ' '
3 errors found in configuration file '/etc/hostapd/hostapd.conf'
Failed to set up interface with /etc/hostapd/hostapd.conf
hostapd_init: free iface 0x190020
Failed to initialize interface
In der hostapd.conf steht folgendes drin:
Code
# Bridge-Betrieb
bridge=br0
# Schnittstelle und Treiber
interface=wlan0
#driver=nl80211
# WLAN Konfiguration
ssid=TestWLAN
channel=1
hw_mode=g
ieee80211n=1
ieee80211d=1
country_code=DE
wmm_enabled=1
# WLAN Verschlüsselung
auth_algs=1
wpa=2
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP
wpa_passphrase=testtest
Alles anzeigen
Die SSID und das Passwort werd ich noch ändern.
Dann habe ich die "interfaces" bearbeitet:
Code
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
# Localhost
auto lo
iface lo inet loopback
# WLAN
auto wlan0
allow-hotplug wlan0
iface wlan0 inet manual
wireless-power off
# Netzwerkbrücke
auto br0
iface br0 inet dhcp
bridge_ports eth0 wlan0 # build bridge
bridge_fd 0 # no forwarding delay
bridge_stp off # disable Spanning Tree
Alles anzeigen
Ich benutze ein RaspberryPi 3b+ mit Raspbian Buster Lite.
Die Anleitung wo ich mich orientiert habe: https://developer-blog.net/raspberry-pi-a…int-einrichten/
Ich hoffe ihr könnt mir dabei helfen
LG Fabraptor