Troubleshooting RADIUSdesk Accel-ppp Agent
- This page will explain some of the working of the RADIUSdesk Accel-ppp Agent as well as some troubleshooting tips.
Startup
- The rd.local startup script does three things
- Configure IP Table rules for NAT.
- Run the /etc/MESHdesk/u.lua script to fetch the Accel-ppp config from RADIUSdesk.
- Start the /etc/MESHdesk/heartbat.lua script to start reporting back to RADIUSdesk.
u.lua
- You can run u.lua manually to see if it fetches its settings
cd /etc/MESHdesk sudo ./u.la E4-5F-01-41-59-70 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2382 0 2382 0 0 14699 0 --:--:-- --:--:-- --:--:-- 14795 Restarting accel-ppp (via systemctl): accel-ppp.service.
- You can confirm that the config was proper formulated and everything is in order with /etc/accel-ppp.conf
sudo cat /etc/accel-ppp.conf
- You can also do the Ajax call which u.lua does from a browser to evaluate the JSON data that RADIUSdesk returns.
- Use the above URL as reference and replace the FQDN with your server's FQDN or IP Address and also the MAC Addres with your device's MAC Address.
- The second part that might need troubleshooting is the reporting side.
report_to_server.lua
- You can run the reporting script manually:
cd /etc/MESHdesk/reporting sudo ./report_to_server.lua
- You should should see something like the following in the output:
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1939 0 39 100 1900 226 11024 --:--:-- --:--:-- --:--:-- 11273 { "success": true, "data": [] } Doing the *light* report
Using accel-cmd
- For security reasons we implement a password when using accel-cmd.
- This password is specified on the Profile of a server.
- You can find the password by looking at the profile on RADIUSdesk's side or by looking at the config file on the device running Accel-ppp.
[cli] password=testing123 telnet=127.0.0.1:2000 verbose=1 tcp=127.0.0.1:2001
- A command will then look like this with the password above.
accel-cmd -P testing123 show stat accel-cmd -P testing123 show sessions