[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeradius-users
Subject:    Re: [sqlippool] No Pool-Name defined.
From:       yata <aurens.memuro02 () gmail ! com>
Date:       2014-04-28 21:13:54
Message-ID: CA+cUj19PTBOZOcwu5c2BmQhyUbff6fqxeMGGwzFW+4+RjnrcbQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Roney

I was able to solve this problem by setting Default pool-name in top of
users file.

Thank you for your co-operation.


2014-04-28 22:52 GMT+09:00 Rôney Eduardo <roneyeduardosantos@gmail.com>:

> You need to set the "Pool-Name" attribute to your test user, in
> radcheck or radgroupcheck table.
>
> --
> Roney Eduardo
>
> 2014-04-28 3:24 GMT-03:00 yata <aurens.memuro02@gmail.com>:
> > Hi
> > I wanna use freeradius2 as a radius-server and dhcp-server.
> > When I try to connect to radius-server,following errors show up.
> > I think authentication is look fine.then message said sqlippool not
> defined.
> > but I set up as below.
> > What's wrong with my settings?
> >
> > ------------radiusd -X-----------------
> >  ... adding new socket proxy address * port 55682
> > Listening on authentication address * port 1812
> > Listening on accounting address * port 1813
> > Listening on command file /var/run/radiusd/radiusd.sock
> > Listening on authentication address 127.0.0.1 port 18120 as server
> > inner-tunnel
> > Listening on proxy address * port 1814
> > Ready to process requests.
> > rad_recv: Access-Request packet from host 10.0.5.200 port 50000, id=3,
> > length=205
> >         User-Password = "test"
> >         User-Name = "user@mondomaine.fr"
> >         Acct-Session-Id = "erx FastEthernet 1/6:0011534340"
> >         Service-Type = Framed-User
> >         Framed-Protocol = PPP
> >         ERX-Pppoe-Description = "pppoe 00:1d:72:c6:7b:d5"
> >         Calling-Station-Id = "#ERX-40-b0-7a#E16#0"
> >         NAS-Port-Type = Ethernet
> >         NAS-Port = 369098752
> >         NAS-Port-Id = "FastEthernet 1/6"
> >         NAS-IP-Address = 10.0.5.200
> >         NAS-Identifier = "ERX-40-b0-7a"
> > # Executing section authorize from file /etc/raddb/sites-enabled/default
> > +- entering group authorize {...}
> > ++[preprocess] returns ok
> > ++[chap] returns noop
> > ++[mschap] returns noop
> > ++[digest] returns noop
> > [suffix] Looking up realm "mondomaine.fr" for User-Name =
> > "user@mondomaine.fr"
> > [suffix] No such realm "mondomaine.fr"
> > ++[suffix] returns noop
> > [eap] No EAP-Message, not doing EAP
> > ++[eap] returns noop
> > [files] users: Matched entry user@mondomaine.fr at line 6
> > [files] users: Matched entry DEFAULT at line 183
> > ++[files] returns ok
> > ++[expiration] returns noop
> > ++[logintime] returns noop
> > ++[pap] returns updated
> > Found Auth-Type = PAP
> > # Executing group from file /etc/raddb/sites-enabled/default
> > +- entering group PAP {...}
> > [pap] login attempt with password "test"
> > [pap] Using clear text password "test"
> > [pap] User authenticated successfully
> > ++[pap] returns ok
> > Login OK: [user@mondomaine.fr] (from client GGSN1 port 369098752 cli
> > #ERX-40-b0-7a#E16#0)
> > # Executing section post-auth from file /etc/raddb/sites-enabled/default
> > +- entering group post-auth {...}
> > [sqlippool] No Pool-Name defined.
> > [sqlippool]     expand: No Pool-Name defined   (did %{Called-Station-Id}
> cli
> > %{Calling-Station-Id} port %{NAS-Port} user %{User-Name}) -> No Pool-Name
> > defined   (did  cli #ERX-40-b0-7a#E16#0 port 369098752 user
> > user@mondomaine.fr)
> > No Pool-Name defined   (did  cli #ERX-40-b0-7a#E16#0 port 369098752 user
> > user@mondomaine.fr)
> > ++[sqlippool] returns noop
> > ++[exec] returns noop
> > Sending Access-Accept of id 3 to 10.0.5.200 port 50000
> >         NAS-IP-Address == 10.0.5.200
> >         Framed-Protocol = PPP
> >         Framed-Compression = Van-Jacobson-TCP-IP
> > Finished request 0.
> > Going to the next request
> > Waking up in 4.9 seconds.
> > rad_recv: Accounting-Request packet from host 10.0.5.200 port 50016,
> id=73,
> > length=246
> >         Acct-Status-Type = Stop
> >         User-Name = "user@mondomaine.fr"
> >         Event-Timestamp = "Apr 27 2014 14:19:10 PDT"
> >         Acct-Delay-Time = 0
> >         NAS-Identifier = "ERX-40-b0-7a"
> >         Acct-Session-Id = "erx FastEthernet 1/6:0011534340"
> >         NAS-IP-Address = 10.0.5.200
> >         Service-Type = Framed-User
> >         Calling-Station-Id = "#ERX-40-b0-7a#E16#0"
> >         Acct-Input-Gigawords = 0
> >         Acct-Input-Octets = 0
> >         Acct-Output-Gigawords = 0
> >         Acct-Output-Octets = 0
> >         ERX-Input-Gigapkts = 0
> >         Acct-Input-Packets = 0
> >         ERX-Output-Gigapkts = 0
> >         Acct-Output-Packets = 0
> >         NAS-Port-Type = Ethernet
> >         NAS-Port = 369098752
> >         NAS-Port-Id = "FastEthernet 1/6"
> >         Acct-Authentic = RADIUS
> >         Acct-Session-Time = 0
> >         Acct-Terminate-Cause = NAS-Request
> > # Executing section preacct from file /etc/raddb/sites-enabled/default
> > +- entering group preacct {...}
> > ++[preprocess] returns ok
> > [acct_unique] Hashing 'NAS-Port = 369098752,Client-IP-Address =
> > 10.0.5.200,NAS-IP-Address = 10.0.5.200,Acct-Session-Id = "erx
> FastEthernet
> > 1/6:0011534340",User-Name = "user@mondomaine.fr"'
> > [acct_unique] Acct-Unique-Session-ID = "fbbf6a6fb6bf3d32".
> > ++[acct_unique] returns ok
> > [suffix] Looking up realm "mondomaine.fr" for User-Name =
> > "user@mondomaine.fr"
> > [suffix] No such realm "mondomaine.fr"
> > ++[suffix] returns noop
> > ++[files] returns noop
> > # Executing section accounting from file /etc/raddb/sites-enabled/default
> > +- entering group accounting {...}
> > [detail]        expand: %{Packet-Src-IP-Address} -> 10.0.5.200
> > [detail]        expand:
> >
> /var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d
> > -> /var/log/radius/radacct/10.0.5.200/detail-20140427
> > [detail]
> >
> /var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d
> > expands to /var/log/radius/radacct/10.0.5.200/detail-20140427
> > [detail]        expand: %t -> Sun Apr 27 22:49:32 2014
> > ++[detail] returns ok
> > ++[unix] returns ok
> > [radutmp]       expand: /var/log/radius/radutmp ->
> /var/log/radius/radutmp
> > [radutmp]       expand: %{User-Name} -> user@mondomaine.fr
> > rlm_radutmp: Logout for NAS GGSN1 port 369098752, but no Login record
> > ++[radutmp] returns ok
> > rlm_sql (sql): Reserving sql socket id: 13
> > [sqlippool]     expand: %{User-Name} -> user@mondomaine.fr
> > [sqlippool] sql_set_user escaped user --> 'user@mondomaine.fr'
> > [sqlippool]     expand: START TRANSACTION -> START TRANSACTION
> > [sqlippool]     expand: UPDATE radippool  SET nasipaddress = '',
> pool_key =
> > 0, callingstationid = '', username = '',  expiry_time = NULL  WHERE
> > nasipaddress = '%{Nas-IP-Address}' AND pool_key = '%{NAS-Port}'  AND
> > username = '%{User-Name}'  AND callingstationid = '%{Calling-Station-Id}'
> > AND framedipaddress = '%{Framed-IP-Address}' -> UPDATE radippool  SET
> > nasipaddress = '', pool_key = 0, callingstationid = '', username = '',
> > expiry_time = NULL  WHERE nasipaddress = '10.0.5.200' AND pool_key =
> > '369098752'  AND username = 'user@mondomaine.fr'  AND callingstationid =
> > '=23ERX-40-b0-7a=23E16=230'  AND framedipaddress = ''
> > [sqlippool]     expand: COMMIT -> COMMIT
> > [sqlippool]     expand: Released IP %{Framed-IP-Address} (did
> > %{Called-Station-Id} cli %{Calling-Station-Id} user %{User-Name}) ->
> > Released IP  (did  cli #ERX-40-b0-7a#E16#0 user user@mondomaine.fr)
> > Released IP  (did  cli #ERX-40-b0-7a#E16#0 user user@mondomaine.fr)
> > rlm_sql (sql): Released sql socket id: 13
> > ++[sqlippool] returns ok
> > ++[exec] returns noop
> > [attr_filter.accounting_response]       expand: %{User-Name} ->
> > user@mondomaine.fr
> > attr_filter: Matched entry DEFAULT at line 12
> > ++[attr_filter.accounting_response] returns updated
> > Sending Accounting-Response of id 73 to 10.0.5.200 port 50016
> > Finished request 1.
> > Cleaning up request 1 ID 73 with timestamp +10
> > Going to the next request
> > Waking up in 4.9 seconds.
> > Cleaning up request 0 ID 3 with timestamp +10
> > Ready to process requests.
> > ------------------------------------------------------------
> >
> >
> >
> >
> >
> > ---------------------sqlippool.conf------------------------------
> > ##  Configuration for the SQL based IP Pool module (rlm_sqlippool)
> > ##
> > ##  The database schemas are available at:
> > ##
> > ##       raddb/sql/DB/ippool.sql
> > ##
> > ##  $Id$
> >
> > sqlippool {
> >
> >  #########################################
> >  ## SQL instance to use (from sql.conf) ##
> >  ##
> >  ##  If you have multiple sql instances, such as "sql sql1 {...}",
> >  ##  use the *instance* name here: sql1.
> >  #########################################
> >  sql-instance-name = "sql"
> >
> >  ## SQL table to use for ippool range and lease info
> >  ippool_table = "radippool"
> >
> >  ## IP lease duration. (Leases expire even if Acct Stop packet is lost)
> >  lease-duration = 3600
> >
> >  ## Attribute which should be considered unique per NAS
> >  ## Using NAS-Port gives behaviour similar to rlm_ippool. (And ACS)
> >  ## Using Calling-Station-Id works for NAS that send fixed NAS-Port
> >  ## ONLY change this if you know what you are doing!
> >  pool-key = "%{NAS-Port}"
> >  # pool-key = "%{Calling-Station-Id}"
> >
> >  ################################################################
> >  #
> >  #  WARNING: MySQL has certain limitations that means it can
> >  #           hand out the same IP address to 2 different users.
> >  #
> >  #           We suggest using an SQL DB with proper transaction
> >  #           support, such as PostgreSQL, or using MySQL
> >  #     with InnoDB.
> >  #
> >  ################################################################
> >
> >  #
> >  #  Use the same database as configured in the "sql" module, "database"
> >  #  configuration item.  Change the "postgresql" name below to be the
> >  #  same as the "database" field of the SQL module referred to in the
> >  #  "sql-instance-name", above.
> >  #
> > #$INCLUDE sql/postgresql/ippool.conf
> > $INCLUDE sql/mysql/ippool.conf
> >
> >  ## Logging configuration. (Comment out to disable logging)
> >  sqlippool_log_exists = "Existing IP: %{reply:Framed-IP-Address} \
> >   (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port}
> user
> > %{User-Name})"
> >
> >  sqlippool_log_success = "Allocated IP: %{reply:Framed-IP-Address} from
> > %{control:Pool-Name} \
> >   (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port}
> user
> > %{User-Name})"
> >
> >  sqlippool_log_clear = "Released IP %{Framed-IP-Address}\
> >  (did %{Called-Station-Id} cli %{Calling-Station-Id} user %{User-Name})"
> >
> >  sqlippool_log_failed = "IP Allocation FAILED from %{control:Pool-Name} \
> >   (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port}
> user
> > %{User-Name})"
> >
> >  sqlippool_log_nopool = "No Pool-Name defined \
> >   (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port}
> user
> > %{User-Name})"
> >
> > }
> > -------------------------------------------------------------------
> >
> >
> >
> >
> >
> > ------------------------------sql.conf---------------------------------
> > # -*- text -*-
> > ##
> > ## sql.conf -- SQL modules
> > ##
> > ## $Id$
> >
> > ######################################################################
> > #
> > #  Configuration for the SQL module
> > #
> > #  The database schemas and queries are located in subdirectories:
> > #
> > # sql/DB/schema.sql Schema
> > # sql/DB/dialup.conf Basic dialup (including policy) queries
> > # sql/DB/counter.conf counter
> > # sql/DB/ippool.conf IP Pools in SQL
> > # sql/DB/ippool.sql schema for IP pools.
> > #
> > #  Where "DB" is mysql, mssql, oracle, or postgresql.
> > #
> >
> > sql {
> > #
> > #  Set the database to one of:
> > #
> > # mysql, mssql, oracle, postgresql
> > #
> > database = "mysql"
> >
> > #
> > #  Which FreeRADIUS driver to use.
> > #
> > driver = "rlm_sql_${database}"
> >
> > # Connection info:
> > server = "localhost"
> > #port = 3306
> > login = "userfreeradius"
> > password = "pwdfreeradius"
> >
> > # Database table configuration for everything except Oracle
> > radius_db = "freeradius"
> > # If you are using Oracle then use this instead
> >         # radius_db =
> >
> "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SID=your_sid)))"
> >
> > # If you want both stop and start records logged to the
> > # same SQL table, leave this as is.  If you want them in
> > # different tables, put the start table in acct_table1
> > # and stop table in acct_table2
> > acct_table1 = "radacct"
> > acct_table2 = "radacct"
> >
> > # Allow for storing data after authentication
> > postauth_table = "radpostauth"
> >
> > authcheck_table = "radcheck"
> > authreply_table = "radreply"
> >
> > groupcheck_table = "radgroupcheck"
> > groupreply_table = "radgroupreply"
> >
> > # Table to keep group info
> > usergroup_table = "radusergroup"
> >
> > # If set to 'yes' (default) we read the group tables
> > # If set to 'no' the user MUST have Fall-Through = Yes in the radreply
> table
> > read_groups = yes
> >
> > # Remove stale session if checkrad does not see a double login
> > deletestalesessions = yes
> >
> > # Print all SQL statements when in debug mode (-x)
> > sqltrace = no
> > sqltracefile = ${logdir}/sqltrace.sql
> >
> > # number of sql connections to make to server
> > num_sql_socks = 15
> >
> > # number of seconds to dely retrying on a failed database
> > # connection (per_socket)
> > connect_failure_retry_delay = 60
> >
> > # lifetime of an SQL socket.  If you are having network issues
> > # such as TCP sessions expiring, you may need to set the socket
> > # lifetime.  If set to non-zero, any open connections will be
> > # closed "lifetime" seconds after they were first opened.
> > lifetime = 0
> >
> > # Maximum number of queries used by an SQL socket.  If you are
> > # having issues with SQL sockets lasting "too long", you can
> > # limit the number of queries performed over one socket.  After
> > # "max_qeuries", the socket will be closed.  Use 0 for "no limit".
> > max_queries = 0
> >
> > # Set to 'yes' to read radius clients from the database ('nas' table)
> > # Clients will ONLY be read on server startup.  For performance
> > # and security reasons, finding clients via SQL queries CANNOT
> > # be done "live" while the server is running.
> > #
> > readclients = yes
> >
> > # Table to keep radius client info
> > nas_table = "nas"
> >
> > # Read driver-specific configuration
> > $INCLUDE sql/${database}/dialup.conf
> > }
> >
> ---------------------------------------------------------------------------
> >
> > If these information is not enough please let me know.
> >
> > Thanks,
> >
> >
> >
> >
> > -
> > List info/subscribe/unsubscribe? See
> > http://www.freeradius.org/list/users.html
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>

