Professional Documents
Culture Documents
system by the Internet from the port of Raspberry Pi to the WAN pin. Wireless USB to be. LAN
Hotspot. If the device to connect to the access point released from USB Wireless will receive
the IP in the Hotspot, and when launched, the web browser Hotspot system will run the Login
page to allow users to use the Hotspot. And password to enter. User-use system that will be
available in the Database of the system to access it. It also has an administrator's admin page
for user management and other system information.
conclude
## Wiresless must support the USB with Raspberry Pi and Driver must have a Raspberry Pi to a
## CoovaChilli Coova of Chilli act as a DHCP Server in the management of IP and IP to deal with
the Client to connect to the WIFI
##. RADIUS (Common Remote Authentication Dial In User Server) Authentication and
Authentication System Freeradius
## Captive Portal is to force the user to access the HTTP page to force the user to authenticate
the user before accessing the resource.
Turn off turbo mode
auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.10.1
netmask 255.255.255.0
network 192.168.10.0
post-up echo 1> / proc / sys / net / ipv4 / ip_forward
Freeradius
Install mysql and configure it for databases.
Install database schema radius and directors and install tables for NAS.
mysql -u root -praspbian radius </etc/freeradius/sql/mysql/schema.sql
mysql -u root -praspbian radius </etc/freeradius/sql/mysql/admin.sql
mysql -u root -praspbian radius </ etc /freeradius/sql/mysql/nas.sql
CoovaChilli
Compilation and installation of CoovaChilli
Download and install CoovaChilli.
cd / usr / src
wget http://ap.coova.org/chilli/coova-chilli-1.3.0.tar.gz
tar zxvf coova-chilli-1.3.0.tar.gz
cd co-chilli-1.3.0
Download a file and install Haserl for UNIX scripts or LUA scripts and it will generate CGI.
cd / usr / src
wget http://downloads.sourceforge.net/project/haserl/haserl-devel/haserl-0.9.35.tar.gz
tar zxvf haserl-0.9.35.tar.gz
cd haserl-0.9.35
./configure && make && make install
Configure CoovaChilli
Add the text below to the bottom.
iptables -I POSTROUTING -t nat -o $ HS_WANIF -j MASQUERADE
Edit the file / etc / default / chilli Change the value from 0 to 1 instead.
sudo nano / etc / default / chilli
Edit file / etc / chilli / wwwsh of line 9 is haserl = / usr / local / bin / haserl
sudo nano / etc / chilli / wwwsh
Edit the sudo nano / etc / chilli / defaults file. By configuring the interfaces used passwd
network, etc., the following values are deleted by removing the # after the edit.
sudo nano / etc / chilli / defaults
Edit as:
HS_WANIF = eth0
HS_LANIF = wlan0
HS_NETWORK = 192.168.10.0
HS_UAMLISTEN = 192.168.10.1
HS_UAMALLOW = 192.168.10.0 / 24
HS_SSID = PiHomeServerAP
Update chilli values and start chilli.
update-rc.d chilli start 99 2 3 4 5. stop 20 0 1 6.
service chilli start
Check out the tun0 interface for chilli with the command.
ifconfig
Hostapd
Install hostapd to see WIFI signals.
user = usertest
password = passwd
If the code is valid, can connect to the internet.
daloRADIUS
Install web server and Nginx.
aptitude
get -y
Download daloRadius
cd / usr / src
wget http://downloads.sourceforge.net/project/daloradius/daloradius/daloradius0.9-
9/daloradius-0.9-9.tar.gz
tar zxvf daloradius-0.9-9.tar.gz -C / usr / share / nginx / www /
/usr/share/nginx/www/daloradius-0.9-9 mv-/ Usr / Share / NGINX / the www / Daloradius
a cd / Usr / Share / NGINX / the www / Daloradius.
Then remove the # from the / etc / nginx / sites-enabled / default file.
location ~ .php $ {
fastcgi_split_path_info ^ (. + \. php) (/.+) $;
fastcgi_pass unix: /var/run/PHP5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
List User
online user
Status System
VIDEO
RF: http://www.pihomeserver.fr/en/2015/08/05/raspberry-pi-coovachilli-et-freeradius-pour-
un-hotspot-wifi-avec-portail-captif/
http://micro2440.blogspot.com/
https://www.facebook.com/BooindyIt?ref=hl
https://www.youtube.com/channel/UCDs7h_zNn444ONo5J3Ot3iQ/videos?sort=dd&view=0
&shelf_id=1