AutoWLAN - Run A Portable Access Point On A Raspberry Pi Making Use Of Docker Containers

AVvXsEjXeaF5MXK2ti54OpzyTmnxSBjJCv01O1h5s2e47KgqMyf1B2uJah3SNlgxHyIAo9C5CP8KVgOgqbbLdEa7WwTMz5hHRE12aeWqMonC78TEXU7BnnJ_pou9YHvx1pbw32PySusvOh_MZ9scrqDVa3muPyPL8PnYrLGFtIeXefEImlf-k5aoJa4WLrwNLQ1T=w640-h368
This project will allow you run a portable access point on a Raspberry Pi making use of Docker containers.
Further reference and explanations:
Tested on Raspberry Pi Zero W.

Access point configurations​

You can customize the network password and other configurations on files at confs/hostapd_confs/. You can also add your own hostapd configuration files here.

Management using plain docker​

Add --rm for volatile containers.

Create and run a container with default (Open) configuration (stop with Ctrl+C)​

docker run --name autowlan_open --cap-add=NET_ADMIN --network=host autowlan

Create and run a container with WEP configuration (stop with Ctrl+C)​

docker run --name autowlan_wep --cap-add=NET_ADMIN --network=host -v $(pwd)/confs/hostapd_confs/wep.conf:/etc/hostapd/hostapd.conf autowlan

Create and run a container with WPA2 configuration (stop with Ctrl+C)​

docker run --name autowlan_wpa2 --cap-add=NET_ADMIN --network=host -v $(pwd)/confs/hostapd_confs/wpa2.conf:/etc/hostapd/hostapd.conf autowlan

Stop a running container​

docker stop autowlan_{open|wep|wpa2}

Management using docker-compose​

Create and run container (stop with Ctrl+C)​

docker-compose -f <fichero_yml> up

Create and run container in the background​

docker-compose -f <fichero_yml> up -d

Stop a container in the background​

docker-compose -f <fichero_yml> down

Read logs of a container in the background​

docker-compose -f <fichero_yml> logs
 
뒤로
상단