PUQ Mautic Skip to main content

Check online users

Order now | Download | FAQ

Check online users WireGuard protocol

Request Structure: https://<puqvpnvp>/api/v1/wireguard/online

Method: GET

Cookie: access_hash=<access_hash>

Example:

curl \
-b "access_hash=def77a57825907131fca3ba92fc22970ffe7429fd8b49535e178f59542c42cf2be854e296941de9f" \
-X GET https://dev.softkeel.com/api/v1/wireguard/online

Response example:

{
   "error" : "",
   "msg" : [
      {
         "allowed_IPs" : "10.0.110.17",
         "b_download" : "10",
         "b_upload" : "10",
         "endpoint" : "79.184.218.180:47471",
         "latest_handshake" : "2022-12-12 13:02:01",
         "name" : "ruslan_telefon",
         "status" : "enable",
         "transfer_rx" : "3892",
         "transfer_tx" : "2972",
         "username" : "user_32",
         "wg_name" : "77_87_125_209"
      },
      {
         "allowed_IPs" : "10.0.110.12",
         "b_download" : "30",
         "b_upload" : "30",
         "endpoint" : "77.87.125.204:59558",
         "latest_handshake" : "2022-12-12 13:01:48",
         "name" : "test_mac",
         "status" : "enable",
         "transfer_rx" : "2244",
         "transfer_tx" : "3356",
         "username" : "test_mac",
         "wg_name" : "77_87_125_209"
      }
   ],
   "status" : "success"
}

Errors:

-Not authorized

Check online users IKEv2 protocol

Request Structure: https://<puqvpnvp>/api/v1/ikev2/online

Method: GET

Cookie: access_hash=<access_hash>

Example:

curl \
-b "access_hash=def77a57825907131fca3ba92fc22970ffe7429fd8b49535e178f59542c42cf2be854e296941de9f" \
-X GET https://dev.softkeel.com/api/v1/ikev2/online

Response example:

{
   "error" : "",
   "msg" : [
      {
         "allowed_IPs" : "10.0.110.17",
         "b_download" : "10",
         "b_upload" : "10",
         "endpoint" : "79.184.218.180",
         "name" : "ruslan_telefon",
         "status" : "enable",
         "uptime" : " 11 seconds ago",
         "username" : "user_32",
         "wg_name" : "77_87_125_209"
      },
      {
         "allowed_IPs" : "10.0.110.12",
         "b_download" : "30",
         "b_upload" : "30",
         "endpoint" : "77.87.125.204",
         "name" : "test_mac",
         "status" : "enable",
         "uptime" : " 4 seconds ago",
         "username" : "test_mac",
         "wg_name" : "77_87_125_209"
      }
   ],
   "status" : "success"
}

Errors:

-Not authorized

Errors:

-Not authorized

Drop user connection IKEv2 protocol

Request Structure: https://<puqvpnvp>/api/v1/ikev2/online/<NAME>

Cookie: access_hash=<access_hash>

Method: DELETE

Example:

curl \
-b "access_hash=def77a57825907131fca3ba92fc22970ffe7429fd8b49535e178f59542c42cf2be854e296941de9f" \
-X DELETE https://dev.softkeel.com/api/v1/ikev2/online/ruslan_telefon

Response example:

{
   "error" : "",
   "msg" : "success",
   "status" : "success"
}

Errors:

-Not authorized