Subversion Repositories ALCASAR

Rev

Rev 2701 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log

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