Table of Contents

CoovaChilli on RouterBOARD 750Gr3

Introduction

The Concept

Opening the Firewall on WAN side

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'