imKobz

Untitled

Feb 13th, 2020
2,458
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. server default {
  2.  
  3. listen {
  4.  
  5. type = auth
  6. ipaddr = *
  7. port = 0
  8. limit {
  9. max_connections = 0
  10. lifetime = 0
  11. idle_timeout = 30
  12. }
  13. }
  14.  
  15. listen {
  16. ipaddr = *
  17. port = 0
  18. type = acct
  19.  
  20. limit {
  21.  
  22. }
  23. }
  24.  
  25. listen {
  26. type = auth
  27. ipv6addr = :: # any. ::1 == localhost
  28. port = 0
  29. limit {
  30. max_connections = 16
  31. lifetime = 0
  32. idle_timeout = 30
  33. }
  34. }
  35.  
  36. listen {
  37. ipv6addr = ::
  38. port = 0
  39. type = acct
  40.  
  41. limit {
  42.  
  43. }
  44. }
  45.  
  46. authorize {
  47.  
  48. filter_username
  49. preprocess
  50. chap
  51. mschap
  52. digest
  53. eap {
  54. ok = return
  55. }
  56.  
  57. sql
  58. expiration
  59. logintime
  60. pap
  61. }
  62.  
  63. authenticate {
  64. Auth-Type PAP {
  65. pap
  66. }
  67.  
  68. Auth-Type CHAP {
  69. chap
  70. }
  71.  
  72. Auth-Type MS-CHAP {
  73. mschap
  74. }
  75.  
  76. mschap
  77. digest
  78. eap
  79. }
  80.  
  81. preacct {
  82.  
  83. preprocess
  84. acct_unique
  85. suffix
  86. files
  87. }
  88.  
  89. accounting {
  90. detail
  91. unix
  92. sql
  93. exec
  94. attr_filter.accounting_response
  95. }
  96.  
  97. session {
  98. sql
  99. }
  100.  
  101. post-auth {
  102.  
  103. if (session-state:User-Name && reply:User-Name && request:User-Name && (reply:User-Name == request:User-Name)) {
  104. update reply {
  105. &User-Name !* ANY
  106. }
  107. }
  108. update {
  109. &reply: += &session-state:
  110. }
  111.  
  112. sql
  113. exec
  114. remove_reply_message_if_eap
  115. Post-Auth-Type REJECT {
  116. sql
  117. attr_filter.access_reject
  118. eap
  119. remove_reply_message_if_eap
  120. }
  121.  
  122. Post-Auth-Type Challenge {
  123.  
  124. }
  125.  
  126. }
  127.  
  128. pre-proxy {
  129.  
  130. }
  131.  
  132. post-proxy {
  133. eap
  134. }
  135. }
Add Comment
Please, Sign In to add comment