coova / coova-chilli

CoovaChilli is an open-source software access controller for captive portal hotspots.
Other
516 stars 258 forks source link

local authentification #403

Open userxd opened 6 years ago

userxd commented 6 years ago

I would like to configure chilli to use login page and local authentication without relying on free raidius?

In the Openwrt wiki, these would be some basic settings to use with radius

###################### `config chilli option radiusnasid "xxxxxxxxx" option radiussecret "xxxxxxxxx" option uamsecret "xxxxxxxxx"

option locationname "" option radiuslocationname "," option radiuslocationid "isocc=,cc=,ac=,network="

option radiusserver1 radius.hotspotsystem.com option radiusserver2 radius2.hotspotsystem.com

option dhcpif br-lan

option dns1 8.8.8.8 option dns2 8.8.4.4

option tundev 'tun0' option net 192.168.180.0/22 # For 1000 addresses. Default is 182/24 subnet option uamlisten 192.168.182.1 # keep it at 182.1 despite the 180/22 subnet option lease 86400 # 1 day option leaseplus 600 # plus 10 minutes

option uamserver "https://customer.hotspotsystem.com/customer/hotspotlogin.php" option uamuiport 4990 # HotSpot UAM "UI" Port (on subscriber network) option uamanydns 1

option uamaliasip 1.0.0.1 # default: http://1.0.0.1 will goto login page

option uamaliasname login # http://login will goto login page

option uamlogoutip 1.0.0.0 # default: http://1.0.0.0 will logout

option nouamsuccess 1 # no success page, to original requested URL

instead. option uamallowed "customer.hotspotsystem.com,www.directebanking.com,betalen.rabobank.nl,ideal.ing.nl,ideal.abnamro.nl,www.ing.nl"

option uamdomain ".paypal.com,.paypalobjects.com,.worldpay.com,.rbsworldpay.com,.adyen.com,.hotspotsystem.com"

option swapoctets 1 # swap input and output octets option interval 3600 # config file and host lookup refresh

option ipup '/etc/chilli/up.sh' option ipdown '/etc/chilli/down.sh' ` ######################

I found the mention of the localuser option that supposedly would activate the feature but could not make it work, and did not see any login page.

`option localusers '/etc/chilli/localusers'

option radiusserver1 '127.0.0.1' ` vi /etc/chilli/localusers user:password

I did not even see the chilli login page. Could someone help me to make this work?