How pasha1neo/luci-app-adguardvpn works
This repository is an OpenWrt LuCI interface for managing AdGuard VPN. The main workflow is to inspect status and account information, choose connection settings or a location, and operate the VPN through the CLI; users can also authenticate and inspect client logs. The sampled settings view shows CLI and login-helper calls, while the README documents service management and configuration-triggered restarts. Other setting-to-service details are documented but their implementation was not sampled.
Main entry points: settings.js Status and settings · logs.js Log viewer · adguardvpn-login Login helper · adguardvpn VPN configuration
Components 10
LuCI interface
- Status and settings
htdocs/luci-static/resources/view/adguardvpn/settings.js - Log viewer
htdocs/luci-static/resources/view/adguardvpn/logs.js
VPN runtime
- Login helper
root/usr/libexec/adguardvpn-login - AdGuard VPN CLI
- VPN log files
OpenWrt integration
- VPN configuration
root/etc/config/adguardvpn - Init service
root/etc/init.d/adguardvpn - LuCI menu entry
root/usr/share/luci/menu.d/luci-app-adguardvpn.json - RPC access rules
root/usr/share/rpcd/acl.d/luci-app-adguardvpn.json
Other components
- Router administrator
Connections 9
- Router administrator → Status and settings: manages VPN
README.md - Router administrator → Log viewer: views logs
README.md - Status and settings → AdGuard VPN CLI: runs commands
htdocs/luci-static/resources/view/adguardvpn/settings.js - Status and settings → Login helper: starts or stops
htdocs/luci-static/resources/view/adguardvpn/settings.js - Login helper → AdGuard VPN CLI: supports login
- Log viewer → VPN log files: tails selected log
htdocs/luci-static/resources/view/adguardvpn/logs.js - Init service → AdGuard VPN CLI: manages client
README.md - VPN configuration → Init service: triggers restart
README.md - Status and settings → VPN configuration: sets connection options
README.md