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

**URL:** <https://onehack.st/t/autowlan-run-a-portable-access-point-on-a-raspberry-pi-making-use-of-docker-containers/280672>\
**Category:** Tools & Scripts\
**Tags:** tools, technology, hosting\
**Created:** [April 2, 2024, 7:43pm UTC](https://onehack.st/t/autowlan-run-a-portable-access-point-on-a-raspberry-pi-making-use-of-docker-containers/280672 "2024-04-02T19:43:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheStrength](https://onehack.st/user_avatar/onehack.st/thestrength/32/46753_2.png) [@TheStrength](https://onehack.st/u/TheStrength)\
**Post date:** [April 2, 2024, 7:43pm UTC](https://onehack.st/t/autowlan-run-a-portable-access-point-on-a-raspberry-pi-making-use-of-docker-containers/280672/1 "2024-04-02T19:43:42Z")

</div>

![image](https://onehack.st/uploads/default/original/3X/9/4/9469fd42add694b8fa0cea6faa818205633441c4.jpeg)

# AutoWLAN

This project will allow you run a portable access point on a Raspberry Pi making use of _Docker_ containers.

Further reference and explanations:

> [https://fwhibbit.es/en/automatic-access-point-with-docker-and-raspberry-pi-zero-w](https://fwhibbit.es/en/automatic-access-point-with-docker-and-raspberry-pi-zero-w)

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)

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

```

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

```auto
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)

```auto
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

```auto
docker stop autowlan_{open|wep|wpa2}

```

### Management using docker-compose

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

```auto
docker-compose -f <fichero_yml> up

```

##### Create and run container in the background

```auto
docker-compose -f <fichero_yml> up -d

```

##### Stop a container in the background

```auto
docker-compose -f <fichero_yml> down

```

##### Read logs of a container in the background

```auto
docker-compose -f <fichero_yml> logs

```

## GitHub:

> **[Guille Hartek / AutoWLAN · GitLab](https://gitlab.com/hartek/autowlan)**
>
> GitLab.com
