-
Notifications
You must be signed in to change notification settings - Fork 73
Description
Hi,
I encountered this project looking for a way to setup my raspberrypi 4 as a wireless router for my iot devices. I pulled and started the container using:
$ sudo docker run -d -t -e INTERFACE=wlan0 -e CHANNEL=6 -e SSID=RanIOT1 -e AP_ADDR=192.168.4.1 -e SUBNET=192.168.4.0 -e WPA_PASSPHRASE=passw0rd --privileged --net host sdelrio/rpi-hostap:latest
And it seems to open the wireless hotspot.
The thing is that this hotspot is not connected to the internet. what did I do wrong?
This is the log of the container:
NAT settings ip_dynaddr, ip_forward
ip_dynaddr already 1
ip_forward already 1
1
1
Setting iptables for outgoing traffics on all interfaces...
Configuring DHCP server ..
Starting DHCP server ..
Internet Systems Consortium DHCP Server 4.3.3-P1
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Config file: /etc/dhcpd.conf
Database file: /var/lib/dhcp/dhcpd.leases
PID file: /var/run/dhcp/dhcpd.pid
Wrote 1 leases to leases file.
Listening on LPF/wlan0/dc:a6:32:37:82:fe/192.168.4.0/24
Sending on LPF/wlan0/dc:a6:32:37:82:fe/192.168.4.0/24
Sending on Socket/fallback/fallback-net
Starting HostAP daemon ...
Configuration file: /etc/hostapd.conf
wlan0: Could not connect to kernel driver
Using interface wlan0 with hwaddr dc:a6:32:37:82:fe and ssid "RanIOT1"
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: STA 7c:d6:61:f8:49:eb IEEE 802.11: associated
wlan0: AP-STA-CONNECTED 7c:d6:61:f8:49:eb
wlan0: STA 7c:d6:61:f8:49:eb RADIUS: starting accounting session 5EA89028-00000000
wlan0: STA 7c:d6:61:f8:49:eb WPA: pairwise key handshake completed (RSN)
wlan0: STA 7c:d6:61:f8:49:eb WPA: group key handshake completed (RSN)
wlan0: STA 7c:d6:61:f8:49:eb RADIUS: starting accounting session 5EA89028-00000000
wlan0: STA 7c:d6:61:f8:49:eb WPA: pairwise key handshake completed (RSN)
wlan0: STA 7c:d6:61:f8:49:eb IEEE 802.11: disassociated
wlan0: AP-STA-DISCONNECTED 7c:d6:61:f8:49:eb
wlan0: STA 7c:d6:61:f8:49:eb IEEE 802.11: disassociated
wlan0: STA 7c:d6:61:f8:49:eb IEEE 802.11: associated
wlan0: AP-STA-CONNECTED 7c:d6:61:f8:49:eb
wlan0: STA 7c:d6:61:f8:49:eb RADIUS: starting accounting session 5EA89028-00000001
wlan0: STA 7c:d6:61:f8:49:eb WPA: pairwise key handshake completed (RSN)
wlan0: STA 7c:d6:61:f8:49:eb WPA: group key handshake completed (RSN)
wlan0: STA 7c:d6:61:f8:49:eb RADIUS: starting accounting session 5EA89028-00000001
wlan0: STA 7c:d6:61:f8:49:eb WPA: pairwise key handshake completed (RSN)
wlan0: STA 7c:d6:61:f8:49:eb IEEE 802.11: disassociated
wlan0: AP-STA-DISCONNECTED 7c:d6:61:f8:49:eb
wlan0: STA 7c:d6:61:f8:49:eb IEEE 802.11: disassociated
wlan0: STA 7c:d6:61:f8:49:eb IEEE 802.11: disassociated
wlan0: STA 7c:d6:61:f8:49:eb IEEE 802.11: disassociated
Thanks a lot for your help!