freeradius - Best – Gadget – Reviews for Gadget – Addict

iPad 2 launch causes iPad 1 price drop

good account came from Apple as the architect of the iPad. Reportedly, the aboriginal bearing iPad will be heavily discounted, even a abatement of up to $ 100. What causes it? Probably because the banal is still a lot and could be due to advance the attendance of second-generation iPad / iPad 2.

Price iPad a 16 GB adaptation of WiFi about Rp 3.999 million, 32 GB Rp4.999.000, and 64 GB Rp 5.999 million. All down the amount of 1 million-an. And for WiFi + 3G version, the amount of anniversary archetypal iPad, college afloat about USD 1.3 actor from the amount of Wi-Fi iPad non 3G. For added data about the prices see the iPad Indonesia.

And follows added or beneath amount ambit iPad 2:

iPad with accumulator $ 499 WiFi 16 GB, 32 GB accumulator $ 599 WiFi, WiFi 64 GB accumulator $ 699. And versions of Wi-Fi + 3G, 16 GB anamnesis + Wi-Fi 3G $ 629, 32 GB 3G + Wi-Fi $ 729, while the anamnesis accommodation of 64 GB 3G + Wi-Fi is $ 829.

Anything that says, that the acreage of Uncle Sam (USA) will become the aboriginal country to be able to adore the composure iPad 2, because the iPad 2 while awash at the Apple Online Store and Apple retail retail-to-2 mid-week in March 2011 this ages in the American bazaar . Then about the end of March 2011, afterward the added countries, like Canada, Britain, Australia, France, Germany, Japan, and others.

Incoming search terms for the article:

asus epad slider review (7), iped2 fiyat (2), asus eee pad slider fiyat (2), asus iped2 (2), mid tablet indonesia (1), iped2 vs samsing (1), iped2 germany price (1), 4share epad slider (1), iped2 16gb (1), iped2 16 gb wifi fiyat (1), mikrotik daloradius advertise-timeout (1), online met asus epad slider (1), radgroupreply limit bandwidth (1), radgroupreply limit bandwidth freeradius (1), Samsung s525 widgets download (1), se satio 120 games and applications download (1), se satio 120 games and applications telecharger (1), when 3g version of asus slider will be released (1), iPad FreeRADIUS (1), ipad 1 vs iped2 (1)

MikroTik reference dictionary

# MikroTik reference dictionary
# Copyright (C) 2003-2006 MikroTikls, SIA
#
# You may freely redistribute and use this software or any part of it in source
# and/or binary forms, with or without modification for any purposes without
# limitations, provided that you respect the following statement:
#
# This software is provided 'AS IS' without a warranty of any kind, expressed or
# implied, including, but not limited to, the implied warranty of
# merchantability and fitness for a particular purpose. In no event shall
# MikroTikls SIA be liable for direct or indirect, incidental, consequential or
# other damages that may result from the use of this software, including, but
# not limited to, loss of data or profits.
#
# Version $Id: dictionary,v 2.1 2006/08/17 16:44:51 lastguru Exp $
#
# This dictionary is the minimal dictionary, which is enough to support all
# features of MikroTik RouterOS. You should use only this dictionary without the
# standard RADIUS dictionary files. It is designed for FreeRADIUS, but may also
# be used with many other UNIX RADIUS servers (eg. XTRadius).
#
# Note that it may conflict with the default configuration files of RADIUS
# server, which have references to the Attributes, absent in this dictionary.
# Please correct the configuration files, not the dictionary, as no other
# Attributes are supported by MikroTik RouterOS.

# Standard Attributes (defined in RFC 2865, 2866 and 2869)

ATTRIBUTE       User-Name                    1    string
ATTRIBUTE       User-Password                2    string  encrypt=1
ATTRIBUTE       Password                     2    string  encrypt=1
ATTRIBUTE       CHAP-Password                3    string
ATTRIBUTE       NAS-IP-Address               4    ipaddr
ATTRIBUTE       NAS-Port                     5    integer
ATTRIBUTE       Service-Type                 6    integer
ATTRIBUTE       Framed-Protocol              7    integer
ATTRIBUTE       Framed-IP-Address            8    ipaddr
ATTRIBUTE       Framed-IP-Netmask            9    ipaddr
ATTRIBUTE       Filter-Id                    11   string
ATTRIBUTE       Framed-Route                 22   string
ATTRIBUTE       Class                        25   string
ATTRIBUTE       Vendor-Specific              26   string
ATTRIBUTE       Session-Timeout              27   integer
ATTRIBUTE       Idle-Timeout                 28   integer
ATTRIBUTE       Called-Station-Id            30   string
ATTRIBUTE       Calling-Station-Id           31   string
ATTRIBUTE       NAS-Identifier               32   string

