CoovaChilli on RouterBOARD 750Gr3
Introduction
This page will cover the procedure you need to take in order to get CoovaChilli up and running on a RouterBOARD 750Gr3 flashed with OpenWRT
The CoovaChilli that comes standard with the 19.07.x version of OpenWRT does not work well with RADIUSdesk and you need to create your own. That procedure we also thoroughly documented on a dedicated page.
We assume you have a Router freshly flashed with this built of OpenWRT
The Concept
Opening the Firewall on WAN side
The firewall rules are defined in /etc/config/firewall
Edit this file and add the following items at the bottom
Opening for Luci is optional
config rule
option name 'Allow-SSH'
option target ACCEPT
option src 'wan'
option dest_port '22'
option proto 'tcp'
option family 'ipv4'
config rule
option name 'Allow-Luci'
option target ACCEPT
option src 'wan'
option dest_port '80'
option proto 'tcp'
option family 'ipv4'
Edit Coova Chilli config file
- chilli
config chilli
# option disabled 0
option radiusnasid "ZA-OpenWRT-MT1"
option radiussecret "testing123"
option uamsecret "greatsecret"
# Radius parameters (change to the one for your provider)
option radiusserver1 43.200.100.192
option dhcpif br-lan
option dns1 8.8.8.8
option dns2 8.8.4.4
option tundev 'tun0'
option net 10.1.0.0/16 # For 1000 addresses. Default is 182/24 subnet
option uamlisten 10.1.0.1 # keep it at 182.1 despite the 180/22 subnet
#Add this for the miniportal for proper captive portal detection on Apple
option uamhomepage "http://10.1.0.1:3990/www/coova.html"
option wwwdir "/etc/chilli/www"
# Universal access method (UAM) parameters
option uamserver "http://hotspot.radiusdesk.com/cake3/rd_cake/dynamic-details/chilli-browser-detect/"
option uamport 3990
option ssid demo1
# Various debug and optimization values
option swapoctets 1 # swap input and output octets
option interval 3600 # config file and host lookup refresh
# Add the chilli firewall rules
option ipup '/etc/chilli/up.sh'
option ipdown '/etc/chilli/down.sh'