Subversion Repositories ALCASAR

Rev

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

Rev 2591 Rev 2615
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
		reject = 2
-
 
26
	}
25
	}
27
	if(notfound){
26
	if (notfound) {
28
		update reply {
27
		update reply {
29
			Reply-Message := "Username not found"
28
			Reply-Message := "Username not found"
30
		}
29
		}
-
 
30
		reject
31
	}
31
	}
-
 
32
 
32
	expire_on_login
33
	expire_on_login { reject = 1 }
-
 
34
	if (reject) {
-
 
35
		update reply {
-
 
36
			Reply-Message := "Your usage time has been reached"
-
 
37
		}
-
 
38
		reject
-
 
39
	}
33
	noresetcounter
40
	noresetcounter { reject = 1 }
34
	dailycounter
41
	if (reject) {
-
 
42
		update reply {
-
 
43
			Reply-Message := "Your maximum usage time has been reached"
-
 
44
		}
-
 
45
		reject
-
 
46
	}
35
	monthlycounter
47
	monthlycounter { reject = 1 }
-
 
48
	if (reject) {
-
 
49
		update reply {
-
 
50
			Reply-Message := "Your maximum monthly usage time has been reached"
-
 
51
		}
-
 
52
		reject
-
 
53
	}
-
 
54
	dailycounter { reject = 1 }
36
	expiration
55
	if (reject) {
-
 
56
		update reply {
-
 
57
			Reply-Message := "Your maximum daily usage time has been reached"
-
 
58
		}
-
 
59
		reject
-
 
60
	}
-
 
61
 
37
	counterCoovaChilliMaxTotalOctetsDaily
62
	counterCoovaChilliMaxTotalOctetsMonthly { reject = 1 }
-
 
63
	if (reject) {
-
 
64
		update reply {
-
 
65
			Reply-Message := "Your maximum monthly usage volume has been reached"
-
 
66
		}
-
 
67
		reject
-
 
68
	}
38
	counterCoovaChilliMaxTotalOctetsMonthly
69
	counterCoovaChilliMaxTotalOctetsDaily { reject = 1 }
-
 
70
	if (reject) {
-
 
71
		update reply {
-
 
72
			Reply-Message := "Your maximum daily usage volume has been reached"
-
 
73
		}
-
 
74
		reject
-
 
75
	}
-
 
76
 
-
 
77
	expiration { userlock = 1 }
-
 
78
	if (userlock) {
-
 
79
		update reply {
-
 
80
			Reply-Message := "Your expiration date has been reached"
-
 
81
		}
-
 
82
		userlock
-
 
83
	}
-
 
84
 
-
 
85
	logintime { userlock = 1 }
-
 
86
	if (userlock) {
-
 
87
		update reply {
-
 
88
			Reply-Message := "Your are out your allowed time period"
-
 
89
		}
39
	logintime
90
		userlock
-
 
91
	}
-
 
92
 
40
	pap
93
	pap
41
}
94
}
42
 
95
 
43
authenticate {
96
authenticate {
44
	Auth-Type PAP {
97
	Auth-Type PAP {
45
		pap
98
		pap
46
	}
99
	}
47
}
100
}
48
 
101
 
49
accounting {
102
accounting {
50
	sql
103
	sql
51
}
104
}
52
 
105
 
53
session {
106
session {
54
	sql
107
	sql
55
}
108
}
56
 
109
 
57
post-auth {
110
post-auth {
58
	Post-Auth-Type REJECT {
111
	Post-Auth-Type REJECT {
-
 
112
		update reply {
-
 
113
			Reply-Message = "Login failed"
-
 
114
		}
59
		attr_filter.access_reject
115
		attr_filter.access_reject
60
	}
116
	}
61
}
117
}
62
}
118
}
63
 
119