ATTRIBUTE       Acct-Status-Type             40   integer
ATTRIBUTE       Acct-Delay-Time              41   integer
ATTRIBUTE       Acct-Input-Octets            42   integer
ATTRIBUTE       Acct-Output-Octets           43   integer
ATTRIBUTE       Acct-Session-Id              44   string
ATTRIBUTE       Acct-Authentic               45   integer
ATTRIBUTE       Acct-Session-Time            46   integer
ATTRIBUTE       Acct-Input-Packets           47   integer
ATTRIBUTE       Acct-Output-Packets          48   integer
ATTRIBUTE       Acct-Terminate-Cause         49   integer
ATTRIBUTE       Acct-Input-Gigawords         52   integer
ATTRIBUTE       Acct-Output-Gigawords        53   integer
ATTRIBUTE       Event-Timestamp              55   date

ATTRIBUTE       CHAP-Challenge               60   string
ATTRIBUTE       NAS-Port-Type                61   integer
ATTRIBUTE       Port-Limit                   62   integer
ATTRIBUTE       Acct-Interim-Interval        85   integer
ATTRIBUTE       NAS-Port-Id                  87   string
ATTRIBUTE       Framed-Pool                  88   string

# FreeRADIUS internal attributes (they can not be transmitted via the RADIUS
# protocol - they are used for internal purposes only)

ATTRIBUTE       Auth-Type                    1000 integer
ATTRIBUTE       Acct-Unique-Session-Id       1051 string
ATTRIBUTE       Client-IP-Address            1052 ipaddr
ATTRIBUTE       SQL-User-Name                1055 string
ATTRIBUTE       NT-Password                  1058 string

# Standard Values

VALUE           Service-Type                 Framed                         2

VALUE           Framed-Protocol              PPP                            1

VALUE           Acct-Status-Type             Start                          1
VALUE           Acct-Status-Type             Stop                           2
VALUE           Acct-Status-Type             Interim-Update                 3

VALUE           Acct-Authentic               RADIUS                         1
VALUE           Acct-Authentic               Local                          2

VALUE           NAS-Port-Type                Async                          0
VALUE           NAS-Port-Type                ISDN-Sync                      2
VALUE           NAS-Port-Type                Virtual                        5
VALUE           NAS-Port-Type                Ethernet                       15
VALUE           NAS-Port-Type                Cable                          17
VALUE           NAS-Port-Type                Wireless-802.11                19

VALUE           Acct-Terminate-Cause         User-Request                   1
VALUE           Acct-Terminate-Cause         Lost-Carrier                   2
VALUE           Acct-Terminate-Cause         Lost-Service                   3
VALUE           Acct-Terminate-Cause         Idle-Timeout                   4
VALUE           Acct-Terminate-Cause         Session-Timeout                5
VALUE           Acct-Terminate-Cause         Admin-Reset                    6
VALUE           Acct-Terminate-Cause         Admin-Reboot                   7
VALUE           Acct-Terminate-Cause         Port-Error                     8
VALUE           Acct-Terminate-Cause         NAS-Error                      9
VALUE           Acct-Terminate-Cause         NAS-Request                    10
VALUE           Acct-Terminate-Cause         NAS-Reboot                     11
VALUE           Acct-Terminate-Cause         Port-Unneeded                  12
VALUE           Acct-Terminate-Cause         Port-Preempted                 13
VALUE           Acct-Terminate-Cause         Port-Suspended                 14
VALUE           Acct-Terminate-Cause         Service-Unavailable            15
VALUE           Acct-Terminate-Cause         Callback                       16
VALUE           Acct-Terminate-Cause         User-Error                     17
VALUE           Acct-Terminate-Cause         Host-Request                   18

VALUE           Auth-Type                    System                         1

# Ascend Attributes

VENDOR          Ascend          529

