# -*- mode: shell-script; -*-
#
#   Coova-Chilli Default Configurations.
#   To customize, copy this file to /etc/chilli/config
#   and edit to your liking. This is included in shell scripts
#   that configure chilli and related programs before file 'config'.


###
#   Local Network Configurations
#

HS_WANIF=eth0            # WAN Interface toward the Internet
HS_LANIF=eth1              # Subscriber Interface for client devices
HS_NETWORK=@@hs_network@@        # HotSpot Network (must include HS_UAMLISTEN)
HS_NETMASK=@@hs_netmask@@  # HotSpot Network Netmask
HS_UAMLISTEN=@@hs_ip@@      # HotSpot IP Address (on subscriber network)
HS_UAMPORT=3990            # HotSpot UAM Port (on subscriber network)
HS_UAMUIPORT=4990          # HotSpot UAM "UI" Port (on subscriber network, for embedded portal)

# DNS Servers
HS_DNS1=@@hs_dns1@@
HS_DNS2=@@hs_dns2@@

###
# allowed ports on host without auth 8080 for proxy needed
# needs firewall rule in ipup.sh!
HS_TCP_PORTS="80 443 8080"

###
##   HotSpot settings for simple Captive Portal
##
HS_NASID=nas01
HS_RADIUS=localhost
HS_RADIUS2=localhost
HS_UAMALLOW="@@hs_uamallow@@"
HS_RADSECRET=@@shared_secret@@    # Set to be your RADIUS shared secret
HS_UAMSECRET=@@uam_secret@@     # Set to be your UAM secret
HS_UAMALIASNAME=chilli
#   The server to be used in combination with HS_UAMFORMAT to
#   create the final chilli 'uamserver' url configuration.
HS_UAMSERVER=$HS_UAMLISTEN
#   Use HS_UAMFORMAT to define the actual captive portal url.
#   Shell variable replacement takes place when evaluated, so here
#   HS_UAMSERVER is escaped and later replaced by the pre-defined
#   HS_UAMSERVER to form the actual "--uamserver" option in chilli.
HS_UAMFORMAT=http://\$HS_UAMLISTEN:\$HS_UAMUIPORT/www/login.chi
#   Same principal goes for HS_UAMHOMEPAGE.
HS_UAMHOMEPAGE=http://\$HS_UAMLISTEN:\$HS_UAMPORT/www/coova.html

###
##   Standard configurations
##
HS_MODE=hotspot
HS_TYPE=chillispot

#   Directory specifying where internal web pages can be served
#   by chilli with url /www/<file name>. Only extentions like .html
#   .jpg, .gif, .png, .js are allowed. See below for using .chi as a
#   CGI extension.
HS_WWWDIR=/etc/chilli/www

#   Using this option assumes 'haserl' is installed per-default
#   but, and CGI type program can ran from wwwsh to process requests
#   to chilli with url /www/filename.chi
HS_WWWBIN=/etc/chilli/wwwsh

#    Some configurations used in certain user interfaces
HS_PROVIDER=Coova
HS_PROVIDER_LINK=http://www.linuxmuster.net/

# Wenn im Radius kein Session Timeout definiert wurde,
# wann fliegt der Hotspot User wieder raus (auch mitten
# im Surfen!)
HS_DEFSESSIONTIMEOUT=0   # In Sekunden

# # Wenn nichts passiert, wann fliegt der Hotspot User raus
HS_DEFIDLETIMEOUT=@@hs_idletimeout@@       # In Sekunden

###
##   WISPr RADIUS Attribute support
HS_LOC_NAME="@@hs_heading@@"           # WISPr Location Name and used in portal

###
# setting radius auth type to pap
HS_RAD_PROTO="pap"



