aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-06-22 15:58:03 +0200
committerGravatar Christian Hesse <mail@eworm.de>2021-06-23 15:15:16 +0200
commit1a404195d5f8f58f89bb8671a6b8afc5feebdd94 (patch)
tree4c9d1974d6f3b63de2c81fee3fee099fb3de87f4 /doc
parentf5b1f9cb97f548a594d50e1835848350b54abf20 (diff)
hotspot-to-wpa: add optional cleanup scriptchange-58
Diffstat (limited to 'doc')
-rw-r--r--doc/hotspot-to-wpa.md20
-rw-r--r--doc/lease-script.md1
2 files changed, 21 insertions, 0 deletions
diff --git a/doc/hotspot-to-wpa.md b/doc/hotspot-to-wpa.md
index 108cfd5..13f307a 100644
--- a/doc/hotspot-to-wpa.md
+++ b/doc/hotspot-to-wpa.md
@@ -27,6 +27,21 @@ Configure your hotspot to use this script as `on-login` script:
/ ip hotspot user profile set on-login=hotspot-to-wpa [ find ];
+### Automatic cleanup
+
+With just `hotspot-to-wpa` installed the mac addresses will last in the
+access list forever. Install the optional script for automatic cleanup:
+
+ $ScriptInstallUpdate hotspot-to-wpa-cleanup,lease-script;
+
+Create a scheduler:
+
+ / system scheduler add interval=1d name=hotspot-to-wpa-cleanup on-event="/ system script run hotspot-to-wpa-cleanup;" start-time=startup;
+
+And add the lease script to your wpa interfaces' dhcp server:
+
+ / ip dhcp-server set lease-script=lease-script [ find where name~"wpa" ];
+
Configuration
-------------
@@ -46,6 +61,11 @@ Now let the users connect and login to the hotspot. After that the devices
(identified by MAC address) can connect to the WPA2 network, using the
passphrase from hotspot credentials.
+See also
+--------
+
+* [Run other scripts on DHCP lease](lease-script.md)
+
---
[◀ Go back to main README](../README.md)
[▲ Go back to top](#top)
diff --git a/doc/lease-script.md b/doc/lease-script.md
index 6391c40..d437ee5 100644
--- a/doc/lease-script.md
+++ b/doc/lease-script.md
@@ -33,6 +33,7 @@ See also
* [Collect MAC addresses in wireless access list](collect-wireless-mac.md)
* [Comment DHCP leases with info from access list](dhcp-lease-comment.md)
* [Create DNS records for DHCP leases](dhcp-to-dns.md)
+* [Use WPA2 network with hotspot credentials](doc/hotspot-to-wpa.md)
---
[◀ Go back to main README](../README.md)