From 97c67abab07a57840f95d04fadbd13b3c0f5b328 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=81LI=20G=C3=A1bor=20J=C3=A1nos?= Date: Sat, 28 May 2022 12:44:37 +0200 Subject: Incorporate `hostapd`. The inclusion of `hostapd` [1] brings a lot of related changes because the build process have to extended to take the challenge. - Convert `wpa_passthru` to a more a generic services, called `uds_passthru` to deal with the control socket forwarding. It can also log the `socat` errors properly. - Make the `Makefile` more parametric therefore the virtual disk image can be customized better. - Default configurations are now moved fully to the guest's side. - Tweak the packages to be more flexible. - Document everything. [1] https://w1.fi/hostapd/ --- etc/hostapd/appliance/uds_passthru.conf.sample | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 etc/hostapd/appliance/uds_passthru.conf.sample (limited to 'etc/hostapd/appliance/uds_passthru.conf.sample') diff --git a/etc/hostapd/appliance/uds_passthru.conf.sample b/etc/hostapd/appliance/uds_passthru.conf.sample new file mode 100644 index 0000000..ea5b942 --- /dev/null +++ b/etc/hostapd/appliance/uds_passthru.conf.sample @@ -0,0 +1,14 @@ +# This is a configuration file for the Unix Domain Socket (UDS) +# pass-through feature. + +# The `network` setting should specify the IP address of the guest, +# which should match how it was defined in the interfaces.conf file. +network=10.0.0.2:255.255.255.0 + +# The `sockets` setting should list all the sockets to be forwarded +# for the host on the given ports. The `path` will be created on the +# host as a UDS with the specific owner and permissions. Ideally, +# this does not have to be changed. +_sockdir=/var/run/hostapd +_perms="user=root,group=0,mode=770" +sockets="path=${_sockdir}/wlan0,${_perms},port=1200" -- cgit v1.2.3