ATTRIBUTE       Ascend-Client-Gateway       132   ipaddr              Ascend
ATTRIBUTE       Ascend-Data-Rate            197   integer             Ascend
ATTRIBUTE       Ascend-Xmit-Rate            255   integer             Ascend

# Cisco Attributes

VENDOR          Cisco           9

ATTRIBUTE       H323-Remote-Address          23   string              Cisco
ATTRIBUTE       H323-Conf-Id                 24   string              Cisco
ATTRIBUTE       H323-Setup-Time              25   string              Cisco
ATTRIBUTE       H323-Call-Origin             26   string              Cisco
ATTRIBUTE       H323-Call-Type               27   string              Cisco
ATTRIBUTE       H323-Connect-Time            28   string              Cisco
ATTRIBUTE       H323-Disconnect-Time         29   string              Cisco
ATTRIBUTE       H323-Disconnect-Cause        30   string              Cisco
ATTRIBUTE       H323-Gw-Id                   33   string              Cisco

# Cisco Values

VALUE           H323-Disconnect-Cause        Local-Clear                    0
VALUE           H323-Disconnect-Cause        Local-No-Accept                1
VALUE           H323-Disconnect-Cause        Local-Decline                  2
VALUE           H323-Disconnect-Cause        Remote-Clear                   3
VALUE           H323-Disconnect-Cause        Remote-Refuse                  4
VALUE           H323-Disconnect-Cause        Remote-No-Answer               5
VALUE           H323-Disconnect-Cause        Remote-Caller-Abort            6
VALUE           H323-Disconnect-Cause        Transport-Error                7
VALUE           H323-Disconnect-Cause        Transport-Connect-Fail         8
VALUE           H323-Disconnect-Cause        Gatekeeper-Clear               9
VALUE           H323-Disconnect-Cause        Fail-No-User                   10
VALUE           H323-Disconnect-Cause        Fail-No-Bandwidth              11
VALUE           H323-Disconnect-Cause        No-Common-Capabilities         12
VALUE           H323-Disconnect-Cause        Facility-Forward               13
VALUE           H323-Disconnect-Cause        Fail-Security-Check            14
VALUE           H323-Disconnect-Cause        Local-Busy                     15
VALUE           H323-Disconnect-Cause        Local-Congestion               16
VALUE           H323-Disconnect-Cause        Remote-Busy                    17
VALUE           H323-Disconnect-Cause        Remote-Congestion              18
VALUE           H323-Disconnect-Cause        Remote-Unreachable             19
VALUE           H323-Disconnect-Cause        Remote-No-Endpoint             20
VALUE           H323-Disconnect-Cause        Remote-Off-Line                21
VALUE           H323-Disconnect-Cause        Remote-Temporary-Error         22

# Microsoft Attributes (defined in RFC 2548)

VENDOR          Microsoft       311

ATTRIBUTE       MS-CHAP-Response             1    string              Microsoft
ATTRIBUTE       MS-MPPE-Encryption-Policy    7    string              Microsoft
ATTRIBUTE       MS-MPPE-Encryption-Types     8    string              Microsoft
ATTRIBUTE       MS-CHAP-Domain               10   string              Microsoft
ATTRIBUTE       MS-CHAP-Challenge            11   string              Microsoft
ATTRIBUTE       MS-MPPE-Send-Key             16   string  encrypt=2   Microsoft
ATTRIBUTE       MS-MPPE-Recv-Key             17   string  encrypt=2   Microsoft
ATTRIBUTE       MS-CHAP2-Response            25   string              Microsoft
ATTRIBUTE       MS-CHAP2-Success             26   string              Microsoft

# WISPr Attributes (defined in http://www.wi-fi.org/getfile.asp?f=WISPr_V1.0.pdf)

VENDOR          WISPr           14122

ATTRIBUTE       WISPr-Location-Id            1    string              WISPr
ATTRIBUTE       WISPr-Location-Name          2    string              WISPr
ATTRIBUTE       WISPr-Logoff-URL             3    string              WISPr
ATTRIBUTE       WISPr-Redirection-URL        4    string              WISPr
ATTRIBUTE       WISPr-Bandwidth-Min-Up       5    integer             WISPr
ATTRIBUTE       WISPr-Bandwidth-Min-Down     6    integer             WISPr
ATTRIBUTE       WISPr-Bandwidth-Max-Up       7    integer             WISPr
ATTRIBUTE       WISPr-Bandwidth-Max-Down     8    integer             WISPr
ATTRIBUTE       WISPr-Session-Terminate-Time 9    string              WISPr

