<div dir="ltr"><div>Hello everyone<br><br></div>I am trying to set up FreeRADIUS as a DHCP server for use with an IP pool in an Oracle DB. I built the latest version from git, and added some basic config to test the DHCP pool functionality. However, the server does not process any requests and gives the following error:<br>
<br>Received DHCP-Discover of id cf875833 from <a href="http://10.180.1.1:67">10.180.1.1:67</a> to <a href="http://10.160.0.254:67">10.160.0.254:67</a><br>Threads: total/active/spare threads = 0/0/0<br>Something is blocking the server. There are 0 packets in the queue, waiting to be processed. Ignoring the new request.<br>
(0) Cleaning up request packet ID 3481753651 with timestamp +302<br><div><br></div><div>I would be very grateful if someone could advise what the problem is.<br><br></div><div>The full debug log is as follows:<br><br>radiusd: FreeRADIUS Version 3.1.0 (git #10ffd5b), for host x86_64-unknown-linux-gnu, built on Feb 21 2014 at 13:50:22<br>
Copyright (C) 1999-2014 The FreeRADIUS server project and contributors<br>There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A<br>PARTICULAR PURPOSE<br>You may redistribute copies of FreeRADIUS under the terms of the<br>
GNU General Public License<br>For more information about these matters, see the file named COPYRIGHT<br>Starting - reading configuration files ...<br>including dictionary file /usr/local/share/freeradius/dictionary<br>including dictionary file /usr/local/etc/raddb/dictionary<br>
including configuration file /usr/local/etc/raddb/radiusd.conf<br>including configuration file /usr/local/etc/raddb/clients.conf<br>including files in directory /usr/local/etc/raddb/mods-enabled/<br>including configuration file /usr/local/etc/raddb/mods-enabled/expr<br>
including configuration file /usr/local/etc/raddb/mods-enabled/ntlm_auth<br>including configuration file /usr/local/etc/raddb/mods-enabled/logintime<br>including configuration file /usr/local/etc/raddb/mods-enabled/expiration<br>
including configuration file /usr/local/etc/raddb/mods-enabled/realm<br>including configuration file /usr/local/etc/raddb/mods-enabled/detail.log<br>including configuration file /usr/local/etc/raddb/mods-enabled/pap<br>including configuration file /usr/local/etc/raddb/mods-enabled/digest<br>
including configuration file /usr/local/etc/raddb/mods-enabled/attr_filter<br>including configuration file /usr/local/etc/raddb/mods-enabled/chap<br>including configuration file /usr/local/etc/raddb/mods-enabled/eap<br>including configuration file /usr/local/etc/raddb/mods-enabled/utf8<br>
including configuration file /usr/local/etc/raddb/mods-enabled/replicate<br>including configuration file /usr/local/etc/raddb/mods-enabled/detail<br>including configuration file /usr/local/etc/raddb/mods-enabled/always<br>
including configuration file /usr/local/etc/raddb/mods-enabled/echo<br>including configuration file /usr/local/etc/raddb/mods-enabled/cache_eap<br>including configuration file /usr/local/etc/raddb/mods-enabled/linelog<br>
including configuration file /usr/local/etc/raddb/mods-enabled/files<br>including configuration file /usr/local/etc/raddb/mods-enabled/dhcp<br>including configuration file /usr/local/etc/raddb/mods-enabled/dynamic_clients<br>
including configuration file /usr/local/etc/raddb/mods-enabled/mschap<br>including configuration file /usr/local/etc/raddb/mods-enabled/radutmp<br>including configuration file /usr/local/etc/raddb/mods-enabled/unix<br>including configuration file /usr/local/etc/raddb/mods-enabled/sql<br>
including configuration file /usr/local/etc/raddb/mods-config/sql/main/oracle/queries.conf<br>including configuration file /usr/local/etc/raddb/mods-enabled/passwd<br>including configuration file /usr/local/etc/raddb/mods-enabled/sradutmp<br>
including configuration file /usr/local/etc/raddb/mods-enabled/exec<br>including configuration file /usr/local/etc/raddb/mods-enabled/soh<br>including configuration file /usr/local/etc/raddb/mods-enabled/dhcp_sqlippool<br>
including configuration file /usr/local/etc/raddb/mods-config/sql/ippool-dhcp/oracle/queries.conf<br>including configuration file /usr/local/etc/raddb/mods-enabled/preprocess<br>including configuration file /usr/local/etc/raddb/mods-enabled/sqlippool<br>
including configuration file /usr/local/etc/raddb/mods-config/sql/ippool/mysql/queries.conf<br>including files in directory /usr/local/etc/raddb/policy.d/<br>including configuration file /usr/local/etc/raddb/policy.d/canonicalization<br>
including configuration file /usr/local/etc/raddb/policy.d/control<br>including configuration file /usr/local/etc/raddb/policy.d/filter<br>including configuration file /usr/local/etc/raddb/policy.d/eap<br>including configuration file /usr/local/etc/raddb/policy.d/dhcp<br>
including configuration file /usr/local/etc/raddb/policy.d/operator-name<br>including configuration file /usr/local/etc/raddb/policy.d/cui<br>including configuration file /usr/local/etc/raddb/policy.d/accounting<br>including files in directory /usr/local/etc/raddb/sites-enabled/<br>
including configuration file /usr/local/etc/raddb/sites-enabled/dhcp_pool<br>main {<br> security {<br> allow_core_dumps = no<br> }<br>}<br>main {<br> name = "radiusd"<br> prefix = "/usr/local"<br>
localstatedir = "/usr/local/var"<br> sbindir = "/usr/local/sbin"<br> logdir = "/usr/local/var/log/radius"<br> run_dir = "/usr/local/var/run/radiusd"<br> libdir = "/usr/local/lib"<br>
radacctdir = "/usr/local/var/log/radius/radacct"<br> hostname_lookups = no<br> max_request_time = 30<br> cleanup_delay = 5<br> max_requests = 1024<br> pidfile = "/usr/local/var/run/radiusd/radiusd.pid"<br>
checkrad = "/usr/local/sbin/checkrad"<br> debug_level = 0<br> proxy_requests = no<br> log {<br> stripped_names = no<br> auth = no<br> auth_badpass = no<br> auth_goodpass = no<br> colourise = yes<br>
}<br> security {<br> max_attributes = 200<br> reject_delay = 1<br> status_server = yes<br> }<br>}<br>radiusd: #### Loading Realms and Home Servers ####<br>radiusd: #### Loading Clients ####<br> client localhost {<br>
ipaddr = 127.0.0.1<br> require_message_authenticator = no<br> secret = <<< secret >>><br> nas_type = "other"<br> proto = "*"<br> limit {<br> max_connections = 16<br>
lifetime = 0<br> idle_timeout = 30<br> }<br> }<br>radiusd: #### Instantiating modules ####<br> instantiate {<br> }<br> modules {<br> # Loaded module rlm_expr<br> # Instantiating module "expr" from file /usr/local/etc/raddb/mods-enabled/expr<br>
expr {<br> safe_characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /"<br> }<br> # Loaded module rlm_exec<br> # Instantiating module "ntlm_auth" from file /usr/local/etc/raddb/mods-enabled/ntlm_auth<br>
exec ntlm_auth {<br> wait = yes<br> program = "/path/to/ntlm_auth --request-nt-key --domain=MYDOMAIN --username=%{mschap:User-Name} --password=%{User-Password}"<br> shell_escape = yes<br> }<br>
# Loaded module rlm_logintime<br> # Instantiating module "logintime" from file /usr/local/etc/raddb/mods-enabled/logintime<br> logintime {<br> minimum_timeout = 60<br> }<br> # Loaded module rlm_expiration<br>
# Instantiating module "expiration" from file /usr/local/etc/raddb/mods-enabled/expiration<br> # Loaded module rlm_realm<br> # Instantiating module "IPASS" from file /usr/local/etc/raddb/mods-enabled/realm<br>
realm IPASS {<br> format = "prefix"<br> delimiter = "/"<br> ignore_default = no<br> ignore_null = no<br> }<br> # Instantiating module "suffix" from file /usr/local/etc/raddb/mods-enabled/realm<br>
realm suffix {<br> format = "suffix"<br> delimiter = "@"<br> ignore_default = no<br> ignore_null = no<br> }<br> # Instantiating module "realmpercent" from file /usr/local/etc/raddb/mods-enabled/realm<br>
realm realmpercent {<br> format = "suffix"<br> delimiter = "%"<br> ignore_default = no<br> ignore_null = no<br> }<br> # Instantiating module "ntdomain" from file /usr/local/etc/raddb/mods-enabled/realm<br>
realm ntdomain {<br> format = "prefix"<br> delimiter = "\"<br> ignore_default = no<br> ignore_null = no<br> }<br> # Loaded module rlm_detail<br> # Instantiating module "auth_log" from file /usr/local/etc/raddb/mods-enabled/detail.log<br>
detail auth_log {<br> filename = "/usr/local/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d"<br> header = "%t"<br> permissions = 384<br>
dir_permissions = 493<br> locking = no<br> log_packet_header = no<br> }<br>rlm_detail (auth_log): 'User-Password' suppressed, will not appear in detail output<br> # Instantiating module "reply_log" from file /usr/local/etc/raddb/mods-enabled/detail.log<br>
detail reply_log {<br> filename = "/usr/local/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/reply-detail-%Y%m%d"<br> header = "%t"<br> permissions = 384<br>
dir_permissions = 493<br> locking = no<br> log_packet_header = no<br> }<br> # Instantiating module "pre_proxy_log" from file /usr/local/etc/raddb/mods-enabled/detail.log<br> detail pre_proxy_log {<br>
filename = "/usr/local/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/pre-proxy-detail-%Y%m%d"<br> header = "%t"<br> permissions = 384<br> dir_permissions = 493<br>
locking = no<br> log_packet_header = no<br> }<br> # Instantiating module "post_proxy_log" from file /usr/local/etc/raddb/mods-enabled/detail.log<br> detail post_proxy_log {<br> filename = "/usr/local/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/post-proxy-detail-%Y%m%d"<br>
header = "%t"<br> permissions = 384<br> dir_permissions = 493<br> locking = no<br> log_packet_header = no<br> }<br> # Loaded module rlm_pap<br> # Instantiating module "pap" from file /usr/local/etc/raddb/mods-enabled/pap<br>
pap {<br> auto_header = no<br> normalise = yes<br> }<br> # Loaded module rlm_digest<br> # Instantiating module "digest" from file /usr/local/etc/raddb/mods-enabled/digest<br> # Loaded module rlm_attr_filter<br>
# Instantiating module "attr_filter.post-proxy" from file /usr/local/etc/raddb/mods-enabled/attr_filter<br> attr_filter attr_filter.post-proxy {<br> filename = "/usr/local/etc/raddb/mods-config/attr_filter/post-proxy"<br>
key = "%{Realm}"<br> relaxed = no<br> }<br>reading pairlist file /usr/local/etc/raddb/mods-config/attr_filter/post-proxy<br> # Instantiating module "attr_filter.pre-proxy" from file /usr/local/etc/raddb/mods-enabled/attr_filter<br>
attr_filter attr_filter.pre-proxy {<br> filename = "/usr/local/etc/raddb/mods-config/attr_filter/pre-proxy"<br> key = "%{Realm}"<br> relaxed = no<br> }<br>reading pairlist file /usr/local/etc/raddb/mods-config/attr_filter/pre-proxy<br>
# Instantiating module "attr_filter.access_reject" from file /usr/local/etc/raddb/mods-enabled/attr_filter<br> attr_filter attr_filter.access_reject {<br> filename = "/usr/local/etc/raddb/mods-config/attr_filter/access_reject"<br>
key = "%{User-Name}"<br> relaxed = no<br> }<br>reading pairlist file /usr/local/etc/raddb/mods-config/attr_filter/access_reject<br> # Instantiating module "attr_filter.access_challenge" from file /usr/local/etc/raddb/mods-enabled/attr_filter<br>
attr_filter attr_filter.access_challenge {<br> filename = "/usr/local/etc/raddb/mods-config/attr_filter/access_challenge"<br> key = "%{User-Name}"<br> relaxed = no<br> }<br>reading pairlist file /usr/local/etc/raddb/mods-config/attr_filter/access_challenge<br>
# Instantiating module "attr_filter.accounting_response" from file /usr/local/etc/raddb/mods-enabled/attr_filter<br> attr_filter attr_filter.accounting_response {<br> filename = "/usr/local/etc/raddb/mods-config/attr_filter/accounting_response"<br>
key = "%{User-Name}"<br> relaxed = no<br> }<br>reading pairlist file /usr/local/etc/raddb/mods-config/attr_filter/accounting_response<br> # Loaded module rlm_chap<br> # Instantiating module "chap" from file /usr/local/etc/raddb/mods-enabled/chap<br>
# Loaded module rlm_eap<br> # Instantiating module "eap" from file /usr/local/etc/raddb/mods-enabled/eap<br> eap {<br> default_eap_type = "md5"<br> timer_expire = 60<br> ignore_unknown_eap_types = no<br>
mod_accounting_username_bug = no<br> max_sessions = 4096<br> }<br> # Linked to sub-module rlm_eap_md5<br> # Linked to sub-module rlm_eap_leap<br> # Linked to sub-module rlm_eap_gtc<br> gtc {<br> challenge = "Password: "<br>
auth_type = "PAP"<br> }<br> # Linked to sub-module rlm_eap_tls<br> tls {<br> tls = "tls-common"<br> }<br> tls-config tls-common {<br> rsa_key_exchange = no<br> dh_key_exchange = yes<br>
rsa_key_length = 512<br> dh_key_length = 512<br> verify_depth = 0<br> ca_path = "/usr/local/etc/raddb/certs"<br> pem_file_type = yes<br> private_key_file = "/usr/local/etc/raddb/certs/server.pem"<br>
certificate_file = "/usr/local/etc/raddb/certs/server.pem"<br> ca_file = "/usr/local/etc/raddb/certs/ca.pem"<br> private_key_password = <<< secret >>><br> dh_file = "/usr/local/etc/raddb/certs/dh"<br>
fragment_size = 1024<br> include_length = yes<br> check_crl = no<br> cipher_list = "DEFAULT"<br> ecdh_curve = "prime256v1"<br> cache {<br> enable = yes<br> lifetime = 24<br>
max_entries = 255<br> }<br> verify {<br> }<br> ocsp {<br> enable = no<br> override_cert_url = yes<br> url = "<a href="http://127.0.0.1/ocsp/">http://127.0.0.1/ocsp/</a>"<br>
use_nonce = yes<br> timeout = 0<br> softfail = yes<br> }<br> }<br> # Linked to sub-module rlm_eap_ttls<br> ttls {<br> tls = "tls-common"<br> default_eap_type = "md5"<br>
copy_request_to_tunnel = no<br> use_tunneled_reply = no<br> virtual_server = "inner-tunnel"<br> include_length = yes<br> require_client_cert = no<br> }<br>Using cached TLS configuration from previous invocation<br>
# Linked to sub-module rlm_eap_peap<br> peap {<br> tls = "tls-common"<br> default_method = "mschapv2"<br> copy_request_to_tunnel = no<br> use_tunneled_reply = no<br> proxy_tunneled_request_as_eap = yes<br>
virtual_server = "inner-tunnel"<br> soh = no<br> require_client_cert = no<br> }<br>Using cached TLS configuration from previous invocation<br> # Linked to sub-module rlm_eap_mschapv2<br> mschapv2 {<br>
with_ntdomain_hack = no<br> send_error = no<br> }<br> # Loaded module rlm_utf8<br> # Instantiating module "utf8" from file /usr/local/etc/raddb/mods-enabled/utf8<br> # Loaded module rlm_replicate<br>
# Instantiating module "replicate" from file /usr/local/etc/raddb/mods-enabled/replicate<br> # Instantiating module "detail" from file /usr/local/etc/raddb/mods-enabled/detail<br> detail {<br> filename = "/usr/local/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d"<br>
header = "%t"<br> permissions = 384<br> dir_permissions = 493<br> locking = no<br> log_packet_header = no<br> }<br> # Loaded module rlm_always<br> # Instantiating module "reject" from file /usr/local/etc/raddb/mods-enabled/always<br>
always reject {<br> rcode = "reject"<br> simulcount = 0<br> mpp = no<br> }<br> # Instantiating module "fail" from file /usr/local/etc/raddb/mods-enabled/always<br> always fail {<br>
rcode = "fail"<br> simulcount = 0<br> mpp = no<br> }<br> # Instantiating module "ok" from file /usr/local/etc/raddb/mods-enabled/always<br> always ok {<br> rcode = "ok"<br>
simulcount = 0<br> mpp = no<br> }<br> # Instantiating module "handled" from file /usr/local/etc/raddb/mods-enabled/always<br> always handled {<br> rcode = "handled"<br> simulcount = 0<br>
mpp = no<br> }<br> # Instantiating module "invalid" from file /usr/local/etc/raddb/mods-enabled/always<br> always invalid {<br> rcode = "invalid"<br> simulcount = 0<br> mpp = no<br>
}<br> # Instantiating module "userlock" from file /usr/local/etc/raddb/mods-enabled/always<br> always userlock {<br> rcode = "userlock"<br> simulcount = 0<br> mpp = no<br> }<br> # Instantiating module "notfound" from file /usr/local/etc/raddb/mods-enabled/always<br>
always notfound {<br> rcode = "notfound"<br> simulcount = 0<br> mpp = no<br> }<br> # Instantiating module "noop" from file /usr/local/etc/raddb/mods-enabled/always<br> always noop {<br>
rcode = "noop"<br> simulcount = 0<br> mpp = no<br> }<br> # Instantiating module "updated" from file /usr/local/etc/raddb/mods-enabled/always<br> always updated {<br> rcode = "updated"<br>
simulcount = 0<br> mpp = no<br> }<br> # Instantiating module "echo" from file /usr/local/etc/raddb/mods-enabled/echo<br> exec echo {<br> wait = yes<br> program = "/bin/echo %{User-Name}"<br>
input_pairs = "request"<br> output_pairs = "reply"<br> shell_escape = yes<br> }<br> # Loaded module rlm_cache<br> # Instantiating module "cache_eap" from file /usr/local/etc/raddb/mods-enabled/cache_eap<br>
cache cache_eap {<br> key = "%{%{control:State}:-%{%{reply:State}:-%{State}}}"<br> ttl = 15<br> max_entries = 16384<br> epoch = 0<br> add_stats = no<br> }<br> # Loaded module rlm_linelog<br>
# Instantiating module "linelog" from file /usr/local/etc/raddb/mods-enabled/linelog<br> linelog {<br> filename = "/usr/local/var/log/radius/linelog"<br> permissions = 384<br> format = "This is a log message for %{User-Name}"<br>
reference = "%{%{Packet-Type}:-format}"<br> }<br> # Instantiating module "linelog-dhcp" from file /usr/local/etc/raddb/mods-enabled/linelog<br> linelog linelog-dhcp {<br> filename = "/usr/local/var/log/radius/linelog-dhcp.log"<br>
permissions = 384<br> format = ""<br> reference = "%{%{reply:DHCP-Message-Type}:-%{request:DHCP-Message-Type}}"<br> }<br> # Loaded module rlm_files<br> # Instantiating module "files" from file /usr/local/etc/raddb/mods-enabled/files<br>
files {<br> filename = "/usr/local/etc/raddb/mods-config/files/authorize"<br> usersfile = "/usr/local/etc/raddb/mods-config/files/authorize"<br> acctusersfile = "/usr/local/etc/raddb/mods-config/files/accounting"<br>
preproxy_usersfile = "/usr/local/etc/raddb/mods-config/files/pre-proxy"<br> compat = "no"<br> }<br>reading pairlist file /usr/local/etc/raddb/mods-config/files/authorize<br>reading pairlist file /usr/local/etc/raddb/mods-config/files/authorize<br>
reading pairlist file /usr/local/etc/raddb/mods-config/files/accounting<br>reading pairlist file /usr/local/etc/raddb/mods-config/files/pre-proxy<br> # Loaded module rlm_dhcp<br> # Instantiating module "dhcp" from file /usr/local/etc/raddb/mods-enabled/dhcp<br>
# Loaded module rlm_dynamic_clients<br> # Instantiating module "dynamic_clients" from file /usr/local/etc/raddb/mods-enabled/dynamic_clients<br> # Loaded module rlm_mschap<br> # Instantiating module "mschap" from file /usr/local/etc/raddb/mods-enabled/mschap<br>
mschap {<br> use_mppe = yes<br> require_encryption = no<br> require_strong = no<br> with_ntdomain_hack = yes<br> passchange {<br> }<br> allow_retry = yes<br> }<br> # Loaded module rlm_radutmp<br>
# Instantiating module "radutmp" from file /usr/local/etc/raddb/mods-enabled/radutmp<br> radutmp {<br> filename = "/usr/local/var/log/radius/radutmp"<br> username = "%{User-Name}"<br>
case_sensitive = yes<br> check_with_nas = yes<br> permissions = 384<br> caller_id = yes<br> }<br> # Loaded module rlm_unix<br> # Instantiating module "unix" from file /usr/local/etc/raddb/mods-enabled/unix<br>
unix {<br> radwtmp = "/usr/local/var/log/radius/radwtmp"<br> }<br> # Loaded module rlm_sql<br> # Instantiating module "sql" from file /usr/local/etc/raddb/mods-enabled/sql<br> sql {<br> driver = "rlm_sql_oracle"<br>
server = "localhost"<br> port = ""<br> login = "foo"<br> password = <<< secret >>><br> radius_db = "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=foo)(PORT=1521))(CONNECT_DATA=(SID=bar)))"<br>
read_groups = yes<br> read_clients = no<br> delete_stale_sessions = yes<br> sql_user_name = "%{User-Name}"<br> default_user_profile = ""<br> client_query = "SELECT id, nasname, shortname, type, secret, server FROM nas"<br>
authorize_check_query = "SELECT id,UserName,Attribute,Value,op FROM radcheck WHERE Username = '%{SQL-User-Name}' ORDER BY id"<br> authorize_reply_query = "SELECT id,UserName,Attribute,Value,op FROM radreply WHERE Username = '%{SQL-User-Name}' ORDER BY id"<br>
authorize_group_check_query = "SELECT <a href="http://radgroupcheck.id">radgroupcheck.id</a>,radgroupcheck.GroupName,radgroupcheck.Attribute,radgroupcheck.Value,radgroupcheck.op FROM radgroupcheck,radusergroup WHERE radusergroup.Username = '%{SQL-User-Name}' AND radusergroup.GroupName = radgroupcheck.GroupName ORDER BY <a href="http://radgroupcheck.id">radgroupcheck.id</a>"<br>
authorize_group_reply_query = "SELECT <a href="http://radgroupreply.id">radgroupreply.id</a>,radgroupreply.GroupName,radgroupreply.Attribute,radgroupreply.Value,radgroupreply.op FROM radgroupreply,radusergroup WHERE radusergroup.Username = '%{SQL-User-Name}' AND radusergroup.GroupName = radgroupreply.GroupName ORDER BY <a href="http://radgroupreply.id">radgroupreply.id</a>"<br>
group_membership_query = "SELECT GroupName FROM radusergroup WHERE UserName='%{SQL-User-Name}'"<br> simul_count_query = ""<br> simul_verify_query = "SELECT RadAcctId, AcctSessionId, UserName, NASIPAddress, NASPortId, FramedIPAddress, CallingStationId, FramedProtocol FROM radacct WHERE UserName='%{SQL-User-Name}' AND AcctStopTime IS NULL"<br>
safe_characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /"<br> }<br> accounting {<br> reference = "%{tolower:type.%{Acct-Status-Type}.query}"<br> }<br> post-auth {<br>
reference = ".query"<br> }<br>rlm_sql (sql): Driver rlm_sql_oracle (module rlm_sql_oracle) loaded and linked<br>rlm_sql (sql): Attempting to connect to database "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=foo)(PORT1521))(CONNECT_DATA=(SID=bar)))"<br>
rlm_sql (sql): Initialising connection pool<br> pool {<br> start = 5<br> min = 4<br> max = 32<br> spare = 3<br> uses = 0<br> lifetime = 0<br> cleanup_delay = 5<br> idle_timeout = 60<br>
spread = no<br> }<br>rlm_sql (sql): Opening additional connection (0)<br>rlm_sql (sql): Opening additional connection (1)<br>rlm_sql (sql): Opening additional connection (2)<br>rlm_sql (sql): Opening additional connection (3)<br>
rlm_sql (sql): Opening additional connection (4)<br> # Loaded module rlm_passwd<br> # Instantiating module "etc_passwd" from file /usr/local/etc/raddb/mods-enabled/passwd<br> passwd etc_passwd {<br> filename = "/etc/passwd"<br>
format = "*User-Name:Crypt-Password:"<br> delimiter = ":"<br> ignore_nislike = no<br> ignore_empty = yes<br> allow_multiple_keys = no<br> hash_size = 100<br> }<br>rlm_passwd: nfields: 3 keyfield 0(User-Name) listable: no<br>
# Instantiating module "sradutmp" from file /usr/local/etc/raddb/mods-enabled/sradutmp<br> radutmp sradutmp {<br> filename = "/usr/local/var/log/radius/sradutmp"<br> username = "%{User-Name}"<br>
case_sensitive = yes<br> check_with_nas = yes<br> permissions = 420<br> caller_id = no<br> }<br> # Instantiating module "exec" from file /usr/local/etc/raddb/mods-enabled/exec<br> exec {<br>
wait = no<br> input_pairs = "request"<br> shell_escape = yes<br> timeout = 10<br> }<br> # Loaded module rlm_soh<br> # Instantiating module "soh" from file /usr/local/etc/raddb/mods-enabled/soh<br>
soh {<br> dhcp = yes<br> }<br> # Loaded module rlm_sqlippool<br> # Instantiating module "dhcp_sqlippool" from file /usr/local/etc/raddb/mods-enabled/dhcp_sqlippool<br> sqlippool dhcp_sqlippool {<br> sql_module_instance = "sql"<br>
lease_duration = 7200<br> pool_name = ""<br> default_pool = "main_pool"<br> allocate_begin = "COMMIT"<br> allocate_clear = " UPDATE radippool SET EXPIRY_TIME = CURRENT_TIMESTAMP - INTERVAL '1' SECOND(1) WHERE POOL_KEY = '%{Calling-Station-Id}'"<br>
allocate_find = " WITH POOLS AS ( SELECT * FROM radippool WHERE EXPIRY_TIME < CURRENT_TIMESTAMP AND POOL_NAME = '%{control:Pool-Name}') SELECT FRAMEDIPADDRESS FROM ( SELECT FRAMEDIPADDRESS FROM POOLS WHERE POOL_KEY = '%{Calling-Station-Id}' OR (NOT EXISTS ( SELECT 1 FROM POOLS WHERE POOL_KEY = '%{Calling-Station-Id}'))) WHERE ROWNUM = 1 FOR UPDATE"<br>
allocate_update = " UPDATE radippool SET NASIPADDRESS = '%{NAS-IP-Address}', POOL_KEY = '%{Calling-Station-Id}', CALLINGSTATIONID = '%{Mac-Addr}', USERNAME = '%{SQL-User-Name}', EXPIRY_TIME = CURRENT_TIMESTAMP + INTERVAL '7200' SECOND(1) WHERE FRAMEDIPADDRESS = '%I'"<br>
allocate_commit = "COMMIT"<br> pool_check = ""<br> start_begin = "COMMIT"<br> start_update = " UPDATE radippool SET EXPIRY_TIME = CURRENT_TIMESTAMP + INTERVAL '7200' SECOND(1) WHERE NASIPADDRESS = '%{NAS-IP-Address}' AND POOL_NAME = '%{control:Pool-Name}' AND POOL_KEY = '%{Calling-Station-Id}' AND FRAMEDIPADDRESS = '%{Framed-IP-Address}'"<br>
start_commit = "COMMIT"<br> alive_begin = "COMMIT"<br> alive_update = " UPDATE radippool SET EXPIRY_TIME = CURRENT_TIMESTAMP + INTERVAL '7200' SECOND(1) WHERE POOL_KEY = '%{Calling-Station-Id}' AND POOL_NAME = '%{control:Pool-Name}' AND FRAMEDIPADDRESS = '%{Framed-IP-Address}'"<br>
alive_commit = "COMMIT"<br> stop_begin = "COMMIT"<br> stop_clear = " UPDATE radippool SET EXPIRY_TIME = CURRENT_TIMESTAMP - INTERVAL '1' SECOND(1) WHERE POOL_KEY = '%{Calling-Station-Id}'"<br>
stop_commit = "COMMIT"<br> on_begin = "COMMIT"<br> on_clear = " UPDATE radippool SET EXPIRY_TIME = CURRENT_TIMESTAMP - INTERVAL '1' SECOND(1) WHERE NASIPADDRESS = '%{Nas-IP-Address}'"<br>
on_commit = "COMMIT"<br> off_begin = "COMMIT"<br> off_clear = " UPDATE radippool SET EXPIRY_TIME = CURRENT_TIMESTAMP - INTERVAL '1' SECOND(1) WHERE NASIPADDRESS = '%{Nas-IP-Address}'"<br>
off_commit = "COMMIT"<br> messages {<br> }<br> }<br> # Loaded module rlm_preprocess<br> # Instantiating module "preprocess" from file /usr/local/etc/raddb/mods-enabled/preprocess<br> preprocess {<br>
huntgroups = "/usr/local/etc/raddb/mods-config/preprocess/huntgroups"<br> hints = "/usr/local/etc/raddb/mods-config/preprocess/hints"<br> with_ascend_hack = no<br> ascend_channels_per_line = 23<br>
with_ntdomain_hack = no<br> with_specialix_jetstream_hack = no<br> with_cisco_vsa_hack = no<br> with_alvarion_vsa_hack = no<br> }<br>reading pairlist file /usr/local/etc/raddb/mods-config/preprocess/huntgroups<br>
reading pairlist file /usr/local/etc/raddb/mods-config/preprocess/hints<br> # Instantiating module "sqlippool" from file /usr/local/etc/raddb/mods-enabled/sqlippool<br> sqlippool {<br> sql_module_instance = "sql"<br>
lease_duration = 3600<br> pool_name = ""<br> default_pool = "main_pool"<br> allocate_begin = "START TRANSACTION"<br> allocate_clear = "UPDATE radippool SET nasipaddress = '', pool_key = 0, callingstationid = '', username = '', expiry_time = NULL WHERE expiry_time <= NOW() - INTERVAL 1 SECOND AND nasipaddress = '%{Nas-IP-Address}'"<br>
allocate_find = "SELECT framedipaddress FROM radippool WHERE pool_name = '%{control:Pool-Name}' AND (expiry_time < NOW() OR expiry_time IS NULL) ORDER BY (username <> '%{User-Name}'), (callingstationid <> '%{Calling-Station-Id}'), expiry_time LIMIT 1 FOR UPDATE"<br>
allocate_update = "UPDATE radippool SET nasipaddress = '%{NAS-IP-Address}', pool_key = '%{NAS-Port}', callingstationid = '%{Calling-Station-Id}', username = '%{User-Name}', expiry_time = NOW() + INTERVAL 3600 SECOND WHERE framedipaddress = '%I' AND expiry_time IS NULL"<br>
allocate_commit = "COMMIT"<br> pool_check = "SELECT id FROM radippool WHERE pool_name='%{control:Pool-Name}' LIMIT 1"<br> start_begin = "START TRANSACTION"<br> start_update = "UPDATE radippool SET expiry_time = NOW() + INTERVAL 3600 SECOND WHERE nasipaddress = '%{NAS-IP-Address}' AND pool_key = '%{NAS-Port}' AND username = '%{User-Name}' AND callingstationid = '%{Calling-Station-Id}' AND framedipaddress = '%{Framed-IP-Address}'"<br>
start_commit = "COMMIT"<br> alive_begin = "START TRANSACTION"<br> alive_update = "UPDATE radippool SET expiry_time = NOW() + INTERVAL 3600 SECOND WHERE nasipaddress = '%{Nas-IP-Address}' AND pool_key = '%{NAS-Port}' AND username = '%{User-Name}' AND callingstationid = '%{Calling-Station-Id}' AND framedipaddress = '%{Framed-IP-Address}'"<br>
alive_commit = "COMMIT"<br> stop_begin = "START TRANSACTION"<br> stop_clear = "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}'"<br>
stop_commit = "COMMIT"<br> on_begin = "START TRANSACTION"<br> on_clear = "UPDATE radippool SET nasipaddress = '', pool_key = 0, callingstationid = '', username = '', expiry_time = NULL WHERE nasipaddress = '%{Nas-IP-Address}'"<br>
on_commit = "COMMIT"<br> off_begin = "START TRANSACTION"<br> off_clear = "UPDATE radippool SET nasipaddress = '', pool_key = 0, callingstationid = '', username = '', expiry_time = NULL WHERE nasipaddress = '%{Nas-IP-Address}'"<br>
off_commit = "COMMIT"<br> messages {<br> exists = "Existing IP: %{reply:Framed-IP-Address} (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} user %{User-Name})"<br> 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})"<br>
clear = "Released IP %{Framed-IP-Address} (did %{Called-Station-Id} cli %{Calling-Station-Id} user %{User-Name})"<br> failed = "IP Allocation FAILED from %{control:Pool-Name} (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} user %{User-Name})"<br>
nopool = "No Pool-Name defined (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} user %{User-Name})"<br> }<br> }<br> } # modules<br>radiusd: #### Loading Virtual Servers ####<br>server { # from file /usr/local/etc/raddb/radiusd.conf<br>
} # server<br>server dhcp { # from file /usr/local/etc/raddb/sites-enabled/dhcp_pool<br> # Loading dictionary.dhcp<br> # Loading dhcp DHCP-Discover {...}<br> # Loading dhcp DHCP-Request {...}<br> # Loading dhcp DHCP-Release {...}<br>
# Loading dhcp DHCP-Inform {...}<br> # Loading dhcp DHCP-Decline {...}<br> # Loading dhcp {...}<br>} # server dhcp<br>radiusd: #### Opening IP addresses and Ports ####<br>listen {<br> type = "dhcp"<br> ipaddr = 0.0.0.0<br>
port = 67<br>}<br>Listening on dhcp interface eth1 address * port 67 as server dhcp<br>Ready to process requests<br>Received DHCP-Discover of id cf875833 from <a href="http://10.180.1.1:67">10.180.1.1:67</a> to <a href="http://10.160.0.254:67">10.160.0.254:67</a><br>
Threads: total/active/spare threads = 0/0/0<br>Something is blocking the server. There are 0 packets in the queue, waiting to be processed. Ignoring the new request.<br>(0) Cleaning up request packet ID 3481753651 with timestamp +302<br>
<br></div><div><br clear="all"><div><br><br></div></div></div>