Subversion Repositories ALCASAR

Rev

Rev 2615 | Rev 2701 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2615 Rev 2618
1
server default {
1
server default {
2
listen {
2
listen {
3
	type = auth
3
	type = auth
4
	ipaddr = *
4
	ipaddr = *
5
	port = 0
5
	port = 0
6
	limit {
6
	limit {
7
		max_connections = 16
7
		max_connections = 16
8
		lifetime = 0
8
		lifetime = 0
9
		idle_timeout = 30
9
		idle_timeout = 30
10
	}
10
	}
11
}
11
}
12
 
12
 
13
listen {
13
listen {
14
	type = acct
14
	type = acct
15
	ipaddr = *
15
	ipaddr = *
16
	port = 0
16
	port = 0
17
	limit {
17
	limit {
18
		max_pps = 0
18
		max_pps = 0
19
	}
19
	}
20
}
20
}
21
 
21
 
22
authorize {
22
authorize {
23
	sql {
23
	sql {
24
		notfound = 1
24
		notfound = 1
25
	}
25
	}
26
	if (notfound) {
26
	if (notfound) {
27
		update reply {
27
		update reply {
28
			Reply-Message := "Username not found"
28
			Reply-Message := "Username not found"
29
		}
29
		}
30
		reject
30
		reject
31
	}
31
	}
32
 
32
 
33
	expire_on_login { reject = 1 }
33
	expire_on_login { reject = 1 }
34
	if (reject) {
34
	if (reject) {
35
		update reply {
35
		update reply {
36
			Reply-Message := "Your usage time has been reached"
36
			Reply-Message := "Your usage time has been reached"
37
		}
37
		}
38
		reject
38
		reject
39
	}
39
	}
40
	noresetcounter { reject = 1 }
40
	noresetcounter { reject = 1 }
41
	if (reject) {
41
	if (reject) {
42
		update reply {
42
		update reply {
43
			Reply-Message := "Your maximum usage time has been reached"
43
			Reply-Message := "Your maximum usage time has been reached"
44
		}
44
		}
45
		reject
45
		reject
46
	}
46
	}
47
	monthlycounter { reject = 1 }
47
	monthlycounter { reject = 1 }
48
	if (reject) {
48
	if (reject) {
49
		update reply {
49
		update reply {
50
			Reply-Message := "Your maximum monthly usage time has been reached"
50
			Reply-Message := "Your maximum monthly usage time has been reached"
51
		}
51
		}
52
		reject
52
		reject
53
	}
53
	}
54
	dailycounter { reject = 1 }
54
	dailycounter { reject = 1 }
55
	if (reject) {
55
	if (reject) {
56
		update reply {
56
		update reply {
57
			Reply-Message := "Your maximum daily usage time has been reached"
57
			Reply-Message := "Your maximum daily usage time has been reached"
58
		}
58
		}
59
		reject
59
		reject
60
	}
60
	}
61
 
61
 
-
 
62
	counterCoovaChilliMaxAllTotalOctets { reject = 1 }
-
 
63
	if (reject) {
-
 
64
		update reply {
-
 
65
			Reply-Message := "Your maximum usage volume has been reached"
-
 
66
		}
-
 
67
		reject
-
 
68
	}
62
	counterCoovaChilliMaxTotalOctetsMonthly { reject = 1 }
69
	counterCoovaChilliMaxTotalOctetsMonthly { reject = 1 }
63
	if (reject) {
70
	if (reject) {
64
		update reply {
71
		update reply {
65
			Reply-Message := "Your maximum monthly usage volume has been reached"
72
			Reply-Message := "Your maximum monthly usage volume has been reached"
66
		}
73
		}
67
		reject
74
		reject
68
	}
75
	}
69
	counterCoovaChilliMaxTotalOctetsDaily { reject = 1 }
76
	counterCoovaChilliMaxTotalOctetsDaily { reject = 1 }
70
	if (reject) {
77
	if (reject) {
71
		update reply {
78
		update reply {
72
			Reply-Message := "Your maximum daily usage volume has been reached"
79
			Reply-Message := "Your maximum daily usage volume has been reached"
73
		}
80
		}
74
		reject
81
		reject
75
	}
82
	}
76
 
83
 
77
	expiration { userlock = 1 }
84
	expiration { userlock = 1 }
78
	if (userlock) {
85
	if (userlock) {
79
		update reply {
86
		update reply {
80
			Reply-Message := "Your expiration date has been reached"
87
			Reply-Message := "Your expiration date has been reached"
81
		}
88
		}
82
		userlock
89
		userlock
83
	}
90
	}
84
 
91
 
85
	logintime { userlock = 1 }
92
	logintime { userlock = 1 }
86
	if (userlock) {
93
	if (userlock) {
87
		update reply {
94
		update reply {
88
			Reply-Message := "Your are out your allowed time period"
95
			Reply-Message := "Your are out your allowed time period"
89
		}
96
		}
90
		userlock
97
		userlock
91
	}
98
	}
92
 
99
 
93
	pap
100
	pap
94
 
101
 
95
	ldap {
102
	ldap {
96
		fail = 1
103
		fail = 1
97
	}
104
	}
98
	if ((ok || updated) && User-Password) {
105
	if ((ok || updated) && User-Password) {
99
		update control {
106
		update control {
100
			Auth-Type := ldap
107
			Auth-Type := ldap
101
		}
108
		}
102
	}
109
	}
103
}
110
}
104
 
111
 
105
authenticate {
112
authenticate {
106
	Auth-Type PAP {
113
	Auth-Type PAP {
107
		pap
114
		pap
108
	}
115
	}
109
	Auth-Type LDAP { 
116
	Auth-Type LDAP { 
110
		ldap 
117
		ldap 
111
    }
118
    }
112
}
119
}
113
 
120
 
114
accounting {
121
accounting {
115
	sql
122
	sql
116
}
123
}
117
 
124
 
118
session {
125
session {
119
	sql
126
	sql
120
}
127
}
121
 
128
 
122
post-auth {
129
post-auth {
123
	Post-Auth-Type REJECT {
130
	Post-Auth-Type REJECT {
124
		update reply {
131
		update reply {
125
			Reply-Message = "Login failed"
132
			Reply-Message = "Login failed"
126
		}
133
		}
127
		attr_filter.access_reject
134
		attr_filter.access_reject
128
	}
135
	}
129
}
136
}
130
}
137
}
131
 
138