# MikroTik Attributes

VENDOR          Mikrotik        14988

ATTRIBUTE       Mikrotik-Recv-Limit          1    integer             Mikrotik
ATTRIBUTE       Mikrotik-Xmit-Limit          2    integer             Mikrotik
ATTRIBUTE       Mikrotik-Group               3    string              Mikrotik
ATTRIBUTE       Mikrotik-Wireless-Forward    4    integer             Mikrotik
ATTRIBUTE       Mikrotik-Wireless-Skip-Dot1x 5    integer             Mikrotik
ATTRIBUTE       Mikrotik-Wireless-Enc-Algo   6    integer             Mikrotik
ATTRIBUTE       Mikrotik-Wireless-Enc-Key    7    string              Mikrotik
ATTRIBUTE       Mikrotik-Rate-Limit          8    string              Mikrotik
ATTRIBUTE       Mikrotik-Realm               9    string              Mikrotik
ATTRIBUTE       Mikrotik-Host-IP             10   ipaddr              Mikrotik
ATTRIBUTE       Mikrotik-Mark-Id             11   string              Mikrotik
ATTRIBUTE       Mikrotik-Advertise-URL       12   string              Mikrotik
ATTRIBUTE       Mikrotik-Advertise-Interval  13   integer             Mikrotik
ATTRIBUTE       Mikrotik-Recv-Limit-Gigawords 14  integer             Mikrotik
ATTRIBUTE       Mikrotik-Xmit-Limit-Gigawords 15  integer             Mikrotik

# MikroTik Values

VALUE           Wireless-Enc-Algo            No-encryption                  0
VALUE           Wireless-Enc-Algo            40-bit-WEP                     1
VALUE           Wireless-Enc-Algo            104-bit-WEP                    2

Incoming search terms for the article:

daloradius mikrotik (19), remote mikrotik via android (12), invalid auth string (9), remote mikrotik dengan android (7), failed to create the pair: invalid tag for attribute (7), daloradius bandwidth (6), failed to create the pair: invalid octet string 3600 for attribute name max-daily-session (5), Mikrotik radius timeout (4), daloradius chillispot (4), example use of wispr-session-terminate-time mikrotik (4), failed to create the pair invalid octet string for attribute name (4), mikrotik advertise url (4), mikrotik rate limit example (4), daloradius chillispot attributes (3), mikrotik max-all-session (3), invalid octet string /usr/abills/libexec/rauth pl for attribute name (3), freeradius accessperiod (3), freeradius mysql nt-password (3), chillispot-max-input-gigawords exam-le pl (3), linux radclient (3)

Howto for DD-WRT Chillispot and Freeradius

Linksys WRT54GS + OpenWRT + ChillSpot + FreeRadius (with Mysql authentication and accounting ) + PHP/Perl


Before you start

I would recommend you need to know/read

OpenWRT – www.openwrt.org
ChilliSpot – www.chillispot.org
FreeRadius – www.freeradius.org
Mysql – www.mysql.com
PHP – www.php.net
Perl – www.cpan.org


A very Brief introduction

OpenWrt is a Linux distribution for Linksys WRT54G. It provides minimal firmware with add-on packages. Its allows the customization with broad range of software packages available for it.
We will be using OpenWrt as a replacement to the original Linksys firmware that comes pre-installed with the router.

ChilliSpot is a wireless LAN access controller. It is used for authenticating users of wireless LAN. It supports web based login for hotspots.
The Chilli daemon plays a primary role in the entire hotspot setup. It runs on the router and provides users access to the wireless Hotspot.

FreeRadius is a server that manages remote user authentication and accounting.

Mysql is a premier opensource database server.
All user database, authentication and accounting is stored in a Mysql database.


 

Follow this howto at your own risk…!!!

I have followed steps similar to those demonstrated here. They have worked for me. They may work for you too..

 

You may require special customization according to your need. Let me know if it worked for you.


<yunusbookwala @ gmail.com>



Setting up the Linksys router