[Attachment #5 (text/html)]

<div dir="ltr">Hi Roney<div><br></div><div>I was able to solve this problem by \
setting Default pool-name in top of users file.</div><div><br></div><div>Thank you \
for your co-operation.</div></div><div class="gmail_extra"><br> <br><div \
class="gmail_quote">2014-04-28 22:52 GMT+09:00 Rôney Eduardo <span dir="ltr">&lt;<a \
href="mailto:roneyeduardosantos@gmail.com" \
target="_blank">roneyeduardosantos@gmail.com</a>&gt;</span>:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <div class="">You need to set the &quot;Pool-Name&quot; \
attribute to your test user, in<br> radcheck or radgroupcheck table.<br>
<br>
--<br>
Roney Eduardo<br>
<br>
</div>2014-04-28 3:24 GMT-03:00 yata &lt;<a \
href="mailto:aurens.memuro02@gmail.com">aurens.memuro02@gmail.com</a>&gt;:<br> <div \
class="HOEnZb"><div class="h5">&gt; Hi<br> &gt; I wanna use freeradius2 as a \
radius-server and dhcp-server.<br> &gt; When I try to connect to \
radius-server,following errors show up.<br> &gt; I think authentication is look \
fine.then message said sqlippool not defined.<br> &gt; but I set up as below.<br>
&gt; What&#39;s wrong with my settings?<br>
&gt;<br>
&gt; ------------radiusd -X-----------------<br>
&gt;   ... adding new socket proxy address * port 55682<br>
&gt; Listening on authentication address * port 1812<br>
&gt; Listening on accounting address * port 1813<br>
&gt; Listening on command file /var/run/radiusd/radiusd.sock<br>
&gt; Listening on authentication address 127.0.0.1 port 18120 as server<br>
&gt; inner-tunnel<br>
&gt; Listening on proxy address * port 1814<br>
&gt; Ready to process requests.<br>
&gt; rad_recv: Access-Request packet from host 10.0.5.200 port 50000, id=3,<br>
&gt; length=205<br>
&gt;             User-Password = &quot;test&quot;<br>
&gt;             User-Name = &quot;<a \
href="mailto:user@mondomaine.fr">user@mondomaine.fr</a>&quot;<br> &gt;             \
Acct-Session-Id = &quot;erx FastEthernet 1/6:0011534340&quot;<br> &gt;             \
Service-Type = Framed-User<br> &gt;             Framed-Protocol = PPP<br>
&gt;             ERX-Pppoe-Description = &quot;pppoe 00:1d:72:c6:7b:d5&quot;<br>
&gt;             Calling-Station-Id = &quot;#ERX-40-b0-7a#E16#0&quot;<br>
&gt;             NAS-Port-Type = Ethernet<br>
&gt;             NAS-Port = 369098752<br>
&gt;             NAS-Port-Id = &quot;FastEthernet 1/6&quot;<br>
&gt;             NAS-IP-Address = 10.0.5.200<br>
&gt;             NAS-Identifier = &quot;ERX-40-b0-7a&quot;<br>
&gt; # Executing section authorize from file /etc/raddb/sites-enabled/default<br>
&gt; +- entering group authorize {...}<br>
&gt; ++[preprocess] returns ok<br>
&gt; ++[chap] returns noop<br>
&gt; ++[mschap] returns noop<br>
&gt; ++[digest] returns noop<br>
&gt; [suffix] Looking up realm &quot;<a href="http://mondomaine.fr" \
target="_blank">mondomaine.fr</a>&quot; for User-Name =<br> &gt; &quot;<a \
href="mailto:user@mondomaine.fr">user@mondomaine.fr</a>&quot;<br> &gt; [suffix] No \
such realm &quot;<a href="http://mondomaine.fr" \
target="_blank">mondomaine.fr</a>&quot;<br> &gt; ++[suffix] returns noop<br>
&gt; [eap] No EAP-Message, not doing EAP<br>
&gt; ++[eap] returns noop<br>
&gt; [files] users: Matched entry <a \
href="mailto:user@mondomaine.fr">user@mondomaine.fr</a> at line 6<br> &gt; [files] \
users: Matched entry DEFAULT at line 183<br> &gt; ++[files] returns ok<br>
&gt; ++[expiration] returns noop<br>
&gt; ++[logintime] returns noop<br>
&gt; ++[pap] returns updated<br>
&gt; Found Auth-Type = PAP<br>
&gt; # Executing group from file /etc/raddb/sites-enabled/default<br>
&gt; +- entering group PAP {...}<br>
&gt; [pap] login attempt with password &quot;test&quot;<br>
&gt; [pap] Using clear text password &quot;test&quot;<br>
&gt; [pap] User authenticated successfully<br>
&gt; ++[pap] returns ok<br>
&gt; Login OK: [<a href="mailto:user@mondomaine.fr">user@mondomaine.fr</a>] (from \
client GGSN1 port 369098752 cli<br> &gt; #ERX-40-b0-7a#E16#0)<br>
&gt; # Executing section post-auth from file /etc/raddb/sites-enabled/default<br>
&gt; +- entering group post-auth {...}<br>
&gt; [sqlippool] No Pool-Name defined.<br>
&gt; [sqlippool]       expand: No Pool-Name defined    (did %{Called-Station-Id} \
cli<br> &gt; %{Calling-Station-Id} port %{NAS-Port} user %{User-Name}) -&gt; No \
Pool-Name<br> &gt; defined    (did   cli #ERX-40-b0-7a#E16#0 port 369098752 user<br>
&gt; <a href="mailto:user@mondomaine.fr">user@mondomaine.fr</a>)<br>
&gt; No Pool-Name defined    (did   cli #ERX-40-b0-7a#E16#0 port 369098752 user<br>
&gt; <a href="mailto:user@mondomaine.fr">user@mondomaine.fr</a>)<br>
&gt; ++[sqlippool] returns noop<br>
&gt; ++[exec] returns noop<br>
&gt; Sending Access-Accept of id 3 to 10.0.5.200 port 50000<br>
&gt;             NAS-IP-Address == 10.0.5.200<br>
&gt;             Framed-Protocol = PPP<br>
&gt;             Framed-Compression = Van-Jacobson-TCP-IP<br>
&gt; Finished request 0.<br>
&gt; Going to the next request<br>
&gt; Waking up in 4.9 seconds.<br>
&gt; rad_recv: Accounting-Request packet from host 10.0.5.200 port 50016, id=73,<br>
&gt; length=246<br>
&gt;             Acct-Status-Type = Stop<br>
&gt;             User-Name = &quot;<a \
href="mailto:user@mondomaine.fr">user@mondomaine.fr</a>&quot;<br> &gt;             \
Event-Timestamp = &quot;Apr 27 2014 14:19:10 PDT&quot;<br> &gt;             \
Acct-Delay-Time = 0<br> &gt;             NAS-Identifier = \
&quot;ERX-40-b0-7a&quot;<br> &gt;             Acct-Session-Id = &quot;erx \
FastEthernet 1/6:0011534340&quot;<br> &gt;             NAS-IP-Address = \
10.0.5.200<br> &gt;             Service-Type = Framed-User<br>
&gt;             Calling-Station-Id = &quot;#ERX-40-b0-7a#E16#0&quot;<br>
&gt;             Acct-Input-Gigawords = 0<br>
&gt;             Acct-Input-Octets = 0<br>
&gt;             Acct-Output-Gigawords = 0<br>
&gt;             Acct-Output-Octets = 0<br>
&gt;             ERX-Input-Gigapkts = 0<br>
&gt;             Acct-Input-Packets = 0<br>
&gt;             ERX-Output-Gigapkts = 0<br>
&gt;             Acct-Output-Packets = 0<br>
&gt;             NAS-Port-Type = Ethernet<br>
&gt;             NAS-Port = 369098752<br>
&gt;             NAS-Port-Id = &quot;FastEthernet 1/6&quot;<br>
&gt;             Acct-Authentic = RADIUS<br>
&gt;             Acct-Session-Time = 0<br>
&gt;             Acct-Terminate-Cause = NAS-Request<br>
&gt; # Executing section preacct from file /etc/raddb/sites-enabled/default<br>
&gt; +- entering group preacct {...}<br>
&gt; ++[preprocess] returns ok<br>
&gt; [acct_unique] Hashing &#39;NAS-Port = 369098752,Client-IP-Address =<br>
&gt; 10.0.5.200,NAS-IP-Address = 10.0.5.200,Acct-Session-Id = &quot;erx \
FastEthernet<br> &gt; 1/6:0011534340&quot;,User-Name = &quot;<a \
href="mailto:user@mondomaine.fr">user@mondomaine.fr</a>&quot;&#39;<br> &gt; \
[acct_unique] Acct-Unique-Session-ID = &quot;fbbf6a6fb6bf3d32&quot;.<br> &gt; \
++[acct_unique] returns ok<br> &gt; [suffix] Looking up realm &quot;<a \
href="http://mondomaine.fr" target="_blank">mondomaine.fr</a>&quot; for User-Name \
=<br> &gt; &quot;<a href="mailto:user@mondomaine.fr">user@mondomaine.fr</a>&quot;<br>
&gt; [suffix] No such realm &quot;<a href="http://mondomaine.fr" \
target="_blank">mondomaine.fr</a>&quot;<br> &gt; ++[suffix] returns noop<br>
&gt; ++[files] returns noop<br>
&gt; # Executing section accounting from file /etc/raddb/sites-enabled/default<br>
&gt; +- entering group accounting {...}<br>
&gt; [detail]            expand: %{Packet-Src-IP-Address} -&gt; 10.0.5.200<br>
&gt; [detail]            expand:<br>
&gt; /var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d<br>
 &gt; -&gt; /var/log/radius/radacct/<a href="http://10.0.5.200/detail-20140427" \
target="_blank">10.0.5.200/detail-20140427</a><br> &gt; [detail]<br>
&gt; /var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d<br>
 &gt; expands to /var/log/radius/radacct/<a href="http://10.0.5.200/detail-20140427" \
target="_blank">10.0.5.200/detail-20140427</a><br> &gt; [detail]            expand: \
%t -&gt; Sun Apr 27 22:49:32 2014<br> &gt; ++[detail] returns ok<br>
&gt; ++[unix] returns ok<br>
&gt; [radutmp]          expand: /var/log/radius/radutmp -&gt; \
/var/log/radius/radutmp<br> &gt; [radutmp]          expand: %{User-Name} -&gt; <a \
href="mailto:user@mondomaine.fr">user@mondomaine.fr</a><br> &gt; rlm_radutmp: Logout \
for NAS GGSN1 port 369098752, but no Login record<br> &gt; ++[radutmp] returns ok<br>
&gt; rlm_sql (sql): Reserving sql socket id: 13<br>
&gt; [sqlippool]       expand: %{User-Name} -&gt; <a \
href="mailto:user@mondomaine.fr">user@mondomaine.fr</a><br> &gt; [sqlippool] \
sql_set_user escaped user --&gt; &#39;<a \
href="mailto:user@mondomaine.fr">user@mondomaine.fr</a>&#39;<br> &gt; [sqlippool]     \
expand: START TRANSACTION -&gt; START TRANSACTION<br> &gt; [sqlippool]       expand: \
UPDATE radippool   SET nasipaddress = &#39;&#39;, pool_key =<br> &gt; 0, \
callingstationid = &#39;&#39;, username = &#39;&#39;,   expiry_time = NULL   \
WHERE<br> &gt; nasipaddress = &#39;%{Nas-IP-Address}&#39; AND pool_key = \
&#39;%{NAS-Port}&#39;   AND<br> &gt; username = &#39;%{User-Name}&#39;   AND \
callingstationid = &#39;%{Calling-Station-Id}&#39;<br> &gt; AND framedipaddress = \
&#39;%{Framed-IP-Address}&#39; -&gt; UPDATE radippool   SET<br> &gt; nasipaddress = \
&#39;&#39;, pool_key = 0, callingstationid = &#39;&#39;, username = &#39;&#39;,<br> \
&gt; expiry_time = NULL   WHERE nasipaddress = &#39;10.0.5.200&#39; AND pool_key \
=<br> &gt; &#39;369098752&#39;   AND username = &#39;<a \
href="mailto:user@mondomaine.fr">user@mondomaine.fr</a>&#39;   AND callingstationid \
=<br> &gt; &#39;=23ERX-40-b0-7a=23E16=230&#39;   AND framedipaddress = &#39;&#39;<br>
&gt; [sqlippool]       expand: COMMIT -&gt; COMMIT<br>
&gt; [sqlippool]       expand: Released IP %{Framed-IP-Address} (did<br>
&gt; %{Called-Station-Id} cli %{Calling-Station-Id} user %{User-Name}) -&gt;<br>
&gt; Released IP   (did   cli #ERX-40-b0-7a#E16#0 user <a \
href="mailto:user@mondomaine.fr">user@mondomaine.fr</a>)<br> &gt; Released IP   (did  \
cli #ERX-40-b0-7a#E16#0 user <a \
href="mailto:user@mondomaine.fr">user@mondomaine.fr</a>)<br> &gt; rlm_sql (sql): \
Released sql socket id: 13<br> &gt; ++[sqlippool] returns ok<br>
&gt; ++[exec] returns noop<br>
&gt; [attr_filter.accounting_response]          expand: %{User-Name} -&gt;<br>
&gt; <a href="mailto:user@mondomaine.fr">user@mondomaine.fr</a><br>
&gt; attr_filter: Matched entry DEFAULT at line 12<br>
&gt; ++[attr_filter.accounting_response] returns updated<br>
&gt; Sending Accounting-Response of id 73 to 10.0.5.200 port 50016<br>
&gt; Finished request 1.<br>
&gt; Cleaning up request 1 ID 73 with timestamp +10<br>
&gt; Going to the next request<br>
&gt; Waking up in 4.9 seconds.<br>
&gt; Cleaning up request 0 ID 3 with timestamp +10<br>
&gt; Ready to process requests.<br>
&gt; ------------------------------------------------------------<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ---------------------sqlippool.conf------------------------------<br>
&gt; ##   Configuration for the SQL based IP Pool module (rlm_sqlippool)<br>
&gt; ##<br>
&gt; ##   The database schemas are available at:<br>
&gt; ##<br>
&gt; ##          raddb/sql/DB/ippool.sql<br>
&gt; ##<br>
&gt; ##   $Id$<br>
&gt;<br>
&gt; sqlippool {<br>
&gt;<br>
&gt;   #########################################<br>
&gt;   ## SQL instance to use (from sql.conf) ##<br>
&gt;   ##<br>
&gt;   ##   If you have multiple sql instances, such as &quot;sql sql1 \
{...}&quot;,<br> &gt;   ##   use the *instance* name here: sql1.<br>
&gt;   #########################################<br>
&gt;   sql-instance-name = &quot;sql&quot;<br>
&gt;<br>
&gt;   ## SQL table to use for ippool range and lease info<br>
&gt;   ippool_table = &quot;radippool&quot;<br>
&gt;<br>
&gt;   ## IP lease duration. (Leases expire even if Acct Stop packet is lost)<br>
&gt;   lease-duration = 3600<br>
&gt;<br>
&gt;   ## Attribute which should be considered unique per NAS<br>
&gt;   ## Using NAS-Port gives behaviour similar to rlm_ippool. (And ACS)<br>
&gt;   ## Using Calling-Station-Id works for NAS that send fixed NAS-Port<br>
&gt;   ## ONLY change this if you know what you are doing!<br>
&gt;   pool-key = &quot;%{NAS-Port}&quot;<br>
&gt;   # pool-key = &quot;%{Calling-Station-Id}&quot;<br>
&gt;<br>
&gt;   ################################################################<br>
&gt;   #<br>
&gt;   #   WARNING: MySQL has certain limitations that means it can<br>
&gt;   #                hand out the same IP address to 2 different users.<br>
&gt;   #<br>
&gt;   #                We suggest using an SQL DB with proper transaction<br>
&gt;   #                support, such as PostgreSQL, or using MySQL<br>
&gt;   #       with InnoDB.<br>
&gt;   #<br>
&gt;   ################################################################<br>
&gt;<br>
&gt;   #<br>
&gt;   #   Use the same database as configured in the &quot;sql&quot; module, \
&quot;database&quot;<br> &gt;   #   configuration item.   Change the \
&quot;postgresql&quot; name below to be the<br> &gt;   #   same as the \
&quot;database&quot; field of the SQL module referred to in the<br> &gt;   #   \
&quot;sql-instance-name&quot;, above.<br> &gt;   #<br>
&gt; #$INCLUDE sql/postgresql/ippool.conf<br>
&gt; $INCLUDE sql/mysql/ippool.conf<br>
&gt;<br>
&gt;   ## Logging configuration. (Comment out to disable logging)<br>
&gt;   sqlippool_log_exists = &quot;Existing IP: %{reply:Framed-IP-Address} \<br>
&gt;    (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} user<br>
&gt; %{User-Name})&quot;<br>
&gt;<br>
&gt;   sqlippool_log_success = &quot;Allocated IP: %{reply:Framed-IP-Address} \
from<br> &gt; %{control:Pool-Name} \<br>
&gt;    (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} user<br>
&gt; %{User-Name})&quot;<br>
&gt;<br>
&gt;   sqlippool_log_clear = &quot;Released IP %{Framed-IP-Address}\<br>
&gt;   (did %{Called-Station-Id} cli %{Calling-Station-Id} user \
%{User-Name})&quot;<br> &gt;<br>
&gt;   sqlippool_log_failed = &quot;IP Allocation FAILED from %{control:Pool-Name} \
\<br> &gt;    (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} \
user<br> &gt; %{User-Name})&quot;<br>
&gt;<br>
&gt;   sqlippool_log_nopool = &quot;No Pool-Name defined \<br>
&gt;    (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} user<br>
&gt; %{User-Name})&quot;<br>
&gt;<br>
&gt; }<br>
&gt; -------------------------------------------------------------------<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ------------------------------sql.conf---------------------------------<br>
&gt; # -*- text -*-<br>
&gt; ##<br>
&gt; ## sql.conf -- SQL modules<br>
&gt; ##<br>
&gt; ## $Id$<br>
&gt;<br>
&gt; ######################################################################<br>
&gt; #<br>
&gt; #   Configuration for the SQL module<br>
&gt; #<br>
&gt; #   The database schemas and queries are located in subdirectories:<br>
&gt; #<br>
&gt; # sql/DB/schema.sql Schema<br>
&gt; # sql/DB/dialup.conf Basic dialup (including policy) queries<br>
&gt; # sql/DB/counter.conf counter<br>
&gt; # sql/DB/ippool.conf IP Pools in SQL<br>
&gt; # sql/DB/ippool.sql schema for IP pools.<br>
&gt; #<br>
&gt; #   Where &quot;DB&quot; is mysql, mssql, oracle, or postgresql.<br>
&gt; #<br>
&gt;<br>
&gt; sql {<br>
&gt; #<br>
&gt; #   Set the database to one of:<br>
&gt; #<br>
&gt; # mysql, mssql, oracle, postgresql<br>
&gt; #<br>
&gt; database = &quot;mysql&quot;<br>
&gt;<br>
&gt; #<br>
&gt; #   Which FreeRADIUS driver to use.<br>
&gt; #<br>
&gt; driver = &quot;rlm_sql_${database}&quot;<br>
&gt;<br>
&gt; # Connection info:<br>
&gt; server = &quot;localhost&quot;<br>
&gt; #port = 3306<br>
&gt; login = &quot;userfreeradius&quot;<br>
&gt; password = &quot;pwdfreeradius&quot;<br>
&gt;<br>
&gt; # Database table configuration for everything except Oracle<br>
&gt; radius_db = &quot;freeradius&quot;<br>
&gt; # If you are using Oracle then use this instead<br>
&gt;             # radius_db =<br>
&gt; &quot;(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SID=your_sid)))&quot;<br>
 &gt;<br>
