I have the following code working now to create vouchers. I don't need the auto naming for the vouchers, I am trying to set the name myself but the 'password' variable is ignored? The 'password' variable holds the auto naming text as returned when looking up the voucher in the GUI. Anyone know how to override this? $url = 'http://my-radiusdesk-domain.com/cake3/rd_cake/vouchers/add.json'; $token = 'my-token'; $profile_id = 1; $realm_id = 1; $password = 'my-own-name-for-voucher'; // Set the voucher...
Does anyone know how to create vouchers using the API in RadiusDesk? There is no documentation regarding this. I have the following code but without knowing the required variables I cannot go any further. $url = 'http://my-radiusdesk-domain.com/cake3/rd_cake/vouchers/add.json'; $token = 'my-token'; // Set the voucher data $data = [ 'token' => $token ]; // Initialize cURL $curl = curl_init(); // Set cURL options curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl,...
I resolved this. Added the following to /etc/chilli/ipup.sh iptables -I POSTROUTING -t nat -o $HS_WANIF -j MASQUERADE I also had to put quotes around the options vars and make sure that my radius server, DNS servers and Coova-chilli listening instance (10.19.73.1) were in the uamallowed list. option uamserver "http://myradiusserver.com/landingpage.html" option uamallowed "10.19.73.1,192.168.2.199,8.8.8.8,8.8.4.4" option uamdomain ".myallowedsite.com"
Hi all, Has anyone managed to get CoovaChilli working on OpenWrt ver 18 and up and also Ubuntu. I have put over 50 hours into this now and getting CoovaChilli 1.6 to run and allocate an IP address from the captive portal pool but there is no redirection to the RadiusDesk landing page nor is it allowing access to IP's set in 'option uamallowed' or domains set in 'option uamdomain'. 'option dhcpif' is set with wlan0 which is the wireless network and the LAN is not bridged. Firewall and routes look...
Hi all, Has anyone managed to get CoovaChilli working on OpenWrt ver 18 and up. I have put over 50 hours into this now and getting CoovaChilli 1.6 to run and allocate an IP address from the captive portal pool but there is no redirection to the RadiusDesk landing page nor is it allowing access to IP's set in 'option uamallowed' or domains set in 'option uamdomain'. 'option dhcpif' is set with wlan0 which is the wireless network and the LAN is not bridged. Firewall and routes look good. It's like...
Hi all, Has anyone managed to get CoovaChilli working on OpenWrt ver 18 and up. I have put over 50 hours into this now and getting CoovaChilli 1.6 to run and allocate an IP address from the captive portal pool but there is no redirection to the RadiusDesk landing page nor is it allowing access to IP's set in 'option uamallowed' or domains set in 'option uamdomain'. 'option dhcpif' is set with wlan0 which is the wireless network and the LAN is not bridged. Firewall and routes look good. It's like...
Does anyone know if the following setup is possible: 1) Ubuntu PC with 1 WAN nic and 1 LAN (running Coova Chilli) nic for the clients . 2) Lots of WiFi access points (not running Coova Chilli) connected by ethernet to the LAN. Will the clients be redirected to the Hotspot login page running on the Ubuntu PC when they connect to the WiFi access point or will all of the Wifi access points need Coova Chilli running on them for this to work?
So I built my own OpenWrt image and added the required packages lua, luasocket, ibuci-lua, batman-adv, zzz-Meshdesk et. When I boot the Raspberry Pi it will not connect to the MESHdesk Node config utility. I have SSH'd onto the device and tried to manually start Meshdesk by running the command '/etc/init.d/md_prerun start' and Meshdesk does not start. I get the following error: 'attempt to index global 'socket' (a nil value) Can anyone offer advice or help me with this?