I used the Linksys WRT54GS routers for this setup. For other supported routers see

http://wiki.openwrt.org/OpenWrtDocs/Installing

Remove ads

We need to install OpenWrt on the router. This is done by flashing the pre-installed Linksys firmware with openwrt.

<!--[if !supportLists]-->You may find the procedure to do this is a bit complex depending on your skills.

You may need to downgrade the linksys firmware to enable boot_wait. To do this <!--[endif]-->

1. Download this firmware from here

wget ftp://ftp.linksys.com/pub/network/WRT54GS_3.37.2_US_code.zip on your computer.

2. The Ethernet cable should be connected to the PORT 1 of the router.

3. Point your browser to the Linksys Web administration panel, usually its http://192.168.1.1 and goto the Admin Page -> Upgrade firmware link

4. upload the above firmware.

5. Once you have successfully downgraded the firmware, navigate to Administration -> Diagnostics -> Ping test

6. Enter exactly each line listed below, one line at a time into the "IP Address" field, pressing the Ping button after each entry.

;cp${IFS}*/*/nvram${IFS}/tmp/n
;*/n${IFS}set${IFS}boot_wait=on
;*/n${IFS}commit
;*/n${IFS}show>tmp/ping.log

7. When you get to the last command the ping window should be filled with a long list of variables including boot_wait=on somewhere in that list.


8. Now you are ready to install the actual openwrt firmware. You need a TFTP client for this.

9. Download the openwrt firmware

wget http://downloads.openwrt.org/whiterussian/rc3/bin/openwrt-wrt54gs-jffs2.bin

The basic procedure of using a tftp client to upload a new firmware to your router<!--[endif]-->

1. unplug the power to your router

2. start your tftp client

give it the router's address (usually 192.168.1.1)

set mode to octet

tell the client to resend the file, until it succeeds.

put the file

3. plug your router, while having the tftp client running and constantly probing for a connection.

4. the tftp client will receive an ack from the bootloader and starts sending the firmware

Please be patient, the reflashing occurs AFTER the firmware has been transferred. DO NOT unplug the router, it will automatically reboot into the new firmware. These steps have to be done in quick succession.

A typical tftp session look like this

tftp 192.168.1.1s

tftp> binary
tftp> trace
Packet tracing on.
tftp> put openwrt-wrt54gs-jffs2.bin

On windows you may try this to tftp

tftp -i 192.168.1.1 PUT openwrt-wrt54gs-jffs2.bin

from the command prompt.

On routers with a DMZ led, OpenWrt will light the DMZ led while booting, after bootup it will turn the DMZ led off. Sometimes automatic rebooting does not work, so you can safely reboot after 5 minutes.

If everything up to this point goes fine, we are ready to use the router with the new openwrt.


Using the openwrt router

You can now login to the router like a regular Linux box. But the first thing after the router has rebooted is to set a password for the `root’ account.

At this point you can telnet on to the router. Once you have set a password for `root’ on next reboot you will only be able to ssh in to the router.

The default IP address on the router is 192.168.1.1 hence bring your machine to the 192.168.1. network range.

# telnet 192.168.1.1

Check whether boot_wait is ON. boot_wait must be on for upgrades or recovering from bad installations.

# nvram get boot_wait
boot_wait=on

