Subversion Repositories ALCASAR

Rev

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

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