Setting up Linksys WRT54GL+CoovaAP+FreeRADIUS as a hotspot

Hello. I'm trying to set up a Linksys WRT54GL router running the CoovaAP firmware to act as a wireless hotspot using an external freeradius server for user authentication. Unfortunately I have been unsuccessful so far in my endeavor so I need your help. When I set the hotspot type from the administrative interface to internal all works like a charm. The problems start when I switch to ChilliSpot UAM. I set all the required settings - the radius server ip addres, administrative user name and password for it. But when I try to connect to the hotspot afterwards nothing happens - no login page, no nothing. The radius server runs on another machine connected to the router via ethernet. The router's LAN ip is 192.168.1.1 and the radius server runs on a machine whose ip is 192.168.1.101. I have tested the radius server with radtest - it works ok. I guess that even if the radius is not working I should see Coova's hotspot login page, but I get nothing at all. I only use simple unix /etc/passwd authentication in freeradius if this matters. Am I missing something? If anyone can render me some assistance I'll be most grateful. Thanks in advance for your help.

Re: Setting up Linksys WRT54GL+CoovaAP+FreeRADIUS as a hotsp

I too received the dialog box. Why is this appearing? As in my earlier posts, I am having trouble understanding why an error is reached after the redirect to http://10.1.0.1:3660/prelogin." target="_blank Does anyone know why the dialog auth box appears and perhaps why prelogin is failing?

Re: Setting up Linksys WRT54GL+CoovaAP+FreeRADIUS as a hotsp

This problem solved. Need delete from Access Lists ip 10.1.0.1 (ip AP point).

But i have next problem, if opening any site, it me redirecting to page http://10.1.0.1:3660/prelogin," target="_blank AND this page not found (error 404).
The problem actual, is at whom that ideas how to solve?

<br />
vi /etc/chilli.conf

include /etc/chilli/main.conf
include /etc/chilli/hs.conf
include /etc/chilli/local.conf

ipup=/etc/chilli/up.sh
ipdown=/etc/chilli/down.sh

vi /etc/chilli/main.conf
# THIS FILE IS AUTOMATICALLY GENERATED
cmdsocket /var/run/chilli.sock
pidfile /var/run/chilli.pid
net 10.1.0.0/255.255.255.0
uamlisten 10.1.0.1
uamport 3660
dhcpif br0
adminuser chillispot
adminpasswd chillispot
uamallowed coova.org,localhost.ap.coova.org,192.168.1.50
uamanydns

uamanyip
dynip 10.1.0.0/255.255.255.0
nasip 192.168.1.40
nasmac 00-23-69-1A-6D-4D
domain cap.coova.org
dns1 10.1.0.1
dns2 192.168.1.40
uamhomepage http://10.1.0.1:3660/www/coova.html" target="_blank
wwwdir /etc/chilli/www
wwwbin /etc/chilli/wwwsh
uamuiport 3442
macallowlocal
localusers /etc/chilli/localusers
locationname "My HotSpot"
radiuslocationname My_HotSpot
radiuslocationid isocc=,cc=,ac=,network=Coova,Coova
radiusserver1 192.168.1.50
radiusserver2 rad01.coova.org
radiussecret testing123
radiusauthport 1812
radiusacctport 1813
uamserver http://localhost.ap.coova.org/cgi-bin/hotspotlogin.cgi" target="_blank
radiusnasid 00-23-69-1A-6D-4D

papalwaysok
uamsecret testing123
definteriminterval 10

<br />
vi include /etc/chilli/local.conf

uamallowed=10.1.0.1:80

<br />
vi /etc/chilli/hs.conf

empty

Re: Setting up Linksys WRT54GL+CoovaAP+FreeRADIUS as a hotsp

I have problem.

Config network

WRT54GL
WAN
IP=192.168.1.40
GW=192.168.1.1
DNS=192.168.1.1
LAN
IP=10.0.0.1
DNS1=192.168.1.1
DNS2=10.0.0.1
HOtSPOT
DHCP=10.1.0.1
GW=10.1.0.0.1
DNS=10.1.0.0.1
ChilliSpotUAM
UAM Hostname localhost.ap.coova.org
UAM Secret=testing123
RADIUS Configurations=10.0.0.121
Shared Secret=testing123

Radius Server (freeRadius)
IP=10.0.0.121
radius_port =1812
allow user from 10.0.0.0/8
Secret=testing123

ClientHotSPOt Client (Wireless)
IP=10.1.0.4
DHCP Server=10.1.0.1
GW=10.1.0.0.1
DNS=10.1.0.0.1

