Docker image to create a basic hotspot on Debian
Container created for my Recoverybox Project : https://github.com/mr-dgidgi/RecoveryBox
It can be use outside of this environnement
By default it create an SSID named 'default' with 'default0' as WPA Passphrase and the DCHP is configured to use 192.168.200/24 network.
You'll maybe need to setup some NAT if you want to allow the AP user to access to a wired network
sysctl net.ipv4.ip_forward=1
sed -i 's|#net.ipv4.ip_forward=1|net.ipv4.ip_forward=1|' /etc/sysctl.conf
rfkill list
sudo rfkill unblock wifi
sudo systemctl stop wpa_supplicant
sudo systemctl disable wpa_supplicant
sudo docker build -t mrdgidgi/simple-hotspot .
docker run --rm --net=host --cap-add=NET_ADMIN --cap-add=NET_RAW --privileged mrdgidgi/simple-hotspot
mkdir /etc/ap_config
cd /etc/ap_config
Customize the configuration Create hostapd.conf and dnsmasq.conf with your custom configuration in /etc/ap_config directory
Run the container
docker run --rm --net=host --cap-add=NET_ADMIN --cap-add=NET_RAW --privileged -v /etc/ap_config/:/etc/conf mrdgidgi/simple-hotspot
Content type
Image
Digest
sha256:5ba378909…
Size
5.8 MB
Last updated
5 months ago
docker pull mrdgidgi/simple-hotspot