aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-05-11 10:05:47 +0200
committerGravatar Christian Hesse <mail@eworm.de>2022-05-12 11:04:00 +0200
commitd68958dd77d8bb5d4dbf4c4504fef8a2ecd58439 (patch)
treeb6dfd3ca8b8f3b00edd1f9833899f839048dbc1a /doc
parent060d12d273b0fabab36914138c06e02ee1043ba1 (diff)
doc/hotspot-to-wpa: RouterOS v7 path syntax
Diffstat (limited to 'doc')
-rw-r--r--doc/hotspot-to-wpa.md14
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/hotspot-to-wpa.md b/doc/hotspot-to-wpa.md
index 8733a7c..211d4fb 100644
--- a/doc/hotspot-to-wpa.md
+++ b/doc/hotspot-to-wpa.md
@@ -25,7 +25,7 @@ Then install the script:
Configure your hotspot to use this script as `on-login` script:
- / ip hotspot user profile set on-login=hotspot-to-wpa [ find ];
+ /ip/hotspot/user/profile/set on-login=hotspot-to-wpa [ find ];
### Automatic cleanup
@@ -36,11 +36,11 @@ access list forever. Install the optional script for automatic cleanup:
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;
+ /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" ];
+ /ip/dhcp-server/set lease-script=lease-script [ find where name~"wpa" ];
Configuration
-------------
@@ -51,8 +51,8 @@ entries are to be added.
Create hotspot login credentials:
- / ip hotspot user add add comment="Test User 1" name=user1 password=v3ry;
- / ip hotspot user add add comment="Test User 2" name=user2 password=s3cr3t;
+ /ip/hotspot/user/add comment="Test User 1" name=user1 password=v3ry;
+ /ip/hotspot/user/add comment="Test User 2" name=user2 password=s3cr3t;
Additionally templates can be created to give more options for access list:
@@ -66,12 +66,12 @@ Additionally templates can be created to give more options for access list:
For a hotspot called `example` the template could look like this:
- / caps-man access-list add comment="hotspot-to-wpa template example" disabled=yes private-passphrase="ignore" ssid-regexp="^example\$" vlan-id=10 vlan-mode=use-tag;
+ /caps-man/access-list/add comment="hotspot-to-wpa template example" disabled=yes private-passphrase="ignore" ssid-regexp="^example\$" vlan-id=10 vlan-mode=use-tag;
The same settings are available in hotspot user's comment and take precedence
over the template settings:
- / ip hotspot user add comment="private-passphrase=ignore, ssid-regexp=^example\\\$, vlan-id=10, vlan-mode=use-tag" name=user password=v3ry-s3cr3t;
+ /ip/hotspot/user/add comment="private-passphrase=ignore, ssid-regexp=^example\\\$, vlan-id=10, vlan-mode=use-tag" name=user password=v3ry-s3cr3t;
Usage and invocation
--------------------