<div dir="ltr">Hi Guys<br><br>I've done quite alot of research on this and i do not seem to be finding a solve.<br><br>I am trying to achieve users logging via wifi from which ever country they may be.<br><br>I auth them via eap. Check the nas ip, then assign an ip for an ip pool, that all seems good, however i also require to auth certain realms off a seperate MS radius.<br>
<br>That radius does a lookup on its ad and auths the users. For the life of me i cannot get my server to auth against there. I've tried sending mschapv2 but it doesnt seems to be passing to that server. It seems MS-CHAP-Challenge remains empty through out.<br>
<br>I setup my basic server according to this guide, using the same methord for certs as the guide says. <a href="http://www.rrfx.net/2011/02/wpa2-enterprise-on-ubuntu-configuring.html">http://www.rrfx.net/2011/02/wpa2-enterprise-on-ubuntu-configuring.html</a><br>
<br>The key line i think is this<br><br>Login incorrect (Home Server says so): [<a href="http://robert@za.testrealm.net/">robert@za.testrealm.net/</a><no User-Password attribute>]<br><br>I am far from a radius expert, and feel free give me a hard time if i have made stupid mistakes. Any assistance will be appreciated.<br>
<br>Below is my debug startup, i will send the auth failure shortly.<br><br>############################START UP##############################<br><br>FreeRADIUS Version 2.1.12, for host i386-redhat-linux-gnu, built on Oct 3 2012 at 01:20:08<br>
Copyright (C) 1999-2009 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 v2.<br>Starting - reading configuration files ...<br>including configuration file /etc/raddb/radiusd.conf<br>including configuration file /etc/raddb/proxy.conf<br>including configuration file /etc/raddb/clients.conf<br>
including files in directory /etc/raddb/modules/<br>including configuration file /etc/raddb/modules/redis<br>including configuration file /etc/raddb/modules/dynamic_clients<br>including configuration file /etc/raddb/modules/perl<br>
including configuration file /etc/raddb/modules/files<br>including configuration file /etc/raddb/modules/rediswho<br>including configuration file /etc/raddb/modules/unix<br>including configuration file /etc/raddb/modules/attr_rewrite<br>
including configuration file /etc/raddb/modules/echo<br>including configuration file /etc/raddb/modules/always<br>including configuration file /etc/raddb/modules/otp<br>including configuration file /etc/raddb/modules/cui<br>
including configuration file /etc/raddb/modules/pap<br>including configuration file /etc/raddb/modules/digest<br>including configuration file /etc/raddb/modules/soh<br>including configuration file /etc/raddb/modules/acct_unique<br>
including configuration file /etc/raddb/modules/inner-eap<br>including configuration file /etc/raddb/modules/realm<br>including configuration file /etc/raddb/modules/sradutmp<br>including configuration file /etc/raddb/modules/etc_group<br>
including configuration file /etc/raddb/modules/detail<br>including configuration file /etc/raddb/modules/expiration<br>including configuration file /etc/raddb/modules/ippool<br>including configuration file /etc/raddb/modules/ntlm_auth<br>
including configuration file /etc/raddb/modules/chap<br>including configuration file /etc/raddb/modules/smbpasswd<br>including configuration file /etc/raddb/modules/wimax<br>including configuration file /etc/raddb/modules/counter<br>
including configuration file /etc/raddb/modules/radutmp<br>including configuration file /etc/raddb/modules/attr_filter<br>including configuration file /etc/raddb/modules/expr<br>including configuration file /etc/raddb/modules/policy<br>
including configuration file /etc/raddb/modules/exec<br>including configuration file /etc/raddb/modules/mschap<br>including configuration file /etc/raddb/modules/pam<br>including configuration file /etc/raddb/modules/detail.log<br>
including configuration file /etc/raddb/modules/mac2ip<br>including configuration file /etc/raddb/modules/checkval<br>including configuration file /etc/raddb/modules/logintime<br>including configuration file /etc/raddb/modules/<a href="http://detail.example.com">detail.example.com</a><br>
including configuration file /etc/raddb/modules/passwd<br>including configuration file /etc/raddb/modules/smsotp<br>including configuration file /etc/raddb/modules/sqlcounter_expire_on_login<br>including configuration file /etc/raddb/modules/opendirectory<br>
including configuration file /etc/raddb/modules/sql_log<br>including configuration file /etc/raddb/modules/linelog<br>including configuration file /etc/raddb/modules/mac2vlan<br>including configuration file /etc/raddb/modules/preprocess<br>
including configuration file /etc/raddb/modules/replicate<br>including configuration file /etc/raddb/eap.conf<br>including configuration file /etc/raddb/sql.conf<br>including configuration file /etc/raddb/sql/postgresql/dialup.conf<br>
including configuration file /etc/raddb/sqlippool.conf<br>including configuration file /etc/raddb/sql/postgresql/ippool.conf<br>including configuration file /etc/raddb/policy.conf<br>including files in directory /etc/raddb/sites-enabled/<br>
including configuration file /etc/raddb/sites-enabled/default<br>including configuration file /etc/raddb/sites-enabled/control-socket<br>including configuration file /etc/raddb/sites-enabled/inner-tunnel<br>including configuration file /etc/raddb/sites-enabled/coa<br>
main {<br> user = "radiusd"<br> group = "radiusd"<br> allow_core_dumps = no<br>}<br>including dictionary file /etc/raddb/dictionary<br>main {<br> name = "radiusd"<br> prefix = "/usr"<br>
localstatedir = "/var"<br> sbindir = "/usr/sbin"<br> logdir = "/var/log/radius"<br> run_dir = "/var/run/radiusd"<br> libdir = "/usr/lib/freeradius"<br> radacctdir = "/var/log/radius/radacct"<br>
hostname_lookups = no<br> max_request_time = 30<br> cleanup_delay = 5<br> max_requests = 1024<br> pidfile = "/var/run/radiusd/radiusd.pid"<br> checkrad = "/usr/sbin/checkrad"<br> debug_level = 0<br>
proxy_requests = yes<br> log {<br> stripped_names = no<br> auth = yes<br> auth_badpass = yes<br> auth_goodpass = no<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> proxy server {<br> retry_delay = 5<br> retry_count = 3<br> default_fallback = no<br> dead_time = 120<br> wake_all_if_all_dead = no<br> }<br>
home_server adserver {<br> ipaddr = 10.77.82.21<br> port = 1812<br> type = "auth"<br> secret = "xxxxxxxxxxxx"<br> response_window = 30<br> max_outstanding = 65536<br> zombie_period = 40<br>
status_check = "none"<br> ping_check = "none"<br> ping_interval = 30<br> check_interval = 30<br> num_answers_to_alive = 3<br> num_pings_to_alive = 3<br> revive_interval = 300<br>
status_check_timeout = 4<br>
}<br> home_server localhost {<br> ipaddr = 127.0.0.1<br> port = 1812<br> type = "auth"<br> secret = "testing123"<br> response_window = 20<br> max_outstanding = 65536<br> require_message_authenticator = yes<br>
zombie_period = 40<br> status_check = "status-server"<br> ping_interval = 30<br> check_interval = 30<br> num_answers_to_alive = 3<br> num_pings_to_alive = 3<br> revive_interval = 120<br> status_check_timeout = 4<br>
coa {<br> irt = 2<br> mrt = 16<br> mrc = 5<br> mrd = 30<br> }<br> }<br> home_server_pool my_auth_failover {<br> type = fail-over<br> home_server = localhost<br> }<br> realm <a href="http://example.com">example.com</a> {<br>
auth_pool = my_auth_failover<br> }<br> realm LOCAL {<br> }<br> home_server_pool ad_auth {<br> type = fail-over<br> home_server = adserver<br> }<br> realm <a href="http://za.testrealm.net">za.testrealm.net</a> {<br>
auth_pool = ad_auth<br> nostrip<br> }<br>radiusd: #### Loading Clients ####<br> client 10.53.0.6 {<br> ipaddr = 10.53.0.6<br> require_message_authenticator = no<br> secret = "xxxxxxxxxxxx"<br> shortname = "howifi"<br>
nastype = "other"<br> }<br> client 10.77.95.10 {<br> ipaddr = 10.77.95.10<br> require_message_authenticator = no<br> secret = "xxxxxxxxxxxx"<br> shortname = "howifi"<br> nastype = "other"<br>
}<br> client localhost {<br> ipaddr = 127.0.0.1<br> require_message_authenticator = no<br> secret = "testing123123"<br> nastype = "other"<br> }<br>radiusd: #### Instantiating modules ####<br>
instantiate {<br> Module: Linked to module rlm_exec<br> Module: Instantiating module "exec" from file /etc/raddb/modules/exec<br> exec {<br> wait = no<br> input_pairs = "request"<br> shell_escape = yes<br>
}<br> Module: Linked to module rlm_expr<br> Module: Instantiating module "expr" from file /etc/raddb/modules/expr<br> Module: Linked to module rlm_expiration<br> Module: Instantiating module "expiration" from file /etc/raddb/modules/expiration<br>
expiration {<br> reply-message = "Password Has Expired "<br> }<br> Module: Linked to module rlm_logintime<br> Module: Instantiating module "logintime" from file /etc/raddb/modules/logintime<br>
logintime {<br>
reply-message = "You are calling outside your allowed timespan "<br> minimum-timeout = 60<br> }<br> }<br>radiusd: #### Loading Virtual Servers ####<br>server { # from file /etc/raddb/radiusd.conf<br> modules {<br>
Module: Creating Auth-Type = digest<br> Module: Creating Post-Auth-Type = REJECT<br> Module: Checking authenticate {...} for more modules to load<br> Module: Linked to module rlm_mschap<br> Module: Instantiating module "mschap" from file /etc/raddb/modules/mschap<br>
mschap {<br> use_mppe = yes<br> require_encryption = no<br> require_strong = no<br> with_ntdomain_hack = no<br> allow_retry = yes<br> }<br> Module: Linked to module rlm_digest<br> Module: Instantiating module "digest" from file /etc/raddb/modules/digest<br>
Module: Linked to module rlm_eap<br> Module: Instantiating module "eap" from file /etc/raddb/eap.conf<br> eap {<br> default_eap_type = "peap"<br> timer_expire = 60<br> ignore_unknown_eap_types = yes<br>
cisco_accounting_username_bug = no<br> max_sessions = 4096<br> }<br> Module: Linked to sub-module rlm_eap_gtc<br> Module: Instantiating eap-gtc<br> gtc {<br> challenge = "Password: "<br> auth_type = "PAP"<br>
}<br> Module: Linked to sub-module rlm_eap_tls<br> Module: Instantiating eap-tls<br> tls {<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 = "/etc/raddb/certs"<br> pem_file_type = yes<br> private_key_file = "/etc/raddb/certs/server.key"<br> certificate_file = "/etc/raddb/certs/server.pem"<br> dh_file = "/etc/raddb/certs/dh"<br>
random_file = "/etc/raddb/certs/random"<br> fragment_size = 1024<br> include_length = yes<br> check_crl = no<br> cipher_list = "DEFAULT"<br> cache {<br> enable = no<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> }<br> }<br>
Module: Linked to sub-module rlm_eap_ttls<br> Module: Instantiating eap-ttls<br> ttls {<br> default_eap_type = "mschapv2"<br> copy_request_to_tunnel = yes<br> use_tunneled_reply = yes<br> include_length = yes<br>
}<br> Module: Linked to sub-module rlm_eap_peap<br> Module: Instantiating eap-peap<br> peap {<br> default_eap_type = "mschapv2"<br> copy_request_to_tunnel = yes<br> use_tunneled_reply = yes<br> proxy_tunneled_request_as_eap = no<br>
virtual_server = "inner-tunnel"<br> soh = no<br> }<br> Module: Linked to sub-module rlm_eap_mschapv2<br> Module: Instantiating eap-mschapv2<br> mschapv2 {<br> with_ntdomain_hack = no<br> send_error = no<br>
}<br> Module: Checking authorize {...} for more modules to load<br> Module: Linked to module rlm_preprocess<br> Module: Instantiating module "preprocess" from file /etc/raddb/modules/preprocess<br> preprocess {<br>
huntgroups = "/etc/raddb/huntgroups"<br> hints = "/etc/raddb/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> Module: Linked to module rlm_detail<br> Module: Instantiating module "auth_log" from file /etc/raddb/modules/detail.log<br> detail auth_log {<br>
detailfile = "/var/log/radius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d"<br> header = "%t"<br> detailperm = 384<br> dirperm = 493<br> locking = no<br> log_packet_header = no<br>
}<br> Module: Linked to module rlm_realm<br> Module: Instantiating module "suffix" from file /etc/raddb/modules/realm<br> realm suffix {<br> format = "suffix"<br> delimiter = "@"<br>
ignore_default = no<br> ignore_null = no<br> }<br> Module: Linked to module rlm_sql<br> Module: Instantiating module "sql" from file /etc/raddb/sql.conf<br> sql {<br> driver = "rlm_sql_postgresql"<br>
server = "127.0.0.1"<br> port = ""<br> login = "radius"<br> password = "R@d1u5S3cur3P@ss!"<br> radius_db = "radius"<br> read_groups = yes<br> sqltrace = yes<br>
sqltracefile = "/var/log/radius/sqltrace.sql"<br> readclients = yes<br> deletestalesessions = yes<br> num_sql_socks = 5<br> lifetime = 0<br> max_queries = 0<br> sql_user_name = "%{User-Name}"<br>
default_user_profile = ""<br> nas_query = "SELECT id, nasname, shortname, type, secret, server FROM nas"<br> authorize_check_query = "SELECT <a href="http://radcheck.id">radcheck.id</a>, radcheck.UserName, radcheck.Attribute, radcheck.Value, radcheck.Op FROM radcheck inner join users on radcheck.username = users.strusername WHERE Username = '%{SQL-User-Name}' AND (users.imballowed + users.imbadded) > users.imbused AND users.dtExpire > now() ORDER BY <a href="http://radcheck.id">radcheck.id</a>"<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 id, GroupName, Attribute, Value, op FROM radgroupcheck WHERE GroupName = '%{Sql-Group}' ORDER BY id"<br>
authorize_group_reply_query = "SELECT id, GroupName, Attribute, Value, op FROM radgroupreply WHERE GroupName = '%{Sql-Group}' ORDER BY id"<br> accounting_onoff_query = "UPDATE radacct SET AcctStopTime = ('%S'::timestamp - '%{%{Acct-Delay-Time}:-0}'::interval), AcctSessionTime = (EXTRACT(EPOCH FROM ('%S'::timestamp with time zone - AcctStartTime::timestamp with time zone - '%{%{Acct-Delay-Time}:-0}'::interval)))::BIGINT, AcctTerminateCause = '%{Acct-Terminate-Cause}', AcctStopDelay = 0 WHERE AcctStopTime IS NULL AND NASIPAddress= '%{NAS-IP-Address}' AND AcctStartTime <= '%S'::timestamp"<br>
accounting_update_query = "UPDATE radacct SET FramedIPAddress = NULLIF('%{Framed-IP-Address}', '')::inet, AcctSessionTime = '%{Acct-Session-Time}', AcctInputOctets = (('%{%{Acct-Input-Gigawords}:-0}'::bigint << 32) + '%{%{Acct-Input-Octets}:-0}'::bigint), AcctOutputOctets = (('%{%{Acct-Output-Gigawords}:-0}'::bigint << 32) + '%{%{Acct-Output-Octets}:-0}'::bigint) WHERE AcctSessionId = '%{Acct-Session-Id}' AND UserName = '%{SQL-User-Name}' AND NASIPAddress= '%{NAS-IP-Address}' AND AcctStopTime IS NULL"<br>
accounting_update_query_alt = "INSERT INTO radacct (AcctSessionId, AcctUniqueId, UserName, Realm, NASIPAddress, NASPortId, NASPortType, AcctStartTime, AcctSessionTime, AcctAuthentic, AcctInputOctets, AcctOutputOctets, CalledStationId, CallingStationId, ServiceType, FramedProtocol, FramedIPAddress, XAscendSessionSvrKey) VALUES('%{Acct-Session-Id}', '%{Acct-Unique-Session-Id}', '%{SQL-User-Name}', NULLIF('%{Realm}', ''), '%{NAS-IP-Address}', %{%{NAS-Port}:-NULL}, '%{NAS-Port-Type}', ('%S'::timestamp - '%{%{Acct-Delay-Time}:-0}'::interval - '%{%{Acct-Session-Time}:-0}'::interval), '%{Acct-Session-Time}', '%{Acct-Authentic}', (('%{%{Acct-Input-Gigawords}:-0}'::bigint << 32) + '%{%{Acct-Input-Octets}:-0}'::bigint), (('%{%{Acct-Output-Gigawords}:-0}'::bigint << 32) + '%{%{Acct-Output-Octets}:-0}'::bigint), '%{Called-Station-Id}', '%{Calling-Station-Id}', '%{Service-Type}', '%{Framed-Protocol}', NULLIF('%{Framed-IP-Address}', '')::inet, '%{X-Ascend-Session-Svr-Key}')"<br>
accounting_start_query = "INSERT INTO radacct (AcctSessionId, AcctUniqueId, UserName, Realm, NASIPAddress, NASPortId, NASPortType, AcctStartTime, AcctAuthentic, ConnectInfo_start, CalledStationId, CallingStationId, ServiceType, FramedProtocol, FramedIPAddress, AcctStartDelay, XAscendSessionSvrKey) VALUES('%{Acct-Session-Id}', '%{Acct-Unique-Session-Id}', '%{SQL-User-Name}', NULLIF('%{Realm}', ''), '%{NAS-IP-Address}', %{%{NAS-Port}:-NULL}, '%{NAS-Port-Type}', ('%S'::timestamp - '%{%{Acct-Delay-Time}:-0}'::interval), '%{Acct-Authentic}', '%{Connect-Info}', '%{Called-Station-Id}', '%{Calling-Station-Id}', '%{Service-Type}', '%{Framed-Protocol}', NULLIF('%{Framed-IP-Address}', '')::inet, 0, '%{X-Ascend-Session-Svr-Key}')"<br>
accounting_start_query_alt = "UPDATE radacct SET AcctStartTime = ('%S'::timestamp - '%{%{Acct-Delay-Time}:-0}'::interval), AcctStartDelay = 0, ConnectInfo_start = '%{Connect-Info}' WHERE AcctSessionId = '%{Acct-Session-Id}' AND UserName = '%{SQL-User-Name}' AND NASIPAddress = '%{NAS-IP-Address}' AND AcctStopTime IS NULL"<br>
accounting_stop_query = "UPDATE radacct SET AcctStopTime = ('%S'::timestamp - '%{%{Acct-Delay-Time}:-0}'::interval), AcctSessionTime = CASE WHEN '%{Acct-Session-Time}' = '' THEN (EXTRACT(EPOCH FROM ('%S'::TIMESTAMP WITH TIME ZONE - AcctStartTime::TIMESTAMP WITH TIME ZONE - '%{%{Acct-Delay-Time}:-0}'::INTERVAL)))::BIGINT ELSE NULLIF('%{Acct-Session-Time}','')::BIGINT END, AcctInputOctets = (('%{%{Acct-Input-Gigawords}:-0}'::bigint << 32) + '%{%{Acct-Input-Octets}:-0}'::bigint), AcctOutputOctets = (('%{%{Acct-Output-Gigawords}:-0}'::bigint << 32) + '%{%{Acct-Output-Octets}:-0}'::bigint), AcctTerminateCause = '%{Acct-Terminate-Cause}', AcctStopDelay = 0, FramedIPAddress = NULLIF('%{Framed-IP-Address}', '')::inet, ConnectInfo_stop = '%{Connect-Info}' WHERE AcctSessionId = '%{Acct-Session-Id}' AND UserName = '%{SQL-User-Name}' AND NASIPAddress = '%{NAS-IP-Address}' AND AcctStopTime IS NULL"<br>
accounting_stop_query_alt = "INSERT INTO radacct (AcctSessionId, AcctUniqueId, UserName, Realm, NASIPAddress, NASPortId, NASPortType, AcctStartTime, AcctStopTime, AcctSessionTime, AcctAuthentic, ConnectInfo_stop, AcctInputOctets, AcctOutputOctets, CalledStationId, CallingStationId, AcctTerminateCause, ServiceType, FramedProtocol, FramedIPAddress, AcctStopDelay) values('%{Acct-Session-Id}', '%{Acct-Unique-Session-Id}', '%{SQL-User-Name}', NULLIF('%{Realm}', ''), '%{NAS-IP-Address}', %{%{NAS-Port}:-NULL}, '%{NAS-Port-Type}', ('%S'::timestamp - '%{%{Acct-Delay-Time}:-0}'::interval - '%{%{Acct-Session-Time}:-0}'::interval), ('%S'::timestamp - '%{%{Acct-Delay-Time}:-0}'::interval), NULLIF('%{Acct-Session-Time}', '')::bigint, '%{Acct-Authentic}', '%{Connect-Info}', (('%{%{Acct-Input-Gigawords}:-0}'::bigint << 32) + '%{%{Acct-Input-Octets}:-0}'::bigint), (('%{%{Acct-Output-Gigawords}:-0}'::bigint << 32) + '%{%{Acct-Output-Octets}:-0}'::bigint), '%{Called-Station-Id}', '%{Calling-Station-Id}', '%{Acct-Terminate-Cause}', '%{Service-Type}', '%{Framed-Protocol}', NULLIF('%{Framed-IP-Address}', '')::inet, 0)"<br>
group_membership_query = "SELECT GroupName FROM radhuntgroup WHERE nasipaddress='%{NAS-IP-Address}'"<br> connect_failure_retry_delay = 60<br> simul_count_query = ""<br> simul_verify_query = ""<br>
postauth_query = "INSERT INTO radpostauth (username, pass, reply, authdate) VALUES ('%{User-Name}', '%{%{User-Password}:-Chap-Password}', '%{reply:Packet-Type}', NOW())"<br> safe-characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /"<br>
}<br>rlm_sql (sql): Driver rlm_sql_postgresql (module rlm_sql_postgresql) loaded and linked<br>rlm_sql (sql): Attempting to connect to radius@127.0.0.1:/radius<br>rlm_sql (sql): starting 0<br>rlm_sql (sql): Attempting to connect rlm_sql_postgresql #0<br>
rlm_sql (sql): Connected new DB handle, #0<br>rlm_sql (sql): starting 1<br>rlm_sql (sql): Attempting to connect rlm_sql_postgresql #1<br>rlm_sql (sql): Connected new DB handle, #1<br>rlm_sql (sql): starting 2<br>rlm_sql (sql): Attempting to connect rlm_sql_postgresql #2<br>
rlm_sql (sql): Connected new DB handle, #2<br>rlm_sql (sql): starting 3<br>rlm_sql (sql): Attempting to connect rlm_sql_postgresql #3<br>rlm_sql (sql): Connected new DB handle, #3<br>rlm_sql (sql): starting 4<br>rlm_sql (sql): Attempting to connect rlm_sql_postgresql #4<br>
rlm_sql (sql): Connected new DB handle, #4<br>rlm_sql (sql): Processing generate_sql_clients<br>rlm_sql (sql) in generate_sql_clients: query is SELECT id, nasname, shortname, type, secret, server FROM nas<br>rlm_sql (sql): Reserving sql socket id: 4<br>
rlm_sql_postgresql: query: SELECT id, nasname, shortname, type, secret, server FROM nas<br>rlm_sql_postgresql: Status: PGRES_TUPLES_OK<br>rlm_sql_postgresql: query affected rows = 0 , fields = 6<br>rlm_sql (sql): Released sql socket id: 4<br>
Module: Checking preacct {...} for more modules to load<br> Module: Linked to module rlm_acct_unique<br> Module: Instantiating module "acct_unique" from file /etc/raddb/modules/acct_unique<br> acct_unique {<br>
key = "User-Name, Acct-Session-Id, NAS-IP-Address, Client-IP-Address, NAS-Port"<br> }<br> Module: Linked to module rlm_files<br> Module: Instantiating module "files" from file /etc/raddb/modules/files<br>
files {<br> usersfile = "/etc/raddb/users"<br> acctusersfile = "/etc/raddb/acct_users"<br> preproxy_usersfile = "/etc/raddb/preproxy_users"<br> compat = "no"<br> }<br>
Module: Checking accounting {...} for more modules to load<br> Module: Instantiating module "detail" from file /etc/raddb/modules/detail<br> detail {<br> detailfile = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d"<br>
header = "%t"<br> detailperm = 384<br> dirperm = 493<br> locking = no<br> log_packet_header = no<br> }<br> Module: Linked to module rlm_unix<br> Module: Instantiating module "unix" from file /etc/raddb/modules/unix<br>
unix {<br> radwtmp = "/var/log/radius/radwtmp"<br> }<br> Module: Linked to module rlm_radutmp<br> Module: Instantiating module "radutmp" from file /etc/raddb/modules/radutmp<br> radutmp {<br> filename = "/var/log/radius/radutmp"<br>
username = "%{User-Name}"<br> case_sensitive = yes<br> check_with_nas = yes<br> perm = 384<br> callerid = yes<br> }<br> Module: Linked to module rlm_attr_filter<br> Module: Instantiating module "attr_filter.accounting_response" from file /etc/raddb/modules/attr_filter<br>
attr_filter attr_filter.accounting_response {<br> attrsfile = "/etc/raddb/attrs.accounting_response"<br> key = "%{User-Name}"<br> relaxed = no<br> }<br> Module: Checking session {...} for more modules to load<br>
Module: Checking pre-proxy {...} for more modules to load<br> Module: Instantiating module "attr_filter.pre-proxy" from file /etc/raddb/modules/attr_filter<br> attr_filter attr_filter.pre-proxy {<br> attrsfile = "/etc/raddb/attrs.pre-proxy"<br>
key = "%{Realm}"<br> relaxed = no<br> }<br> Module: Checking post-proxy {...} for more modules to load<br> Module: Checking post-auth {...} for more modules to load<br> Module: Linked to module rlm_sqlippool<br>
Module: Instantiating module "sqlippool" from file /etc/raddb/sqlippool.conf<br> sqlippool {<br> sql-instance-name = "sql"<br> lease-duration = 18000<br> pool-name = ""<br> allocate-begin = "START TRANSACTION"<br>
allocate-clear = "UPDATE radippool SET nasipaddress = '', pool_key = 0, callingstationid = '', expiry_time = 'now'::timestamp(0) - '1 second'::interval WHERE nasipaddress = '%{NAS-IP-Address}' AND pool_key = '%{NAS-Port}'"<br>
allocate-find = "SELECT framedipaddress FROM radippool WHERE pool_name = '%{control:Pool-Name}' AND expiry_time < 'now'::timestamp(0) ORDER BY (username <> '%{SQL-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 = '%{SQL-User-Name}', expiry_time = 'now'::timestamp(0) + '18000 second'::interval WHERE framedipaddress = '%I'"<br>
allocate-commit = "COMMIT"<br> allocate-rollback = "ROLLBACK"<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'::timestamp(0) + '18000 second'::interval WHERE nasipaddress = '%{NAS-IP-Address}' AND pool_key = '%{NAS-Port}'"<br>
start-commit = "COMMIT"<br> start-rollback = "ROLLBACK"<br> alive-begin = "START TRANSACTION"<br> alive-update = "UPDATE radippool SET expiry_time = 'now'::timestamp(0) + '18000 seconds'::interval WHERE nasipaddress = '%{Nas-IP-Address}' AND pool_key = '%{NAS-Port}' AND framedipaddress = '%{Framed-IP-Address}' AND username = '%{SQL-User-Name}' AND callingstationid = '%{Calling-Station-Id}'"<br>
alive-commit = "COMMIT"<br> alive-rollback = "ROLLBACK"<br> stop-begin = "START TRANSACTION"<br> stop-clear = "UPDATE radippool SET nasipaddress = '', pool_key = 0, callingstationid = '', expiry_time = 'now'::timestamp(0) - '1 second'::interval WHERE nasipaddress = '%{Nas-IP-Address}' AND pool_key = '%{NAS-Port}' AND username = '%{SQL-User-Name}' AND callingstationid = '%{Calling-Station-Id}' AND framedipaddress = '%{Framed-IP-Address}'"<br>
stop-commit = "COMMIT"<br> stop-rollback = "ROLLBACK"<br> on-begin = "START TRANSACTION"<br> on-clear = "UPDATE radippool SET nasipaddress = '', pool_key = 0, callingstationid = '', expiry_time = 'now'::timestamp(0) - '1 second'::interval WHERE nasipaddress = '%{Nas-IP-Address}'"<br>
on-commit = "COMMIT"<br> on-rollback = "ROLLBACK"<br> off-begin = "START TRANSACTION"<br> off-clear = "UPDATE radippool SET nasipaddress = '', pool_key = 0, callingstationid = '', expiry_time = 'now'::timestamp(0) - '1 second'::interval WHERE nasipaddress = '%{Nas-IP-Address}'"<br>
off-commit = "COMMIT"<br> off-rollback = "ROLLBACK"<br> sqlippool_log_exists = "Existing IP: %{reply:Framed-IP-Address} (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} user %{User-Name})"<br>
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})"<br> sqlippool_log_clear = "Released IP %{Framed-IP-Address} (did %{Called-Station-Id} cli %{Calling-Station-Id} user %{User-Name})"<br>
sqlippool_log_failed = "IP Allocation FAILED from %{control:Pool-Name} (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} user %{User-Name})"<br> sqlippool_log_nopool = "No Pool-Name defined (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} user %{User-Name})"<br>
defaultpool = "main_pool"<br> }<br> Module: Instantiating module "attr_filter.access_reject" from file /etc/raddb/modules/attr_filter<br> attr_filter attr_filter.access_reject {<br> attrsfile = "/etc/raddb/attrs.access_reject"<br>
key = "%{User-Name}"<br> relaxed = no<br> }<br> } # modules<br>} # server<br>server inner-tunnel { # from file /etc/raddb/sites-enabled/inner-tunnel<br> modules {<br> Module: Checking authenticate {...} for more modules to load<br>
Module: Checking authorize {...} for more modules to load<br> Module: Instantiating module "ntdomain" from file /etc/raddb/modules/realm<br> realm ntdomain {<br> format = "prefix"<br> delimiter = "\"<br>
ignore_default = no<br> ignore_null = no<br> }<br> Module: Checking session {...} for more modules to load<br> Module: Checking pre-proxy {...} for more modules to load<br> Module: Instantiating module "pre_proxy_log" from file /etc/raddb/modules/detail.log<br>
detail pre_proxy_log {<br> detailfile = "/var/log/radius/radacct/%{Client-IP-Address}/pre-proxy-detail-%Y%m%d"<br> header = "%t"<br> detailperm = 384<br> dirperm = 493<br> locking = no<br>
log_packet_header = no<br> }<br> Module: Checking post-proxy {...} for more modules to load<br> Module: Checking post-auth {...} for more modules to load<br> } # modules<br>} # server<br>server coa { # from file /etc/raddb/sites-enabled/coa<br>
modules {<br> Module: Checking recv-coa {...} for more modules to load<br> Module: Linked to module rlm_always<br> Module: Instantiating module "ok" from file /etc/raddb/modules/always<br> always ok {<br> rcode = "ok"<br>
simulcount = 0<br> mpp = no<br> }<br> Module: Checking send-coa {...} for more modules to load<br> } # modules<br>} # server<br>radiusd: #### Opening IP addresses and Ports ####<br>listen {<br> type = "auth"<br>
ipaddr = *<br> port = 0<br>}<br>listen {<br> type = "acct"<br> ipaddr = *<br> port = 0<br>}<br>listen {<br> type = "control"<br> listen {<br> socket = "/var/run/radiusd/radiusd.sock"<br>
}<br>}<br>listen {<br> type = "coa"<br> server = "coa"<br> ipaddr = *<br> port = 3799<br>}<br> ... adding new socket proxy address * port 50826<br> ... adding new socket proxy address * port 59775<br>
Listening on authentication address * port 1812<br>Listening on accounting address * port 1813<br>Listening on command file /var/run/radiusd/radiusd.sock<br>Listening on coa address * port 3799 as server coa<br>Listening on proxy address * port 1814<br>
Ready to process requests.<br><br><br></div>