Beruflich Dokumente
Kultur Dokumente
C O N F I G U R E&I N S T A L L
./configure; make; make install
Hom e LINUX SQUID HOT SPOT MIKROT IK WINDOWS Links Download My Labs About Me
Translate
Seleccionar idioma
Con la tecnologa de
Traductor de Google
Search
Search
Blog Archive
2013 (28) May (5) April (6) March (6) Easyhotspot in Centos 6.4 httpd: apr_sockaddr_info_get() failed for "hostnam... Cache Youtube Video with Squid 3.3.2 and Nginx Transparent Squid 3.3.2 on Ubuntu 12.10 + Shorewal... Transparent Squid 3.3.2 / 3.2.8 on Ubuntu 12.10 +... Squid 3.3.2 / 3.2.8 : Example Squid.conf February (3) January (8) 2012 (14)
Labels
LINUX (33) HOTSPOT (15) SQUID (12) MIKROTIK (8) CACTI (4) WINDOWS (4) SNMP (3) SHOREWALL (2) CISCO (1)
2 1 7 3 1
1/5
myconfigure.blogspot.com/2013/03/easyhotspot-in-centos-64.html
24/05/13
Follow ers
Members (3)
There is no password for Mysql root, so if you want to change the mysql root password, do this mysqladmin -u root password <new password> Then edit /var/www/html/easyhotspot/system/application/config/database.php Place the login file for client to /var/www/cgi-bin/ cp /opt/EasyHotspot/hotspot/hotspotlogin.cgi /var/www/cgi-bin/ edit hotspotlogin.cgi file and make sure uamsecret is correct. uamsecret = easyhotspot 3. Install Freeradius 2.1.12 yum install freeradius freeradius-mysql freeradius-utils chk config --level 235 radiusd on Edit /etc/raddb/clients.conf and in the client localhost section make sure you have, ipaddr = 127.0.0.1 secret = easyhotspot nastype = other Edit /etc/raddb/radiusd.conf and in the module section, uncomment $INCLUDE sql.conf $INCLUDE sql/mysql/counter.conf Then, in the instantiate section, add chillispot_max_bytes noresetcounter Then in /etc/raddb/sites-enabled/default in the authorize section, uncomment sql and add the new counters so that it is now, sql chillispot_max_bytes noresetcounter and then later in /etc/raddb/sites-enabled/default in the accounting section uncomment the sql sql and then later in /etc/raddb/sites-enabled/default in the session section uncomment the sql sql and then finally in /etc/raddb/sites-enabled/default in the post-auth section uncomment the sql, sql Edit the /etc/raddb /sql/mysql/counter.conf file and in that at the end (unless the counter is already defined in that), add the following, How to Create Voucher in Mikrotik sqlcounter noresetcounter { User Manager counter-name = Session-Timeout check -name = Session-Timeout reply-name = Session-Timeout sqlmod-inst = sql k ey = User-Name reset = never query = "SELECT SUM(Acctsessiontime) FROM radacct WHERE UserName='%{%k }'" } sqlcounter chillispot_max_bytes { counter-name = Max-All-MB check -name = Max-All-MB reply-name = ChilliSpot-Max-Total-Octets sqlmod-inst = sql k ey = User-Name reset = never query = "SELECT SUM(AcctInputOctets + AcctOutputOctets) / 1048576 FROM radacct WHERE UserName='%{%k }'" } Edit /etc/raddb/sql.conf file, at the sql section, make sure you have configuration, database = "mysql" driver = "rlm_sql_${database}"
RECOMMENDED FOR Y OU
myconfigure.blogspot.com/2013/03/easyhotspot-in-centos-64.html
2/5
24/05/13
server = "localhost" #port = 3306 login = "easyhotspot" password = "easyhotspot" radius_db = "easyhotspot_opensource"
Run freeradius. If there is no error, thats mean freeradius is running normally. Radiusd -X 4. Install Chillispot Download and install chillispot. cd /usr/local wget http://www.chillispot.info/download/chillispot-1.1.0.tar.gz tar zxvf chillispot-1.1.0.tar.gz wget http://www.0xf8.org/wp-content/uploads/2011/09/chillispot-1.1.0-tun.c_defined.diff wget http://www.0xf8.org/wp-content/uploads/2011/09/chillispot-1.1.0-md5.c.diff cd chillispot-1.1.0 ./configure patch -p1 < /usr/local/chillispot-1.1.0-tun.c_defined.diff patch -p1 < /usr/local/chillispot-1.1.0-md5.c.diff mak e mak e install Download and install haserl cd /usr/local wget http://sourceforge.net/projects/haserl/files/haserl-devel/0.9.27/haserl-0.9.27.tar.gz/download tar zxvf haserl-0.9.27.tar.gz cd haserl-0.9.27 ./configure; mak e; mak e install ln -s /usr/local/bin/haserl /usr/sbin/ copy some important chillispot file. cp /usr/local/chillispot-1.1.0/doc/firewall.iptables /etc/init.d/ cp /usr/local/chillispot-1.1.0/doc/chilli.init /etc/init.d/chillispot chmod 755 /etc/init.d/chillispot cp /usr/local/chillispot-1.1.0/doc/chilli.conf /etc/ ln -s /usr/local/sbin/chilli /usr/sbin/ chk config --add chillispot chk config --level 235 chillispot on edit /etc/chilli.conf, uncomment and edit some line important configuration. vim /etc/chilli.conf net 192.168.182.0/24 dns1 192.168.182.1 dns2 8.8.8.8 radiusserver1 127.0.0.1 radiusserver2 127.0.0.1 radiussecret easyhotspot radiusauthport 1812 radiusacctport 1813 dhcpif eth1 uamserver https://192.168.182.1/cgi-bin/hotspotlogin.cgi uamhomepage http://192.168.182.1:3990/prelogin uamsecret easyhotspot uamlisten 192.168.182.1 uamport 3990 coaport 3799
Edit /etc/init.d/chillispot. Make sure a line below is uncomment. echo 1 > /proc/sys/net/ipv4/ip_forward service chillispot restart Now run the chillispot service chillispot restart Edit firewall.iptables file. In my case external interface (connected internet) is eth2. And then I add some line command iptables. You can modify this file according your desire. vim /etc/init.d/firewall.iptables #!/bin/sh # Firewall script for ChilliSpot IPTABLES="/sbin/iptables" EXTIF="eth2" INTIF="eth1" #Flush all rules $IPTABLES -F $IPTABLES -F -t nat $IPTABLES -F -t mangle #Set default behaviour $IPTABLES -P INPUT DROP $IPTABLES -P FORWARD ACCEPT $IPTABLES -P OUTPUT ACCEPT #Allow related and established on all interfaces (input) $IPTABLES -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
myconfigure.blogspot.com/2013/03/easyhotspot-in-centos-64.html
3/5
24/05/13
Reference : http://rafeequl.files.wordpress.com/2009/08/easyhotspot-install-guide-for-0-2.pdf. Licence : EasyHotspot released under GPL, so that you can use it freedom.
R el at ed P o st s
PhpMyPrepai d on Fedora 18
4 comments:
Anonymous April 4, 2013 at 12:14 PM When client is connect to redirection login page. I found following error on my client The requested URL /welcome.html was not found on this server. Apache/2.2.15 (CentOS) Server at 192.168.182.1 Port 80 So how to fix this problem Reply Replies NGERI April 14, 2013 at 2:48 PM edit in /etc/chilli.conf, make sure like this... uamserver https://192.168.182.1/cgi-bin/hotspotlogin.cgi uamhomepage http://192.168.182.1:3990/prelogin and restart your chillispot. Reply
myconfigure.blogspot.com/2013/03/easyhotspot-in-centos-64.html
4/5
24/05/13
Anonymous April 5, 2013 at 4:24 PM Authentication failed problem how to fix pls Reply Replies NGERI April 14, 2013 at 2:51 PM
check your radius server again... follow my instruction to install radius server, carefully. :) Reply
E n t e ry o u rc o m m e n t . . .
Home
Older Post
myconfigure.blogspot.com/2013/03/easyhotspot-in-centos-64.html
5/5