Hello, first I'm sorry for my english ;)
I install coova-chilli-1.0.11 and I try configure it, but it isn't easy because my english is not well enough.
My network system is simple: (covachilli, mysql, freeradius)
wan----server(192.168.0.1) and coovachilli----AP(staticIP)----clients(dhcp)
I try use parametrs from manual site, but it don't work -
1. dhcpstart=10, end=50 - clients obtain first free IP (for example 192.168.0.2)
2. Maybe I can use external dhcp server?
3. How I can join AP mac address and IP addres? What I have to do, if I don't want that clients set statis IP the same as my AP address? How I can protect? AP is Linksys WAP54G.
Is my configuration file OK? What I have to change?
I try answer to your questions ;)
<br />
# Coova-Chilli Default Configurations.<br />
# To customize, copy this file to /usr/local/etc/chilli/config<br />
# and edit to your liking. This is included in shell scripts<br />
# that configure chilli and related programs before file 'config'.</p>
<p>###<br />
# Local Network Configurations<br />
#</p>
<p>HS_WANIF=ppp0 # WAN Interface toward the Internet<br />
HS_LANIF=eth1 # Subscriber Interface for client devices<br />
HS_NETWORK=192.168.1.0 # HotSpot Network (must include HS_UAMLISTEN)<br />
HS_NETMASK=255.255.255.0 # HotSpot Network Netmask<br />
HS_UAMLISTEN=192.168.1.1 # HotSpot IP Address (on subscriber network)<br />
HS_UAMPORT=3990 # HotSpot Port (on subscriber network)</p>
<p>###<br />
lease seconds = 60<br />
dhcpif=eth1<br />
HS_DYNIP=192.168.1.0<br />
HS_DYNIP_MASK=255.255.255.0<br />
###Access Point<br />
HS_STATIP=192.168.1.2<br />
HS_STATIP_MASK=255.255.255.255<br />
# HS_DNS_DOMAIN=<br />
HS_DNS1=194.204.159.1<br />
HS_DNS2=194.204.152.34<br />
DHCPSTART=10<br />
DHCPEND=200<br />
###<br />
# HotSpot settings for simple Captive Portal<br />
#<br />
HS_NASID=nas01<br />
HS_UAMSECRET=testing123<br />
HS_RADIUS=localhost<br />
HS_RADIUS2=localhost<br />
HS_RADSECRET=testing123<br />
HS_UAMALLOW=localhost,192.168.1.1</p>
<p># Put entire domains in the walled-garden with DNS inspection<br />
# HS_UAMDOMAINS=".paypal.com,.paypalobjects.com"</p>
<p># Optional initial redirect and RADIUS settings<br />
# HS_SSID= # To send to the captive portal<br />
# HS_NASMAC= # To explicitly set Called-Station-Id<br />
# HS_NASIP= # To explicitly set NAS-IP-Address<br />
## <a href="http://coova.org/wiki/index.php/CoovaAAA/WithCoovaChilli" title="http://coova.org/wiki/index.php/CoovaAAA/WithCoovaChilli">http://coova.org/wiki/index.php/CoovaAAA/WithCoovaChilli</a></p>
<p># The server to be used in combination with HS_UAMFORMAT to<br />
# create the final chilli 'uamserver' url configuration.<br />
HS_UAMSERVER=192.168.1.1</p>
<p># Use HS_UAMFORMAT to define the actual captive portal url.<br />
# Shell variable replacement takes place when evaluated, so here<br />
# HS_UAMSERVER is escaped and later replaced by the pre-defined<br />
# HS_UAMSERVER to form the actual "--uamserver" option in chilli.<br />
HS_UAMFORMAT=https://\$HS_UAMSERVER/cgi-bin/hotspotlogin.cgi</p>
<p># Same principal goes for HS_UAMHOMEPAGE.<br />
HS_UAMHOMEPAGE=http://\$HS_UAMLISTEN:\$HS_UAMPORT/www/coova.html</p>
<p># This option will be configured to be the WISPr LoginURL as well<br />
# as provide "uamService" to the ChilliController. The UAM Service is<br />
# described in: <a href="http://coova.org/wiki/index.php/CoovaChilli/UAMService" title="http://coova.org/wiki/index.php/CoovaChilli/UAMService">http://coova.org/wiki/index.php/CoovaChilli/UAMService</a><br />
#<br />
# HS_UAMSERVICE=https://coova.org/app/uam/auth</p>
<p>###<br />
# Features not activated per-default (default to off)<br />
#<br />
# HS_RADCONF=off # Get some configurations from RADIUS or a URL ('on' and 'url' respectively)<br />
#<br />
# HS_ANYIP=on # Allow any IP address on subscriber LAN<br />
#<br />
# HS_MACAUTH=on # To turn on MAC Authentication<br />
#<br />
# HS_MACAUTHMODE=local # To allow MAC Authentication based on macallowed, not RADIUS<br />
#<br />
# HS_MACALLOWED="..." # List of MAC addresses to authenticate (comma seperated)<br />
#<br />
# HS_USELOCALUSERS=on # To use the /usr/local/etc/chilli/localusers file<br />
#<br />
# HS_OPENIDAUTH=on # To inform the RADIUS server to allow OpenID Auth<br />
#<br />
# HS_WPAGUESTS=on # To inform the RADIUS server to allow WPA Guests<br />
#<br />
# HS_DNSPARANOIA=on # To drop DNS packets containing something other<br />
# # than A, CNAME, SOA, or MX records<br />
#<br />
# HS_OPENIDAUTH=on # To inform the RADIUS server to allow OpenID Auth<br />
# # Will also configure the embedded login forms for OpenID<br />
#<br />
# HS_USE_MAP=on # Short hand for allowing the required google<br />
# # sites to use Google maps (adds many google sites!)<br />
#<br />
###<br />
# Other feature settings and their defaults<br />
#<br />
###<br />
HS_DEFSESSIONTIMEOUT=3 # Default session-timeout if not defined by RADIUS (0 for unlimited)<br />
#<br />
HS_DEFIDLETIMEOUT=4 # Default idle-timeout if not defined by RADIUS (0 for unlimited)</p>
<p>###<br />
# Centralized configuration options examples<br />
#<br />
# HS_RADCONF=url # requires curl<br />
# HS_RADCONF_URL=https://coova.org/app/ap/config</p>
<p># HS_RADCONF=on # gather the ChilliSpot-Config attributes in<br />
# # Administrative-User login<br />
# HS_RADCONF_SERVER=192.168.1.1 # RADIUS Server<br />
# HS_RADCONF_SECRET=testing123 # RADIUS Shared Secret<br />
# HS_RADCONF_AUTHPORT=1812 # Auth port<br />
# HS_RADCONF_USER=chillispot # Username<br />
# HS_RADCONF_PWD=chillispot # Password</p>
<p>###<br />
# Standard configurations<br />
#<br />
HS_MODE=hotspot<br />
HS_TYPE=chillispot<br />
# HS_RADAUTH=1812<br />
# HS_RADACCT=1813<br />
# HS_ADMUSR=chillispot<br />
# HS_ADMPWD=chillispot</p>
<p>###<br />
# Post-Auth proxy settings<br />
#<br />
# HS_POSTAUTH_PROXY=<br />
# HS_POSTAUTH_PROXYPORT=</p>
<p># Directory specifying where internal web pages can be served<br />
# by chilli with url /www/. Only extentions like .html<br />
# .jpg, .gif, .png, .js are allowed. See below for using .chi as a<br />
# CGI extension.<br />
HS_WWWDIR=/var/www/chilli<br />
#HS_WWWDIR=/usr/local/etc/chilli/www</p>
<p># Using this option assumes 'haserl' is installed per-default<br />
# but, and CGI type program can ran from wwwsh to process requests<br />
# to chilli with url /www/filename.chi<br />
#HS_WWWBIN=/usr/local/etc/chilli/wwwsh<br />
HS_WWWBIN=/var/www/cgi-bin</p>
<p># Some configurations used in certain user interfaces<br />
#<br />
HS_PROVIDER=Coova<br />
HS_PROVIDER_LINK=http://www.coova.org/</p>
<p>###<br />
# WISPr RADIUS Attribute support<br />
#</p>
<p>HS_LOC_NAME="My HotSpot" # WISPr Location Name and used in portal</p>
<p># WISPr settings (to form a proper WISPr-Location-Id)<br />
# HS_LOC_NETWORK="My Network" # Network name<br />
# HS_LOC_AC=408 # Phone area code<br />
# HS_LOC_CC=1 # Phone country code<br />
# HS_LOC_ISOCC=US # ISO Country cod<br />