Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| technical:ppsk-meshdesk [2024/04/27 21:49] – system | technical:ppsk-meshdesk [2024/04/28 20:33] (current) – system | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| ===== Introduction ===== | ===== Introduction ===== | ||
| * RADIUSdesk includes Fair Usage Policy (FUP) profiles. | * RADIUSdesk includes Fair Usage Policy (FUP) profiles. | ||
| - | * These profiles can be tailor made into a very secure, powerful and flexible solution. | + | * These profiles can be customised to create |
| - | * In this example we will make use of these FUP profiles to: | + | * In this example, we will use these FUP profiles to: |
| - | * Allow a permanent user a daily data usage of 1GB. | + | * Allow a permanent user a daily data usage of 1 GB. |
| - | * After this the system will move them to a VLAN with a captive portal that is throttled. | + | * After that, the system will move him to a VLAN with a captive portal that is throttled. |
| - | * See the following | + | * At midnight, the system moves the permanent user back to the original network to start a new daily quota. |
| + | * See the following | ||
| <panel type=" | <panel type=" | ||
| {{ : | {{ : | ||
| </ | </ | ||
| - | * In order to get a working setup we will split it in two parts | + | * To get a working setup, we will split it into two parts |
| - | * The RADIUS related things that has to be done in RADIUSdesk. | + | * The RADIUS related things that need to be done in RADIUSdesk. |
| - | * The MESHdesk related things that has to be done in MESHdesk. | + | * The MESHdesk-related things that need to be done in MESHdesk. |
| - | * We assume you created a new cloud using the Setup Wizard. Our cloud is called **PPSK Demo**. | + | * We assume |
| ---------- | ---------- | ||
| - | ===== RADIUS Related ===== | + | ===== RADIUS Related |
| - | * The RADIUS related | + | * The RADIUS-related |
| - | * Create | + | * Create |
| - | * Create a permanent user with a unique | + | * Create a permanent user with a unique |
| - | * Add an entry for the SSID that the user will connect to to the PMKs Applet. | + | * Add an entry to the PMKs applet |
| * Add the hostapd RADIUS client (this will be waiting under RADIUS Clients -> New Arrivals) | * Add the hostapd RADIUS client (this will be waiting under RADIUS Clients -> New Arrivals) | ||
| ==== Create FUP Profile ==== | ==== Create FUP Profile ==== | ||
| Line 35: | Line 36: | ||
| {{ : | {{ : | ||
| </ | </ | ||
| - | * Select the profile after it was created and on the edit drop-down button, | + | * Select the profile after it has been created and select **FUP Edit** |
| - | * The first screen you can leave the defaults since hostapd is not capable of limiting | + | * On the first screen, you can leave the default settings as hostapd is not able to limit the user' |
| <panel type=" | <panel type=" | ||
| {{ : | {{ : | ||
| </ | </ | ||
| - | * Under the FUP components we will add a component that will reduce | + | * Among the FUP components, we will add a component that throttles |
| - | * Again this speed reduction | + | * Again, this speed reduction |
| - | * This is where we specify **VLAN 105** where the Captive Portal | + | * Here we specify **VLAN 105** on which the captive portal |
| <alert type=" | <alert type=" | ||
| - | * We are not blocking | + | * We do not block the user when the 1G data limit is reached. |
| - | * The system | + | * The system simply |
| - | * In our setup this VLAN will feature | + | * In our setup, this VLAN will contain |
| </ | </ | ||
| <panel type=" | <panel type=" | ||
| Line 52: | Line 53: | ||
| </ | </ | ||
| ==== Add new Permanent User ==== | ==== Add new Permanent User ==== | ||
| - | * RADIUSdesk | + | * RADIUSdesk |
| - | * In our setup, we will allow the user straight onto the LAN (Default | + | * In our setup, we will let the user directly into the LAN (default |
| - | * We will however | + | * |
| <panel type=" | <panel type=" | ||
| {{ : | {{ : | ||
| Line 61: | Line 62: | ||
| {{ : | {{ : | ||
| </ | </ | ||
| - | ==== Add SSID to PMKs Applet | + | ==== Add SSID to PMK's applet |
| - | * We have dedicated | + | * We have a special |
| - | * This requires that we specify the SSID to which the user will connect to. | + | * To do this, we need to specify the SSID that the user will connect to. |
| - | * We will add the SSID which the wizard created | + | * We add the SSID that the wizard created |
| - | * To get to the PMKs Applet, go to. RADIUS | + | * To get to the PMKs applet, go to. RADIUS |
| <panel type=" | <panel type=" | ||
| Line 77: | Line 78: | ||
| </ | </ | ||
| - | * Here you can see the PMKs that has been generated | + | * Here you can see the PMKs that were created |
| <panel type=" | <panel type=" | ||
| Line 83: | Line 84: | ||
| </ | </ | ||
| - | * We keep the list of PMKs small and thus ensure a speedy lookup | + | * We keep the list of PMKs small and thus ensure a quick search |
| * Pre-calculating the PMKs based on the SSID. | * Pre-calculating the PMKs based on the SSID. | ||
| * Assigning the RADIUS Client to a single Realm. | * Assigning the RADIUS Client to a single Realm. | ||
| - | * The RADIUSdesk code then ensures each PPSK key is unique | + | * The RADIUSdesk code then ensures |
| - | ==== Add RADIUS | + | ==== Add RADIUS |
| - | * This final part on the RADIUS side will be completed after the mesh network has been configured for Private PSK. | + | * This last part on the RADIUS side will be completed after the mesh network has been configured for Private PSK. |
| ---------- | ---------- | ||
| ===== MESHdesk Related ===== | ===== MESHdesk Related ===== | ||
| - | * We will modify | + | * We will change |
| - | * Our server also has MQTT installed and implemented which will allow real time disconnection | + | * MQTT is also installed and implemented |
| - | ==== Change | + | ==== Change |
| - | * We modify | + | * We change |
| <panel type=" | <panel type=" | ||
| {{ : | {{ : | ||
| </ | </ | ||
| - | * The items **Default VLAN**, **Default Key** and **Realm | + | * The entries |
| - | * We will consult them later when we add the RADIUS | + | * We will consult them later when we add the RADIUS |
| - | ==== Add VLANs to MESH network ==== | + | ==== Adding |
| - | * We include | + | * We add a number |
| * They are added under **Node Settings**. | * They are added under **Node Settings**. | ||
| <panel type=" | <panel type=" | ||
| Line 113: | Line 114: | ||
| ==== Add VLAN 105 to Captive Portal ==== | ==== Add VLAN 105 to Captive Portal ==== | ||
| - | * The wizard already created | + | * The wizard |
| * We can simply connect it to VLAN 105. | * We can simply connect it to VLAN 105. | ||
| - | * This means that traffic from the open SSID as well as traffic from VLAN 105 will hit the Captive Portal | + | * This means that both the traffic from the open SSID and the traffic from VLAN 105 will hit the captive portal |
| <panel type=" | <panel type=" | ||
| {{ : | {{ : | ||
| </ | </ | ||
| - | * Everything is now in place on the mesh network for the PPSK to work and we can start to add nodes to the mesh network. | + | * Now that |
| - | * After we added a mesh nodes we can try to connect to the **PPSK Demo Wireless** SSID with the key of **11223344** | + | * After we have added a mesh node, we can try to connect to the **PPSK Demo Wireless** SSID with the key **11223344** |
| - | * If will fail first since we have not yet did the final step which is to add it as a RADIUS client. | + | * This will initially |
| + | |||
| + | ---------- | ||
| + | |||
| + | ===== RADIUS related (final) ===== | ||
| + | ==== Add RADIUS client ==== | ||
| + | * Go to **RADIUS** -> **RADIUS Clients** and click on the **New Arrivals** button (The one with the car icon). | ||
| + | * This should list the hotsapd program' | ||
| + | <panel type=" | ||
| + | {{ : | ||
| + | </ | ||
| + | * Click the **Attach** button to display the Add window. | ||
| + | <panel type=" | ||
| + | {{ : | ||
| + | </ | ||
| + | * Make sure that you only select the **PPSK Demo** realm. | ||
| + | <panel type=" | ||
| + | {{ : | ||
| + | </ | ||
| + | * After you have attached | ||
| + | * Edit the RADIUS client and specify **Private PSK** as the type. | ||
| + | <panel type=" | ||
| + | {{ : | ||
| + | </ | ||
| + | * We use the information we recorded when we changed the mesh network entry point (SSID) | ||
| + | * Now everything is ready and we can enjoy the fruits of our labour. | ||
| + | |||
| + | ------ | ||
| + | |||
| + | ===== PPSK client session ===== | ||
| + | * If we try to reconnect to the PPSK Demo Wireless SSID, our connection should work because the RADIUS is now complete. | ||
| + | * Let us take a look at all the places where it is recorded. | ||
| + | |||
| + | ==== RADIUS | ||
| + | * The RADIUS Clients applet shows when the client | ||
| + | * It also shows the public IP address from which the RADIUS client has connected. | ||
| + | <panel type=" | ||
| + | {{ : | ||
| + | </ | ||
| + | * For MESHdesk and APdesk we use the convention {m|a}[_hosta_]{Mesh ID/AP Profile ID}[_]{Entry ID/SSID ID} | ||
| + | * We also record additional information from the accounting data sent by hostapd so that RADIUSdesk knows which AP or mesh node it needs to contact to disconnect a user from the WiFi. | ||
| + | |||
| + | ==== Activity Monitor ==== | ||
| + | * Under Activity Monitor you can view active and historical sessions. | ||
| + | * You can also end active sessions | ||
| + | <panel type=" | ||
| + | {{ : | ||
| + | </ | ||
| + | * Here you can see where we ended the active session and the user's device then automatically switched to another radio. (Note that the value of Operator Name is different) | ||
| + | <panel type=" | ||
| + | {{ : | ||
| + | </ | ||
| + | |||
| + | ==== Usage graph ==== | ||
| + | * We can also look at the user's usage graph. | ||
| + | * Here we can see that the usage is just over 1 GB, which means that the system has then disconnected from the user's device. | ||
| + | <panel type=" | ||
| + | {{ : | ||
| + | </ | ||
| + | |||
| + | ==== Life on VLAN 105 ==== | ||
| + | * After the user's phone was disconnected from the main network, it was reconnected, | ||
| + | <panel type=" | ||
| + | {{ : | ||
| + | </ | ||