Difference between revisions of "CoovaChilli"

From ArchWiki
Jump to: navigation, search
(rm style template)
(archive per template)
Line 1: Line 1:
#REDIRECT: [[ArchWiki:Archive]]
{{Archive|Not packaged for Arch.}}
{{Style|See [[Help:Style]]}}
== 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 ===
<nowiki>client {
secret    = mysecret
Adjust the following settings:
<nowiki>        server = "localhost"
        login = "root"
        password = "xxxx"</nowiki>
Uncomment the following settings:
<nowiki>authorize {
accounting {
Uncomment the following settings:
<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 ==
== 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:
<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:
<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: