Difference between revisions of "CoovaChilli"

From ArchWiki
Jump to: navigation, search
(FreeRadius setup)
(Example configuration)
Line 18: Line 18:
 
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.
 
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.
  
* Symlink daloradius to /var/www
 
 
* cp -r /var/www/daloradius/contrib/chilli/portal2/* /var/www/
 
* cp -r /var/www/daloradius/contrib/chilli/portal2/* /var/www/
* rm /var/www/index.html
+
== Daloradius ==
 
+
{{bc|/usr/bin/mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
 +
rm /usr/share/nginx/html/index.html}}
 
== FreeRadius setup ==
 
== FreeRadius setup ==
 
{{hc|/etc/raddb/clients.conf|
 
{{hc|/etc/raddb/clients.conf|
Line 48: Line 48:
 
<nowiki>      $INCLUDE sql.conf</nowiki>
 
<nowiki>      $INCLUDE sql.conf</nowiki>
 
}}
 
}}
 +
== Start and enable applications ==
 +
{{bc|systemctl enable nginx freeradius mysqld
 +
systemctl start nginx freeradius mysqld}}
  
 
= Also read =
 
= Also read =
 
* Original tutorial: http://linux.xvx.cz/2010/03/debian-wi-fi-hotspot-using-coovachilli-freeradius-mysql-and-daloradius/
 
* 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
 
* 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

Revision as of 18:03, 20 May 2013

Summary help replacing me
Covers installation and usage of ncmpcpp (ncmpc++)
Related
mpd - Music Player Daemon

Tango-document-new.pngThis article is a stub.Tango-document-new.png

Notes: Work in progress :) (Discuss in Talk:CoovaChilli#)

Introduction

http://coova.org/CoovaChilli

Installation

Several other applications are required for an example setup of CoovaChilli:

pacman -S freeradius nginx mariadb phpmyadmin php

From the AUR install the following two packages: daloradiusAUR and coova-chilliAUR.

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.

  • cp -r /var/www/daloradius/contrib/chilli/portal2/* /var/www/

Daloradius

Template error: are you trying to use the = sign? Visit Help:Template#Escape template-breaking characters for workarounds.

FreeRadius setup

/etc/raddb/clients.conf
client 127.0.0.1 {
 secret     = mysecret
}

Adjust the following settings:

/etc/raddb/sql.conf
        server = "localhost"
        login = "root"
        password = "xxxx"

Uncomment the following settings:

/etc/freeradius/sites-available/default
authorize {
          sql
}

accounting {
         sql
}

Uncomment the following settings:

/etc/freeradius/radiusd.conf
       $INCLUDE sql.conf

Start and enable applications

systemctl enable nginx freeradius mysqld
systemctl start nginx freeradius mysqld

Also read