Set a password for `root’

# passwd

If you get any error setting password, run the following command

# firstboot

Or the router may require a reboot.

# reboot

Now you can ssh in to the router and start configuring it.

# ssh root@192.168.1.1

We will be using the router as a ‘Access Point’. Run the following commands on the router.
These command set the networking parameters for the router to access the Internet(WAN).

# nvram set wan_ifname=vlan1
# nvram set wan_proto=static
# nvram set wan_ipaddr=xxx.xxx.xxx.xxx
# nvram set wan_netmask=255.255.255.0
# nvram set wan_gateway=192.168.1.1
# nvram set wan_dns=192.168.1.1
# nvram commit

If your router need to get IP address through DHCP you only need to run these

# nvram set wan_ifname=vlan1
# nvram set wan_proto=dhcp
# nvram commit

For PPPoE Internet connection

# nvram set wan_ifname=ppp0
# nvram set wan_proto=pppoe
# nvram set ppp_mtu=1492
# nvram set pppoe_ifname=vlan1
# nvram set ppp_username=your_isp_login
# nvram set ppp_passwd=your_isp_password
# nvram commit

 

You may need to reboot the router now.


Installing ChilliSpot

Download following packages on your machine

A module to create tunnel on the router

# wget http://downloads.openwrt.org/experimental-20050525/bin/packages/kmod-tun_2.4.30-1_mipsel.ipk

The chilli daemon

# wget http://chillispot.org/download/chillispot_1.0-1_mipsel.ipk
# wget http://chillispot.org/download/chillispot-1.0.tar.gz

Copy the files on to the router

# scp kmod-tun_2.4.30-1_mipsel.ipk root@192.168.1.1:/tmp
# scp chillispot_1.0-1_mipsel.ipk
root@192.168.1.1:/tmp

login to the router

# ssh root@192.168.1.1

On the router

# cd /tmp
# ipkg install kmod-tun_2.4.30-1_mipsel.ipk

Edit /etc/modules and append `tun` to it.

This will load the tun module whenever the router is restarted.

You can use vi on the router

OpenWRT comes with the following network interfaces:

  • eth0: LAN Switch. Is used as the connection point for the VLANs. Do never use this port directly.
  • eth1: Wireless Interface
  • vlan1: Virtual LAN: Internet
  • vlan0: Virutal LAN: Port 1 to 4
  • br0: Bridge between vlan0 and eth1.

We will have the LAN not accessible through wireless and vice-versa, we will remove eth1 from the brigde

Run these commands

# nvram set lan_ifnames="vlan0 eth3"
# nvram commit

# /etc/init.d/S40network restart

Install chillispot

# cd /tmp
# ipkg install chillispot_1.0-1_mipsel.ipk

Now have the firewall in place. Copy the firewall script from the chillispot sources to the router.

Untar the chillispot source on your machine

# tar zxvf chillispot-1.0.tar.gz
# cd chillispot-1.0/doc
# scp firewall.openwrt
root@192.168.1.1:/tmp

On the router

# rm /etc/init.d/S45firewall
# cp /tmp/firewall.openwrt /etc/init.d/S45firewall
# chmod 755 /etc/init.d/S45firewall

I had to edit the S45firewall script and change

WANIF=$(nvram_get wan_ifname)
to
WANIF=$(nvram get wan_ifname)

Chilli takes care of assigning IP to the wireless clients, hence we can safely delete dnsmasq the openwrt dns and dhcp service.

# rm /etc/init.d/S#dnsmasq

Substitue the # in S#dnsmasq with the appropriate number.

Configure chilli to start on booting the router

edit /etc/init.d/S50services and append this line at the bottom

sleep 5
/usr/sbin/chilli

The configuration file for chilli daemon can be found at /etc/chilli.conf on the router. Now before any further chilli configuration we will be installing and configuring the UAM server and FreeRadius server.

We will be using the Universal Access Method(UAM) for authentication and login to the wireless HotSpot. With UAM the wireless client is redirected to a login web page to be authenticated on first Internet or Extranet request.

I suppose you have installed and configured Apache httpd server to serve CGI pages. The UAM method uses the hotspotlogin.cgi script which can be found at doc/hotspotlogin.cgi in the chillispot source directory.

Place this CGI script in the apache cgi-script directory usually /var/www/cgi-bin/ of your server.

Edit the hotspotlogin.cgi file. Uncomment following line

$uamsecret = "ht2eb8ej6s4et3rg1ulp"; Change this to your liking.
$userpassword=1;

The hotspotlogin.cgi script requires https(SSL) to access it. You may need to configure SSL certificates accordingly.


FreeRadius

We will have the FreeRadius server configured with MySql backend for user authentication and accounting.

If compiling from source

# wget ftp://ftp.freeradius.org/pub/radius/freeradius-1.0.5.tar.gz
# tar zxvf freeradius-1.0.5.tar.gz
# cd freeradius-1.0.5
# ./configure –with-mysql
# make && make install

Configure FreeRadius

We prepare the database for using with freeradius.

# mysql -u root -p
> create database radius;
> quit

# mysql -u root -p radius < /usr/share/doc/freeradius-x.x.x/db_mysql.sql

# mysql -u root -p
> GRANT select,insert,update,delete,create,drop ON radius.*

TO ‘radiususer’@’localhost’ IDENTIFIED BY 'radiuspasswd';
> quit

edit /etc/raddb/radius.conf or /usr/local/etc/raddb/radius.conf

The end of your radiusd.conf should then look something like this:

authorize {
preprocess
chap
mschap
# auth_log
# attr_filter
# digest
suffix
sql
# file
# eap
# etc_smbpasswd
# ldap
}
authenticate {
Auth-Type PAP {
pap
}
Auth-Type CHAP {
chap
}
Auth-Type MS-CHAP{
mschap
}
# pam
# unix
# Auth-Type LDAP {
# ldap
# }
# eap
}
preacct {
pre process
acct_unique
suffix
# files
}
accounting {
acct_unique
detail
# counter
unix
sql
radutmp
# sradutmp
}
session {
radutmp
}

The radius.conf file is pretty good commented you can customize it as per your needs.

Edit the /etc/raddb/sql.conf and enter the server, name and password details to connect to your MySQL server and the RADIUS database.

Dialupadmin

Dialupadmin is a web based administration tool to manage Radius users and their accounting and authorization information.

Copy the dialup_admin directory from the freeradius source directory to /usr/local/dialup_admin

# cp -r freeradius-x.x.x/dialup_admin /usr/local/

Create as symlink from your web server root directory to dialup_admin/htdocs

# ln -s /usr/local/dialup_admin/htdocs /var/www/html/dialupadmin

edit the dialup_admin/conf/admin.conf. Attributes to lookout for are

general_radiusd_base_dir: /usr/local/radiusd
general_domain: company.com
general_lib_type: sql
general_radius_server: localhost
general_radius_server_port: 1812
general_encryption_method: clear
sql_type: mysql
sql_server: localhost
sql_port: 3306
sql_username: radiususer
sql_password: radius69passwd
sql_database: radius

You can now access dailup_admin with following kind of URL, http://yourwebsever/dialupadmin

Now we can move ahead configuring chilli on the router. The chilli configuration file can be found at /etc/chilli.conf on the router. The configuration derectives that needs to be taken care of are

#dns server that will be specified to the clients machines
dns1 172.16.0.5
dns2 172.16.0.6

#domain name that will be suggested to the clients
domain your.hotspot.com

#radius server IP
radiusserver1 192.168.0.100
radiusserver2 192.168.0.101

#secret shared between the router and the radius servers
#on the radius server it in the file clients.conf
radiussecret somesecret123

#Location ID of the router that will be sent to the radius for #accounting purpose
radiuslocationid isocc=in,cc=91,ac=400078,network=HOME_Nework

#Location name
radiuslocationname HOME,magnet

dhcpif eth1

#DHCP lease period in seconds
lease 900

#UAM paramter. URL of web server handling authentication.
Uamserver
https://youruamserver/cgi-bin/hotspotlogin.cgi

#secret shared between chilli and authentication web server.
#Specify same as mentioned in the hotspotlogin.cgi
uamsecret ht2eb8ej6s4et3rg1ulp

#Domains that users can browse with out authentication
uamallowed
www.chillispot.org,www.openwrt.org

There are other parameter that can be changed according to your preferences.


Testing the entire setup
All the basic configuration has been done, and ready to be tested.

Point your browser to the dialup_admin web interface. Create a test user account.
Just a username and password will do. You can leave the other fields blank.

Start the chilli server on the router in debug mode.

# /usr/sbin/chilli -f -d

Also start the radius on the server if not running. Use -X to see debugging output.

# /usr/sbin/radiusd -X

Now with your wireless client machine try to browse the Internet.

Incoming search terms for the article:

dd-wrt freeradius (60), chillispot dd-wrt (36), dd-wrt chillispot (36), chillispot freeradius (27), dd-wrt radius accounting (24), openwrt radius server (24), FreeRadius DD-WRT (21), openwrt radius (17), chillispot howto (14), dd-wrt mysql (13), ddwrt freeradius (12), openwrt freeradius (9), openwrt bandwidth limit (8), dd-wrt chillispot freeradius (6), freeradius chillispot (5), chillispot windows (5), chillispot local user management dd wrt (5), FreeRADIUS on dd-wrt (5), ipkg freeradius (5), freeradius on dd wrt (4)

Freeradius Disconnected User when Time Limit Exceed

I learned this while integrating phpmyprepaid into my radius server.
The purpose of this configuration is to limit a user by the time he use our network.

Let say as example I want to limit a user only 1 hour per prepaid card.
So what I did is define a counter using sqlcounter module in the radius.conf file;

— snipped —
sqlcounter timelimit {

counter-name = Max-All-Session-Time
check-name = Max-All-Session
sqlmod-inst = sql
key = User-Name
reset = never
query = “SELECT SUM(AcctSessionTime) FROM radacct where UserName=’%{%k}’”

}
— snipped —

In the configuration I set the check-name as Max-All-Session, this will apply to the the radcheck table. You can choose other name, the same name should be use in the radcheck table. in the query part is the sql query we use to get the data for accounting. From the above query radius server will get the sum of session time of the user from radacct table. It will compare with Max-All-Session check item and terminate the session when the time is reached.

but the server does not do accounting yet, to enable accounting we must specify the module we define in authorize section in the radius.conf.

— snipped —
authorize {

 

preprocess
chap
mschap
suffix
eap
files
sql
pap
timelimit

}
— snipped —

Then we need to restart/reload the server to make the new configuration take effect.

To force the setting to the user we must insert the regarding attribute into the radcheck table:
as example:

+–+———–+—————–+—+———-+
| id | UserName| Attribute | op | Value |
+–+———–+—————–+—+———-+
| 1 | user | User-Password | := | p45sw0rd |
| 2 | user | Max-All-Session | := | 3600 |
+–+———–+—————–+—+———-+

Incoming search terms for the article:

freeradius prepaid (24), freeradius time (20), freeradius Max-All-Session (12), freeradius limit time (10), Max-All-Session freeradius (9), freeradius prepaid module (5), phpmyprepaid max-all-session (4), sqlcounter traffic not disconnect user mikrotik (3), radius time quota sqlcounter (3), phpmyprepaid freeradius (2), phpmyprepaid (2), online time in freeradius (2), freeradius login session limit (2), dalo radius max all session (2), Max-All-Session radius (2), freeradius one-all-session (2), freeradius cumulative time (2), radius accounting disconnect time (1), session-limit freeradius (1), terminate freeradius online user (1)

Freeradius Limit User Access by Period Started from Activation Time

 

This module is sligthly different than last module; The significant difference is in the query attribute where the sql query will calculate the time used by a user from the first access time of a user.
It will compare to Access-Period we define, and terminate a user session when the times expire.

Using this, we can limit a user access period for 1 day or 1 week from his first time he login using the a prepaid card.
The counter module we create is as below,

— snipped —
sqlcounter accessperiod {

counter-name = Max-Access-Period-Time
check-name = Access-Period
sqlmod-inst = sql
key = User-Name
reset = never
query = “SELECT UNIX_TIMESTAMP() – UNIX_TIMESTAMP(AcctStartTime) FROM radacct WHERE UserName = ‘%{%k}’ ORDER BY AcctStartTime LIMIT 1?

— snipped —

In the authorize section, we should include the module:

— snipped —
authorize {

 

preprocess
chap
mschap
suffix
eap
files
sql
pap
accessperiod

}
— snipped —

And as usual, we need to restart/reload the server to make the new configuration take effect.

Then for the radcheck table, we insert the appropriate attribute:

+—-+—–———–+———————+—-+————-+
| id   | UserName  | Attribute           | op | Value     |
+—-+——–——–+———————+—-+————-+
| 3    | user             | Access-Period   | := | 3600     |
+—-+——–——–+———–———-+—-+————-+

Incoming search terms for the article:

freeradius expiration attribute (28), RADIUS_USERMAX (24), freeradius Access-Period (21), freeradius expiration sql (13), freeradius traffic counter (12), daloRADIUS CoovaChilli (12), daloradius Expiration (11), freeradius access period (10), Max-Access-Period-Time (10), daloradius time limit (9), mikrotik daloradius (7), freeradius counter (6), phpmyprepaid activate date (5), freeradius2 expiration (5), freeradius sqlcounter (4), freeradius time range (4), coovachilli counter sql ? (4), invalid octet string for attribute name access-period (3), freeradius access date (3), radius Access-Period (3)
HomePosts tagged 'freeradius'