If I am open for example google.com (Firefox ), from ClientHotSPOt Client
I redirecting to 10.1.0.1:3660/www/coova.html?loginurl=http://%3a%2f%2flocalhost.ap.coova.org.........
AND GET FORM FOR authentication FOR ACCESS ADMIN
(SCREEN VIEW)

HELP ME PLEASE !!!

My Config
wan_device=vlan1
wan_web_admin=https
wan_gateway=192.168.1.1
wan_netmask=255.255.255.0
wan_dns=192.168.1.1
wan_proto=static
wan_ipaddr=192.168.1.40
wan_ssh_admin=on
wan_ifname=vlan1
wan_hostname=CoovaAP
lan_netmask=255.255.255.0
lan_dns=192.168.1.1 10.0.0.1
lan_ifnames=vlan0 eth1 eth2
lan_proto=static
lan_ipaddr=10.0.0.1
lan_ifname=br0
wl0_infra=1
wl0_ifname=eth1
wl0_mode=ap
wl0_ssid=Coova
wl0_radio=1
wifi_netmask=
wifi_ifnames=
wifi_proto=
wifi_ipaddr=
wifi_ifname=
ddns_enable=0
ddns_service_type=dyndns
hs_uamsecret=testing123
hs_uamformat=http://$HS_UAMSERVER/uam/tos/tos.cgi
hs_macallow=
hs_owner_email=alex@zu.edu.ua
hs_defsessiontimeout=0
hs_defidletimeout=0
hs_uamdomains=
hs_type=chillispot
hs_uamallow=10.1.0.4 10.1.0.1
hs_macauth=off
hs_radconf_authport=1812
hs_openidauth=off
hs_radauth=1812
hs_ssh_admin=on
hs_uamhomepage=http://$HS_UAMLISTEN:$HS_UAMPORT/www/coova.html
hs_radconf_server=rad01.coova.org
hs_radconf_pwd=coovachilli
hs_adminterval=3600
hs_nasid=00-23-69-1A-6D-4D
hs_reg_mode=off
hs_radconf_user=coova-ap-tos
hs_uselocalusers=on
hs_reg_proto=http
hs_radconf_secret=coova-anonymous
hs_wpaguests=off
hs_wwwdir=/etc/chilli/www
hs_web_admin=off
hs_admpwd=chillispot
hs_radius=10.0.0.121
hs_uamserver=localhost.ap.coova.org
hs_uamport=3660
hs_radsecret=testing123
hs_lan_access=deny
hs_macauthmode=local
hs_definteriminterval=300
hs_mode=wireless
hs_admusr=chillispot
hs_radconf=off
hs_radacct=1813
boot_wait=on

Re: Setting up Linksys WRT54GL+CoovaAP+FreeRADIUS as a hotsp

Thanks, David. I saw this only seconds after I posted my message. I cannot believe I didn't see it earlier.

Re: Setting up Linksys WRT54GL+CoovaAP+FreeRADIUS as a hotsp

Sorry for the problem. The interface was designed to make it easy to switch between servers running the same captive portal application - like switching from a development to a production server. Change the URL "format" in the Advanced section, which allows for a variable replacement (see the example already there). Then go back and only put in the hostname or IP addresss in the field you are referring to.

Re: Setting up Linksys WRT54GL+CoovaAP+FreeRADIUS as a hotsp

Yes, I know. But now I am simply building a prototype for a network of Hotspots and I used a radius on my internal network only for testing purposes. I finally managed to get everything working - CoovaChilli UAM + FreeRADIUS + MySQL. I have only one problem left. I'm still using the hotstoplogin.cgi script from the original ChilliSpot, instead of the JSON interface recommended by you, because I'm having little trouble understanding it. Anyways while setting up this hotspot prototype I noticed the lack of howtos for such complete solutions. The community can really benefit from such howtos for at least the most common setups/scenarios. I'm willing myself to write one about CAP + FreeRadius + MySQL. Otherwise I'd like to congratulate on the great work. Coova is really a fine piece of software.

Re: Setting up Linksys WRT54GL+CoovaAP+FreeRADIUS as a hotsp

You can use your own RADIUS server with the embedded captive portal too. When selecting the ChilliSpot UAM hotspot type, make sure your setting under 'Advanced' are good. Regarding your RADIUS server, is it meant to be on the same network as your subscribers? It really shouldn't be. You should put it on a network connected to your WAN - not in the same network as your chilli DHCP. Know what I mean?