diff options
author | Christian Hesse <mail@eworm.de> | 2023-06-26 10:44:52 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2023-06-28 11:04:13 +0200 |
commit | 0c8bc60648c2b5629273bf64bce81c664470506c (patch) | |
tree | b18f818dcb39287edffbd94855a3af11a8bccfd0 /hotspot-to-wpa.rsc | |
parent | f8a2b88692e21d46799738c13d4d12cfa95b4152 (diff) |
hotspot-to-wpa: reject for two seconds...
... to make the device send a new DHCP request after.
Diffstat (limited to 'hotspot-to-wpa.rsc')
-rw-r--r-- | hotspot-to-wpa.rsc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/hotspot-to-wpa.rsc b/hotspot-to-wpa.rsc index ede4daf..35d4fa5 100644 --- a/hotspot-to-wpa.rsc +++ b/hotspot-to-wpa.rsc @@ -57,7 +57,8 @@ $LogPrintExit2 info $0 ("Adding/updating access-list entry for mac address " . $ " (user " . $UserName . ").") false; /caps-man/access-list/remove [ find where mac-address=$MacAddress comment~"^hotspot-to-wpa: " ]; /caps-man/access-list/add comment=("hotspot-to-wpa: " . $UserName . ", " . $MacAddress . ", " . $Date) \ - mac-address=$MacAddress private-passphrase=($UserVal->"password") ssid-regexp="-wpa\$" place-before=$PlaceBefore; + mac-address=$MacAddress private-passphrase=($UserVal->"password") ssid-regexp="-wpa\$" \ + action=reject place-before=$PlaceBefore; :local Entry [ /caps-man/access-list/find where mac-address=$MacAddress \ comment=("hotspot-to-wpa: " . $UserName . ", " . $MacAddress . ", " . $Date) ]; @@ -81,3 +82,6 @@ $LogPrintExit2 info $0 ("Adding/updating access-list entry for mac address " . $ :if ([ :len $VlanMode] > 0) do={ /caps-man/access-list/set $Entry vlan-mode=$VlanMode; } + +:delay 2s; +/caps-man/access-list/set $Entry action=accept; |