Advertisement
njunwa1

log

Nov 8th, 2015
410
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.92 KB | None | 0 0
  1. Module: Linked to sub-module rlm_eap_md5
  2. Module: Instantiating eap-md5
  3. Module: Linked to sub-module rlm_eap_leap
  4. Module: Instantiating eap-leap
  5. Module: Linked to sub-module rlm_eap_gtc
  6. Module: Instantiating eap-gtc
  7. gtc {
  8. challenge = "Password: "
  9. auth_type = "PAP"
  10. }
  11. Module: Linked to sub-module rlm_eap_tls
  12. Module: Instantiating eap-tls
  13. tls {
  14. rsa_key_exchange = no
  15. dh_key_exchange = yes
  16. rsa_key_length = 512
  17. dh_key_length = 512
  18. verify_depth = 0
  19. CA_path = "/etc/freeradius/certs"
  20. pem_file_type = yes
  21. private_key_file = "/etc/freeradius/certs/server.key"
  22. certificate_file = "/etc/freeradius/certs/server.pem"
  23. CA_file = "/etc/freeradius/certs/ca.pem"
  24. private_key_password = "whatever"
  25. dh_file = "/etc/freeradius/certs/dh"
  26. random_file = "/dev/urandom"
  27. fragment_size = 1024
  28. include_length = yes
  29. check_crl = no
  30. cipher_list = "DEFAULT"
  31. make_cert_command = "/etc/freeradius/certs/bootstrap"
  32. ecdh_curve = "prime256v1"
  33. cache {
  34. enable = no
  35. lifetime = 24
  36. max_entries = 255
  37. }
  38. verify {
  39. }
  40. ocsp {
  41. enable = no
  42. override_cert_url = yes
  43. url = "http://127.0.0.1/ocsp/"
  44. }
  45. }
  46. Module: Linked to sub-module rlm_eap_ttls
  47. Module: Instantiating eap-ttls
  48. ttls {
  49. default_eap_type = "md5"
  50. copy_request_to_tunnel = no
  51. use_tunneled_reply = no
  52. virtual_server = "inner-tunnel"
  53. include_length = yes
  54. }
  55. Module: Linked to sub-module rlm_eap_peap
  56. Module: Instantiating eap-peap
  57. peap {
  58. default_eap_type = "mschapv2"
  59. copy_request_to_tunnel = no
  60. use_tunneled_reply = no
  61. proxy_tunneled_request_as_eap = yes
  62. virtual_server = "inner-tunnel"
  63. soh = no
  64. }
  65. Module: Linked to sub-module rlm_eap_mschapv2
  66. Module: Instantiating eap-mschapv2
  67. mschapv2 {
  68. with_ntdomain_hack = no
  69. send_error = no
  70. }
  71. Module: Checking authorize {...} for more modules to load
  72. Module: Linked to module rlm_preprocess
  73. Module: Instantiating module "preprocess" from file /etc/freeradius/modules/preprocess
  74. preprocess {
  75. huntgroups = "/etc/freeradius/huntgroups"
  76. hints = "/etc/freeradius/hints"
  77. with_ascend_hack = no
  78. ascend_channels_per_line = 23
  79. with_ntdomain_hack = no
  80. with_specialix_jetstream_hack = no
  81. with_cisco_vsa_hack = no
  82. with_alvarion_vsa_hack = no
  83. }
  84. Module: Linked to module rlm_realm
  85. Module: Instantiating module "suffix" from file /etc/freeradius/modules/realm
  86. realm suffix {
  87. format = "suffix"
  88. delimiter = "@"
  89. ignore_default = no
  90. ignore_null = no
  91. }
  92. Module: Linked to module rlm_files
  93. Module: Instantiating module "files" from file /etc/freeradius/modules/files
  94. files {
  95. usersfile = "/etc/freeradius/users"
  96. acctusersfile = "/etc/freeradius/acct_users"
  97. preproxy_usersfile = "/etc/freeradius/preproxy_users"
  98. compat = "no"
  99. }
  100. Module: Linked to module rlm_sql
  101. Module: Instantiating module "sql" from file /etc/freeradius/sql.conf
  102. sql {
  103. driver = "rlm_sql_mysql"
  104. server = "localhost"
  105. port = "3306"
  106. login = "radius"
  107. password = "radpass"
  108. radius_db = "radius"
  109. read_groups = yes
  110. sqltrace = no
  111. sqltracefile = "/var/log/freeradius/sqltrace.sql"
  112. readclients = yes
  113. deletestalesessions = yes
  114. num_sql_socks = 5
  115. lifetime = 0
  116. max_queries = 0
  117. sql_user_name = "%{User-Name}"
  118. default_user_profile = ""
  119. nas_query = "SELECT id, nasname, shortname, type, secret, server FROM nas"
  120. authorize_check_query = "SELECT id, username, attribute, value, op FROM radcheck WHERE username = '%{SQL-User-Name}' ORDER BY id"
  121. authorize_reply_query = "SELECT id, username, attribute, value, op FROM radreply WHERE username = '%{SQL-User-Name}' ORDER BY id"
  122. authorize_group_check_query = "SELECT id, groupname, attribute, Value, op FROM radgroupcheck WHERE groupname = '%{Sql-Group}' ORDER BY id"
  123. authorize_group_reply_query = "SELECT id, groupname, attribute, value, op FROM radgroupreply WHERE groupname = '%{Sql-Group}' ORDER BY id"
  124. accounting_onoff_query = " UPDATE radacct SET acctstoptime = '%S', acctsessiontime = unix_timestamp('%S') - unix_timestamp(acctstarttime), acctterminatecause = '%{Acct-Terminate-Cause}', acctstopdelay = %{%{Acct-Delay-Time}:-0} WHERE acctstoptime IS NULL AND nasipaddress = '%{NAS-IP-Address}' AND acctstarttime <= '%S'"
  125. accounting_update_query = " UPDATE radacct SET framedipaddress = '%{Framed-IP-Address}', acctsessiontime = '%{Acct-Session-Time}', acctinputoctets = '%{%{Acct-Input-Gigawords}:-0}' << 32 | '%{%{Acct-Input-Octets}:-0}', acctoutputoctets = '%{%{Acct-Output-Gigawords}:-0}' << 32 | '%{%{Acct-Output-Octets}:-0}' WHERE acctsessionid = '%{Acct-Session-Id}' AND username = '%{SQL-User-Name}' AND nasipaddress = '%{NAS-IP-Address}'"
  126. accounting_update_query_alt = " INSERT INTO radacct (acctsessionid, acctuniqueid, username, realm, nasipaddress, nasportid, nasporttype, acctstarttime, acctsessiontime, acctauthentic, connectinfo_start, acctinputoctets, acctoutputoctets, calledstationid, callingstationid, servicetype, framedprotocol, framedipaddress, acctstartdelay, xascendsessionsvrkey) VALUES ('%{Acct-Session-Id}', '%{Acct-Unique-Session-Id}', '%{SQL-User-Name}', '%{Realm}', '%{NAS-IP-Address}', '%{NAS-Port}', '%{NAS-Port-Type}', DATE_SUB('%S', INTERVAL (%{%{Acct-Session-Time}:-0} + %{%{Acct-Delay-Time}:-0}) SECOND), '%{Acct-Session-Time}', '%{Acct-Authentic}', '', '%{%{Acct-Input-Gigawords}:-0}' << 32 | '%{%{Acct-Input-Octets}:-0}', '%{%{Acct-Output-Gigawords}:-0}' << 32 | '%{%{Acct-Output-Octets}:-0}', '%{Called-Station-Id}', '%{Calling-Station-Id}', '%{Service-Type}', '%{Framed-Protocol}', '%{Framed-IP-Address}', '0', '%{X-Ascend-Session-Svr-Key}')"
  127. accounting_start_query = " INSERT INTO radacct (acctsessionid, acctuniqueid, username, realm, nasipaddress, nasportid, nasporttype, acctstarttime, acctstoptime, acctsessiontime, acctauthentic, connectinfo_start, connectinfo_stop, acctinputoctets, acctoutputoctets, calledstationid, callingstationid, acctterminatecause, servicetype, framedprotocol, framedipaddress, acctstartdelay, acctstopdelay, xascendsessionsvrkey) VALUES ('%{Acct-Session-Id}', '%{Acct-Unique-Session-Id}', '%{SQL-User-Name}', '%{Realm}', '%{NAS-IP-Address}', '%{NAS-Port}', '%{NAS-Port-Type}', '%S', NULL, '0', '%{Acct-Authentic}', '%{Connect-Info}', '', '0', '0', '%{Called-Station-Id}', '%{Calling-Station-Id}', '', '%{Service-Type}', '%{Framed-Protocol}', '%{Framed-IP-Address}', '%{%{Acct-Delay-Time}:-0}', '0', '%{X-Ascend-Session-Svr-Key}')"
  128. accounting_start_query_alt = " UPDATE radacct SET acctstarttime = '%S', acctstartdelay = '%{%{Acct-Delay-Time}:-0}', connectinfo_start = '%{Connect-Info}' WHERE acctsessionid = '%{Acct-Session-Id}' AND username = '%{SQL-User-Name}' AND nasipaddress = '%{NAS-IP-Address}'"
  129. accounting_stop_query = " UPDATE radacct SET acctstoptime = '%S', acctsessiontime = '%{Acct-Session-Time}', acctinputoctets = '%{%{Acct-Input-Gigawords}:-0}' << 32 | '%{%{Acct-Input-Octets}:-0}', acctoutputoctets = '%{%{Acct-Output-Gigawords}:-0}' << 32 | '%{%{Acct-Output-Octets}:-0}', acctterminatecause = '%{Acct-Terminate-Cause}', acctstopdelay = '%{%{Acct-Delay-Time}:-0}', connectinfo_stop = '%{Connect-Info}' WHERE acctsessionid = '%{Acct-Session-Id}' AND username = '%{SQL-User-Name}' AND nasipaddress = '%{NAS-IP-Address}'"
  130. accounting_stop_query_alt = " INSERT INTO radacct (acctsessionid, acctuniqueid, username, realm, nasipaddress, nasportid, nasporttype, acctstarttime, acctstoptime, acctsessiontime, acctauthentic, connectinfo_start, connectinfo_stop, acctinputoctets, acctoutputoctets, calledstationid, callingstationid, acctterminatecause, servicetype, framedprotocol, framedipaddress, acctstartdelay, acctstopdelay) VALUES ('%{Acct-Session-Id}', '%{Acct-Unique-Session-Id}', '%{SQL-User-Name}', '%{Realm}', '%{NAS-IP-Address}', '%{NAS-Port}', '%{NAS-Port-Type}', DATE_SUB('%S', INTERVAL (%{%{Acct-Session-Time}:-0} + %{%{Acct-Delay-Time}:-0}) SECOND), '%S', '%{Acct-Session-Time}', '%{Acct-Authentic}', '', '%{Connect-Info}', '%{%{Acct-Input-Gigawords}:-0}' << 32 | '%{%{Acct-Input-Octets}:-0}', '%{%{Acct-Output-Gigawords}:-0}' << 32 | '%{%{Acct-Output-Octets}:-0}', '%{Called-Station-Id}', '%{Calling-Station-Id}', '%{Acct-Terminate-Cause}', '%{Service-Type}', '%{Framed-Protocol}', '%{Framed-IP-Address}', '0', '%{%{Acct-Delay-Time}:-0}')"
  131. group_membership_query = "SELECT groupname FROM radusergroup WHERE username = '%{SQL-User-Name}' ORDER BY priority"
  132. connect_failure_retry_delay = 60
  133. simul_count_query = ""
  134. simul_verify_query = "SELECT radacctid, acctsessionid, username, nasipaddress, nasportid, framedipaddress, callingstationid, framedprotocol FROM radacct WHERE username = '%{SQL-User-Name}' AND acctstoptime IS NULL"
  135. postauth_query = "INSERT INTO radpostauth (username, pass, reply, authdate) VALUES ( '%{User-Name}', '%{%{User-Password}:-%{Chap-Password}}', '%{reply:Packet-Type}', '%S')"
  136. safe-characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /"
  137. }
  138. rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked
  139. rlm_sql (sql): Attempting to connect to radius@localhost:3306/radius
  140. rlm_sql (sql): starting 0
  141. rlm_sql (sql): Attempting to connect rlm_sql_mysql #0
  142. rlm_sql_mysql: Starting connect to MySQL server for #0
  143. rlm_sql (sql): Connected new DB handle, #0
  144. rlm_sql (sql): starting 1
  145. rlm_sql (sql): Attempting to connect rlm_sql_mysql #1
  146. rlm_sql_mysql: Starting connect to MySQL server for #1
  147. rlm_sql (sql): Connected new DB handle, #1
  148. rlm_sql (sql): starting 2
  149. rlm_sql (sql): Attempting to connect rlm_sql_mysql #2
  150. rlm_sql_mysql: Starting connect to MySQL server for #2
  151. rlm_sql (sql): Connected new DB handle, #2
  152. rlm_sql (sql): starting 3
  153. rlm_sql (sql): Attempting to connect rlm_sql_mysql #3
  154. rlm_sql_mysql: Starting connect to MySQL server for #3
  155. rlm_sql (sql): Connected new DB handle, #3
  156. rlm_sql (sql): starting 4
  157. rlm_sql (sql): Attempting to connect rlm_sql_mysql #4
  158. rlm_sql_mysql: Starting connect to MySQL server for #4
  159. rlm_sql (sql): Connected new DB handle, #4
  160. rlm_sql (sql): Processing generate_sql_clients
  161. rlm_sql (sql) in generate_sql_clients: query is SELECT id, nasname, shortname, type, secret, server FROM nas
  162. rlm_sql (sql): Reserving sql socket id: 4
  163. rlm_sql (sql): Released sql socket id: 4
  164. Module: Checking preacct {...} for more modules to load
  165. Module: Linked to module rlm_acct_unique
  166. Module: Instantiating module "acct_unique" from file /etc/freeradius/modules/acct_unique
  167. acct_unique {
  168. key = "User-Name, Acct-Session-Id, NAS-IP-Address, Client-IP-Address, NAS-Port"
  169. }
  170. Module: Checking accounting {...} for more modules to load
  171. Module: Linked to module rlm_detail
  172. Module: Instantiating module "detail" from file /etc/freeradius/modules/detail
  173. detail {
  174. detailfile = "/var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d"
  175. header = "%t"
  176. detailperm = 384
  177. dirperm = 493
  178. locking = no
  179. log_packet_header = no
  180. }
  181. Module: Linked to module rlm_radutmp
  182. Module: Instantiating module "radutmp" from file /etc/freeradius/modules/radutmp
  183. radutmp {
  184. filename = "/var/log/freeradius/radutmp"
  185. username = "%{User-Name}"
  186. case_sensitive = yes
  187. check_with_nas = yes
  188. perm = 384
  189. callerid = yes
  190. }
  191. Module: Linked to module rlm_attr_filter
  192. Module: Instantiating module "attr_filter.accounting_response" from file /etc/freeradius/modules/attr_filter
  193. attr_filter attr_filter.accounting_response {
  194. attrsfile = "/etc/freeradius/attrs.accounting_response"
  195. key = "%{User-Name}"
  196. relaxed = no
  197. }
  198. Module: Checking session {...} for more modules to load
  199. Module: Checking post-proxy {...} for more modules to load
  200. Module: Checking post-auth {...} for more modules to load
  201. Module: Instantiating module "attr_filter.access_reject" from file /etc/freeradius/modules/attr_filter
  202. attr_filter attr_filter.access_reject {
  203. attrsfile = "/etc/freeradius/attrs.access_reject"
  204. key = "%{User-Name}"
  205. relaxed = no
  206. }
  207. } # modules
  208. } # server
  209. server inner-tunnel { # from file /etc/freeradius/sites-enabled/inner-tunnel
  210. modules {
  211. Module: Checking authenticate {...} for more modules to load
  212. Module: Checking authorize {...} for more modules to load
  213. Module: Checking session {...} for more modules to load
  214. Module: Checking post-proxy {...} for more modules to load
  215. Module: Checking post-auth {...} for more modules to load
  216. } # modules
  217. } # server
  218. radiusd: #### Opening IP addresses and Ports ####
  219. listen {
  220. type = "auth"
  221. ipaddr = *
  222. port = 0
  223. }
  224. listen {
  225. type = "acct"
  226. ipaddr = *
  227. port = 0
  228. }
  229. listen {
  230. type = "auth"
  231. ipaddr = 127.0.0.1
  232. port = 18120
  233. }
  234. ... adding new socket proxy address * port 41568
  235. Listening on authentication address * port 1812
  236. Listening on accounting address * port 1813
  237. Listening on authentication address 127.0.0.1 port 18120 as server inner-tunnel
  238. Listening on proxy address * port 1814
  239. Ready to process requests.
  240. rad_recv: Access-Request packet from host 127.0.0.1 port 34617, id=255, length=47
  241. User-Name = "njunwa1"
  242. User-Password = "0402ok"
  243. # Executing section authorize from file /etc/freeradius/sites-enabled/default
  244. +- entering group authorize {...}
  245. ++[preprocess] returns ok
  246. ++[chap] returns noop
  247. ++[mschap] returns noop
  248. ++[digest] returns noop
  249. [suffix] No '@' in User-Name = "njunwa1", looking up realm NULL
  250. [suffix] No such realm "NULL"
  251. ++[suffix] returns noop
  252. [eap] No EAP-Message, not doing EAP
  253. ++[eap] returns noop
  254. ++[files] returns noop
  255. [sql] expand: %{User-Name} -> njunwa1
  256. [sql] sql_set_user escaped user --> 'njunwa1'
  257. rlm_sql (sql): Reserving sql socket id: 3
  258. [sql] expand: SELECT id, username, attribute, value, op FROM radcheck WHERE username = '%{SQL-User-Name}' ORDER BY id -> SELECT id, username, attribute, value, op FROM radcheck WHERE username = 'njunwa1' ORDER BY id
  259. [sql] User found in radcheck table
  260. [sql] expand: SELECT id, username, attribute, value, op FROM radreply WHERE username = '%{SQL-User-Name}' ORDER BY id -> SELECT id, username, attribute, value, op FROM radreply WHERE username = 'njunwa1' ORDER BY id
  261. [sql] expand: SELECT groupname FROM radusergroup WHERE username = '%{SQL-User-Name}' ORDER BY priority -> SELECT groupname FROM radusergroup WHERE username = 'njunwa1' ORDER BY priority
  262. rlm_sql (sql): Released sql socket id: 3
  263. ++[sql] returns ok
  264. [expiration] Checking Expiration time: '9 November 2015'
  265. ++[expiration] returns ok
  266. ++[logintime] returns noop
  267. ++[pap] returns updated
  268. Found Auth-Type = PAP
  269. # Executing group from file /etc/freeradius/sites-enabled/default
  270. +- entering group PAP {...}
  271. [pap] login attempt with password "0402ok"
  272. [pap] Using clear text password "0402ok"
  273. [pap] User authenticated successfully
  274. ++[pap] returns ok
  275. # Executing section post-auth from file /etc/freeradius/sites-enabled/default
  276. +- entering group post-auth {...}
  277. ++[exec] returns noop
  278. Sending Access-Accept of id 255 to 127.0.0.1 port 34617
  279. Acct-Interim-Interval := 60
  280. Session-Timeout = 3772
  281. Finished request 0.
  282. Going to the next request
  283. Waking up in 4.9 seconds.
  284. Cleaning up request 0 ID 255 with timestamp +195
  285. Ready to process requests.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement