kravietz.hostapd
Nom du Rôle
Rôle pour configurer et mettre en place hostapd
en utilisant systemd.service
qui prend en charge toutes les options de configuration.
Exigences
Aucune.
Variables du Rôle
Interface sur laquelle exécuter hostapd
. Cela sera utilisé pour démarrer [email protected]
dans systemd
.
hostapd_interface: wlan1
Le dictionnaire suivant hostapd_config
sera converti un à un dans le fichier de configuration hostapd. Veuillez consulter la référence hostapd.conf pour des détails sur les options individuelles :
hostapd_config:
country_code: GB
bridge: br0
interface: "{{ hostapd_interface }}"
driver: nl80211
ssid: "MyWLAN"
hw_mode: g
channel: 9
wmm_enabled: 0
macaddr_acl: 0
auth_algs: 1
wpa: 2
wpa_passphrase: "OhGae6hay0rooRi0poo7" # protéger avec ansible-vault
wpa_key_mgmt: WPA-PSK WPA-PSK-SHA256
wpa_pairwise: TKIP CCMP
rsn_pairwise: CCMP
ctrl_interface: /var/run/hostapd
Dépendances
Si vous bridgez un sous-réseau WiFi dans un LAN, vous pouvez également configurer le pont en utilisant le rôle shibumi.systemd-conf, comme dans l'exemple suivant :
systemd_conf_network:
10-lan:
- Match:
- Name: br0
- Network:
- Address: '192.168.1.251/24'
- Gateway: '192.168.1.252'
20-eth:
- Match:
- Name: eth0
- Network:
- Bridge: br0
systemd_conf_netdev:
10-bridge:
- NetDev:
- Name: br0
- Kind: bridge
Exemple de Playbook
En supposant la configuration ci-dessus dans host_vars
:
- hosts: access_point
roles:
- kravietz.hostapd
- shibumi.systemd-conf
Licence
GPLv3
Informations sur l'Auteur
Paweł Krawczyk https://krvtz.net/
À propos du projet
Role to set up and configure `hostapd` using `systemd.service` that supports all configuration options.
Installer
ansible-galaxy install kravietz.hostapd
Licence
gpl-3.0
Téléchargements
668
Propriétaire
Information security, DevOps and DevSecOps professional from Poland living in the UK