Difference between revisions of "CoovaChilli"

From ArchWiki
Jump to: navigation, search
(rm style template)
(archive per template)
 
Line 1: Line 1:
[[Category:Networking]]
+
#REDIRECT: [[ArchWiki:Archive]]
{{Archive|Not packaged for Arch.}}
 
{{Style|See [[Help:Style]]}}
 
http://coova.org/CoovaChilli
 
== Installation ==
 
Several other applications are required for an example setup of CoovaChilli. [[Install]] the following:
 
* {{pkg|freeradius}}
 
* {{pkg|nginx}}
 
* {{pkg|mariadb}}
 
* {{pkg|php}}
 
* {{AUR|daloradius}}
 
*{{AUR|coova-chilli}}{{Broken package link|{{aur-mirror|coova-chilli}}}}.
 
 
 
== Example configuration ==
 
Example configuration for a full and working CoovaChilli setup.
 
Consider '''eth0''' is the interface for our incoming internet connection and '''eth1''' is the gateway interface for our unknown wifi clients and is coonnected to various hot-spots.
 
 
 
=== FreeRadius ===
 
{{hc|/etc/raddb/clients.conf|
 
<nowiki>client 127.0.0.1 {
 
secret    = mysecret
 
}</nowiki>
 
}}
 
Adjust the following settings:
 
{{hc|/etc/raddb/sql.conf|
 
<nowiki>        server = "localhost"
 
        login = "root"
 
        password = "xxxx"</nowiki>
 
}}
 
Uncomment the following settings:
 
{{hc|/etc/raddb/sites-available/default|
 
<nowiki>authorize {
 
          sql
 
}
 
 
 
accounting {
 
        sql
 
}</nowiki>
 
}}
 
Uncomment the following settings:
 
{{hc|/etc/raddb/radiusd.conf|
 
<nowiki>      $INCLUDE sql.conf</nowiki>
 
}}
 
 
 
=== Mysql database setup ===
 
 
 
Setup [[MariaDB]] and choose a password for the mysql root user.
 
{{bc|<nowiki>$ mysql -u root -p
 
mysql> CREATE DATABASE radius;
 
mysql> exit
 
$ mysql -u root -p radius < /usr/share/nginx/html/daloradius/contrib/db/fr2-mysql-daloradius-and-freeradius.sql</nowiki>
 
}}
 
 
 
== CoovaChilli ==
 
 
 
{{hc|/etc/chilli/defaults|
 
<nowiki>HS_NETWORK=192.168.10.0
 
HS_UAMLISTEN=192.168.10.1
 
 
 
HS_RADSECRET=mysecret
 
HS_UAMSECRET=uamsecret
 
HS_UAMFORMAT=https://\$HS_UAMLISTEN/hotspotlogin/hotspotlogin.php
 
HS_UAMHOMEPAGE=https://\$HS_UAMLISTEN</nowiki>
 
}}
 
 
 
== daloRADIUS ==
 
 
 
{{bc|<nowiki>$ rm /usr/share/nginx/html/index.html
 
$ cp -r /usr/share/webapps/daloradius/contrib/chilli/portal2/* /usr/share/nginx/html/</nowiki>}}
 
Adjust the following config values:
 
{{hc|/usr/share/nginx/html/daloradius/library/daloradius.conf.php|
 
<nowiki>$configValues['CONFIG_DB_PASS'] = 'xxxx';
 
$configValues['CONFIG_MAINT_TEST_USER_RADIUSSECRET'] = 'mysecret';
 
$configValues['CONFIG_DB_TBL_RADUSERGROUP'] = 'radusergroup';</nowiki>
 
}}
 
Also in these several files:
 
{{hc|/usr/share/nginx/html/signup-*/library/daloradius.conf.php|
 
<nowiki>$configValues['CONFIG_DB_PASS'] = 'xxxx';
 
$configValues['CONFIG_DB_NAME'] = 'radius';
 
$configValues['CONFIG_DB_TBL_RADUSERGROUP'] = 'radusergroup';
 
$configValues['CONFIG_SIGNUP_SUCCESS_MSG_LOGIN_LINK'] = "<br />Click <b>here</b>".
 
                                        " to return to the Login page and start your surfing<br /><br />";</nowiki>
 
}}
 
 
 
== Start and enable applications ==
 
 
 
{{bc|$ systemctl enable nginx freeradius mysqld coova-chilli
 
$ systemctl start nginx freeradius mysqld coova-chilli}}
 
 
 
== See also ==
 
 
 
* Original tutorial: http://linux.xvx.cz/2010/03/debian-wi-fi-hotspot-using-coovachilli-freeradius-mysql-and-daloradius/
 
* List of Open Source capative portal software and network access control: https://mohammadthalif.wordpress.com/2010/12/14/list-of-open-source-captive-portal-software-and-network-access-control-nac/#comment-428
 

Latest revision as of 14:30, 18 September 2017

Redirect to: