Advertisement
imKobz

Untitled

Feb 14th, 2020
2,612
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. server inner-tunnel {
  2.  
  3. listen {
  4. ipaddr = 127.0.0.1
  5. port = 18120
  6. type = auth
  7. }
  8.  
  9. authorize {
  10. filter_username
  11. chap
  12. mschap
  13. suffix
  14. update control {
  15. &Proxy-To-Realm := LOCAL
  16. }
  17.  
  18. eap {
  19. ok = return
  20. }
  21.  
  22. sql
  23. expiration
  24. logintime
  25. pap
  26. }
  27.  
  28. authenticate {
  29.  
  30. Auth-Type PAP {
  31. pap
  32. }
  33.  
  34. Auth-Type CHAP {
  35. chap
  36. }
  37.  
  38. Auth-Type MS-CHAP {
  39. mschap
  40. }
  41. mschap
  42. eap
  43. }
  44. session {
  45. radutmp
  46. sql
  47. }
  48.  
  49. post-auth {
  50. sql
  51. if (0) {
  52. update reply {
  53. User-Name !* ANY
  54. Message-Authenticator !* ANY
  55. EAP-Message !* ANY
  56. Proxy-State !* ANY
  57. MS-MPPE-Encryption-Types !* ANY
  58. MS-MPPE-Encryption-Policy !* ANY
  59. MS-MPPE-Send-Key !* ANY
  60. MS-MPPE-Recv-Key !* ANY
  61. }
  62. update {
  63. &outer.session-state: += &reply:
  64. }
  65. }
  66.  
  67. Post-Auth-Type REJECT {
  68. sql
  69. attr_filter.access_reject
  70. update outer.session-state {
  71. &Module-Failure-Message := &request:Module-Failure-Message
  72. }
  73. }
  74. }
  75.  
  76. pre-proxy {
  77. }
  78.  
  79. post-proxy {
  80. eap
  81. }
  82.  
  83. } # inner-tunnel server block
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement