-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
list_clients does not include Teleport VPN clients #220
Comments
I don’t use Teleport so I’m unable to replicate/fix I’m afraid. Maybe someone with Teleport can analyse where the VPN client data in the UI is pulled from? |
I was poking around trying to find where the VPN client data is pulled from but couldn't find it in browser tools. It does show up as a client in the clients list in the UI, but only shows the device name and IP, no other details. Any ideas where I would look for where the VPN client data is pulled from? |
Make sure you are connected directly, not through unifi.ui.com, when going through the browser developer tools. It could be that this data is not exposed through the API like with some of the DPI output. |
Can't try a lot . But I found this : and it returns : [
{
"assoc_time": 123,
"display_name": "device display name",
"external_client_id": "123456",
"id": "123456",
"ip": "192.168.1.1",
"last_seen": 123,
"name": "device name",
"network_id": "1234",
"rx_bytes": 123,
"rx_packets": 123,
"site_id": "123",
"status": "online",
"token_id": "123",
"tx_bytes": 123,
"tx_packets": 123,
"type": "TELEPORT",
"uptime": 123
}
] Thanks, do you have more parameters/vales that can be passed as payload? Would be nice to support and document that. |
Nice. If someone can verify this we can either create an example file using the custom method or add a specific method to the class. |
Can confirm: https://unifi/proxy/network/v2/api/site/default/clients/active shows Teleport clients I tried using the custom_api_request but couldn't get it to return anything :( |
Care to share your code? |
I have a separate config.php:
|
And what happens when you leave out the |
This works! Here is a sample of what is returned: For a normal client:
For a teleport client:
|
I’ll see what can best be done to support this. For now this example is 👍 |
Sounds good, I'll add an experimental section to my app here that allows for Teleport enabling and uses the custom_api: Appreciate all of your help and work on this! |
When calling list_clients, it does not include Teleport VPN connected clients. For example, I have connected my iPhone via WifiMan to Unifi and it shows in the dashboard with a specific VLAN, but this client does not show up at all when calling a full list_clients
The text was updated successfully, but these errors were encountered: