Skip to content

sebabordon/openwrt-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

openwrt-tools

Openwrt Scripts made by me... OpenVPN Server - Client list on status Page

This simple and raw page + scrip will give you in the status page, the list of active OpenVPN Clients The script will get the status from the openvpn default status on /var/run/openvpn..status and post it to a file in /tmp The html status page will get that information preformatted from the file and display it on the homepage of openwrt.

image

Instructions copy client-status.sh to a folder of your liking, maybe /etc/openvpn/ copy openvpn.htm to /usr/lib/lua/luci/view/admin_status/index/ (index folder might not exist on your installation) Add a new scheduled tasks on Openwrt, with the line

*/1 * * * * /etc/openvpn/client-status.sh

Wait one minute for the client generation script to run and the clients will appear on the home page. I could not get the HTML page to run the script so I resorted to the scheduled task.

This was made possible by some scripts I've found on the Openwrt Forums, so the credit is not fully mine. I will try to address the names as soon as I can find them. I'm sure it can be made simpler in a single html page but I lack the knowledge to do it

About

Openwrt Scripts made by me...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages