Addicted2keyboards
New Around Here
Hi,
My router in an Asus RT-AX88U and is running the latest firmware (386.8_0). I have it sending event notifications by Telegram bots and now I need to send a notification when an authorized user connects to my VPN.
That information is available in the Web UI (VPN > VPN Status or VPN Server):
I want to obtain the same information for an automated sh script, running from cron, but my trials didn't work. What I tried:
I tested inserting ajax_openvpn_client_status.xml in the browser's address bar, just right after the login page, and it gives me the xml with the exact needed information (the function executes and inserts the data between the %).
Looking for nvram_dump() in the git sources it appears to be defined in the httpd server. So it appears to be only possible to call nvram_dump() from an http session.
Am I missing something or does anyone knows how to get the VPN connected users?
My router in an Asus RT-AX88U and is running the latest firmware (386.8_0). I have it sending event notifications by Telegram bots and now I need to send a notification when an authorized user connects to my VPN.
That information is available in the Web UI (VPN > VPN Status or VPN Server):
I want to obtain the same information for an automated sh script, running from cron, but my trials didn't work. What I tried:
- with nvram get/dump command: can't find any information regarding VPN connected users.
- wiht curl: no matter what recipe I use, I can't pass through the login page.
- even tried with lynx, but also can't pass through the login page.
Code:
<?xml version="1.0" ?>
<vpnserver>
<% nvram_dump("openvpn_connected",""); %>
</vpnserver>
Looking for nvram_dump() in the git sources it appears to be defined in the httpd server. So it appears to be only possible to call nvram_dump() from an http session.
Am I missing something or does anyone knows how to get the VPN connected users?