&gt; # If you want both stop and start records logged to the<br>
&gt; # same SQL table, leave this as is.   If you want them in<br>
&gt; # different tables, put the start table in acct_table1<br>
&gt; # and stop table in acct_table2<br>
&gt; acct_table1 = &quot;radacct&quot;<br>
&gt; acct_table2 = &quot;radacct&quot;<br>
&gt;<br>
&gt; # Allow for storing data after authentication<br>
&gt; postauth_table = &quot;radpostauth&quot;<br>
&gt;<br>
&gt; authcheck_table = &quot;radcheck&quot;<br>
&gt; authreply_table = &quot;radreply&quot;<br>
&gt;<br>
&gt; groupcheck_table = &quot;radgroupcheck&quot;<br>
&gt; groupreply_table = &quot;radgroupreply&quot;<br>
&gt;<br>
&gt; # Table to keep group info<br>
&gt; usergroup_table = &quot;radusergroup&quot;<br>
&gt;<br>
&gt; # If set to &#39;yes&#39; (default) we read the group tables<br>
&gt; # If set to &#39;no&#39; the user MUST have Fall-Through = Yes in the radreply \
table<br> &gt; read_groups = yes<br>
&gt;<br>
&gt; # Remove stale session if checkrad does not see a double login<br>
&gt; deletestalesessions = yes<br>
&gt;<br>
&gt; # Print all SQL statements when in debug mode (-x)<br>
&gt; sqltrace = no<br>
&gt; sqltracefile = ${logdir}/sqltrace.sql<br>
&gt;<br>
&gt; # number of sql connections to make to server<br>
&gt; num_sql_socks = 15<br>
&gt;<br>
&gt; # number of seconds to dely retrying on a failed database<br>
&gt; # connection (per_socket)<br>
&gt; connect_failure_retry_delay = 60<br>
&gt;<br>
&gt; # lifetime of an SQL socket.   If you are having network issues<br>
&gt; # such as TCP sessions expiring, you may need to set the socket<br>
&gt; # lifetime.   If set to non-zero, any open connections will be<br>
&gt; # closed &quot;lifetime&quot; seconds after they were first opened.<br>
&gt; lifetime = 0<br>
&gt;<br>
&gt; # Maximum number of queries used by an SQL socket.   If you are<br>
&gt; # having issues with SQL sockets lasting &quot;too long&quot;, you can<br>
&gt; # limit the number of queries performed over one socket.   After<br>
&gt; # &quot;max_qeuries&quot;, the socket will be closed.   Use 0 for &quot;no \
limit&quot;.<br> &gt; max_queries = 0<br>
&gt;<br>
&gt; # Set to &#39;yes&#39; to read radius clients from the database (&#39;nas&#39; \
table)<br> &gt; # Clients will ONLY be read on server startup.   For performance<br>
&gt; # and security reasons, finding clients via SQL queries CANNOT<br>
&gt; # be done &quot;live&quot; while the server is running.<br>
&gt; #<br>
&gt; readclients = yes<br>
&gt;<br>
&gt; # Table to keep radius client info<br>
&gt; nas_table = &quot;nas&quot;<br>
&gt;<br>
&gt; # Read driver-specific configuration<br>
&gt; $INCLUDE sql/${database}/dialup.conf<br>
&gt; }<br>
&gt; ---------------------------------------------------------------------------<br>
&gt;<br>
&gt; If these information is not enough please let me know.<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div><div class="HOEnZb"><div class="h5">&gt; -<br>
&gt; List info/subscribe/unsubscribe? See<br>
&gt; <a href="http://www.freeradius.org/list/users.html" \
                target="_blank">http://www.freeradius.org/list/users.html</a><br>
-<br>
List info/subscribe/unsubscribe? See <a \
href="http://www.freeradius.org/list/users.html" \
target="_blank">http://www.freeradius.org/list/users.html</a><br> \
</div></div></blockquote></div><br></div>



-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic