blob: 5fd67fabeac2a1ee2be73c7e7a41b781de595e48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
|
#
# Sample ldirectord configuration file to configure various virtual services.
#
# Ldirectord will connect to each real server once per second and request
# /index.html. If the data returned by the server does not contain the
# string "Test Message" then the test fails and the real server will be
# taken out of the available pool. The real server will be added back into
# the pool once the test succeeds. If all real servers are removed from the
# pool then localhost:80 is added to the pool as a fallback measure.
# Global Directives
checktimeout=3
checkinterval=1
#fallback=127.0.0.1:80
#fallback6=[::1]:80
autoreload=yes
#logfile="/var/log/ldirectord.log"
#logfile="local0"
#emailalert="admin@x.y.z"
#emailalertfreq=3600
#emailalertstatus=all
quiescent=no
# Sample for an http virtual service
virtual=192.168.6.240:80
servicename=Web Site
comment=Test load balanced web site
real=192.168.6.2:80 gate
real=192.168.6.3:80 gate
real=192.168.6.6:80 gate
fallback=127.0.0.1:80 gate
service=http
scheduler=rr
#persistent=600
#netmask=255.255.255.255
protocol=tcp
checktype=negotiate
checkport=80
request="index.html"
receive="Test Page"
virtualhost=www.x.y.z
# Sample configuration for a fwmark based service For an explanation of
# fwmark see the ipvsadm(8) man page
#virtual=1
# real=192.168.6.2 gate
# real=192.168.6.3 gate
# real=192.168.6.6 gate
# fallback=127.0.0.1:80 gate
# service=http
# scheduler=rr
# #persistent=600
# #netmask=255.255.255.255
# protocol=fwm
# checktype=negotiate
# checkport=80
# request="index.html"
# receive="Test Page"
# virtualhost=x.y.z
# Sample configuration for a service using a range of real servers
# and a single real server for a virtual service
#virtual=192.168.6.240:80
# real=192.168.6.2->192.168.6.7:80 gate
# real=192.168.6.32:80 gate
# fallback=127.0.0.1:80 gate
# service=http
# scheduler=rr
# #persistent=600
# #netmask=255.255.255.255
# protocol=tcp
# checktype=negotiate
# checkport=80
# request="index.html"
# receive="Test Page"
# virtualhost=x.y.z
#Sample configuration for an https virtual service.
#Fallback setting overrides global
#virtual=192.168.6.240:443
# real=192.168.16.3:443 masq
# real=192.168.16.5:443 masq
# fallback=127.0.0.1:443
# service=https
# scheduler=rr
# #persistent=600
# #netmask=255.255.255.255
# protocol=tcp
# checktype=negotiate
# checkport=443
# request="index.html"
# receive="Test Page"
# virtualhost=x.y.z
#Sample configuration for an ftp virtual service.
#Fallback setting overrides global
#virtual=192.168.6.240:21
# real=192.168.16.3:21 masq
# real=192.168.16.5:21 masq
# fallback=127.0.0.1:21
# service=ftp
# checkport=21
# scheduler=wlc
# scheduler=rr
# #persistent=600
# #netmask=255.255.255.255
# protocol=tcp
# checktype=negotiate
# login="anonymous"
# passwd="ldirectord@localhost"
# request="welcome.msg"
# receive="test"
#Sample configuration for an smtp virtual service.
#Fallback setting overrides global
#virtual=192.168.6.240:25
# real=192.168.16.3:25 masq
# real=192.168.16.5:25 masq
# fallback=127.0.0.1:25
# service=smtp
# scheduler=wlc
# protocol=tcp
# persistent=600
# #netmask=255.255.255.255
# checktype=negotiate
# checkport=25
#Sample configuration for an submission virtual service.
#Fallback setting overrides global
#virtual=192.168.6.240:587
# real=192.168.16.3:587 masq
# real=192.168.16.5:587 masq
# fallback=127.0.0.1:587
# service=submission
# scheduler=wlc
# protocol=tcp
# persistent=600
# #netmask=255.255.255.255
# checktype=negotiate
# checkport=587
#Sample configuration for a pop virtual service.
#Fallback setting overrides global
#virtual=192.168.6.240:110
# real=192.168.16.3:110 masq
# real=192.168.16.5:110 masq
# fallback=127.0.0.1:110
# service=pop
# scheduler=wlc
# persistent=600
# #netmask=255.255.255.255
# protocol=tcp
# checktype=negotiate
# checkport=110
# #login="test"
# #passwd="test"
##Sample configuration for an imap virtual service.
#Fallback setting overrides global
#virtual=192.168.6.240:143
# real=127.0.0.1:143 masq
# real=192.168.16.3:143 masq
# real=192.168.16.5:143 masq
# fallback=127.0.0.1:143
# service=imap
# scheduler=wlc
# #persistent=600
# #netmask=255.255.255.255
# protocol=tcp
# checktype=negotiate
# checkport=143
# #login="test"
# #passwd="test"
#Sample configuration for an ldap virtual service.
#Fallback setting overrides global
#virtual=192.168.84.5:389
# real=10.0.1.4:389 masq
# real=10.0.1.6:389 masq
# fallback=127.0.0.1:389
# service=ldap
# scheduler=wlc
# #persistent=600
# #netmask=255.255.255.255
# protocol=tcp
# checktype=negotiate
# checkport=389
# request="dc=upmc, dc=fr"
# receive="dc=upmc, dc=fr"
# #login="test"
# #passwd="test"
#Sample configuration for an nntp virtual service.
#Fallback setting overrides global
#virtual=192.168.84.5:119
# real=10.0.1.4:119 masq
# real=10.0.1.6:119 masq
# fallback=127.0.0.1:119
# service=nntp
# scheduler=wlc
# #persistent=600
# #netmask=255.255.255.255
# protocol=tcp
# checktype=negotiate
# checkport=119
#Sample configuration for a UDP DNS virtual service.
#Fallback setting overrides global
#virtual=192.168.84.5:53
# real=10.0.1.4:53 masq
# real=10.0.1.6:53 masq
# fallback=127.0.0.1:53
# service=dns
# scheduler=wlc
# #persistent=600
# #netmask=255.255.255.255
# protocol=udp
# checktype=negotiate
# checkport=53
# request="x.y.z"
# receive="127.0.0.1"
#Sample configuration for a MySQL virtual service.
#virtual = 192.168.10.74:3306
# real=sql01->sql03:3306 gate 10
# fallback=127.0.0.1:3306
# service=mysql
# scheduler=wrr
# #persistent=600
# #netmask=255.255.255.255
# protocol=tcp
# checktype=negotiate
# login="readuser"
# passwd="genericpassword"
# database="portal"
# request="SELECT * FROM link"
#Sample configuration for a PostgreSQL virtual service.
#virtual = 192.168.10.74:5432
# real=sql01->sql03:5432 gate 10
# fallback=127.0.0.1:5432
# service=pgsql
# scheduler=wrr
# #persistent=600
# #netmask=255.255.255.255
# protocol=tcp
# checktype=negotiate
# login="readuser"
# passwd="genericpassword"
# database="portal"
# request="SELECT * FROM link"
#Sample configuration for a Oracle virtual service.
#virtual = 192.168.10.74:1521
# real=sql01->sql03:1521 gate 10
# fallback=127.0.0.1:1521
# service=oracle
# scheduler=wrr
# #persistent=600
# #netmask=255.255.255.255
# protocol=tcp
# checktype=negotiate
# login="readuser"
# passwd="genericpassword"
# database="portal"
# request="SELECT * FROM link"
#Sample configuration for an unsuported protocol
#The real servers will just be brought up without checking for availability
#virtual=192.168.6.240:23
# real=192.168.16.3:23 masq
# real=192.168.16.5:23 masq
# fallback=127.0.0.1:23
# service=none
# scheduler=wlc
# persistent=600
# #netmask=255.255.255.255
# protocol=tcp
# checktype=on
# A sample virtual services that uses a ping check.
# Note that using checktype=connect and protocol=udp
# will also effect ping checks
#virtual=192.168.6.240:53
# real=192.168.6.2:53 gate
# real=192.168.6.3:53 gate
# real=192.168.6.6:53 gate
# fallback=127.0.0.1:53 gate
# scheduler=rr
# #persistent=600
# #netmask=255.255.255.255
# protocol=udp
# checktype=ping
# failurecount=3
# A sample virtual services that uses a Radius check on UDP.
# Note that using checktype=connect and protocol=udp
# will also effect ping checks
#virtual=192.168.6.240:1812
# real=192.168.6.2:1812 gate
# real=192.168.6.3:1812 gate
# real=192.168.6.6:1812 gate
# fallback=127.0.0.1:1812 gate
# scheduler=rr
# #persistent=600
# #netmask=255.255.255.255
# protocol=udp
# checktype=negotiate
# service=radius
# login="readuser"
# passwd="genericpassword"
# secret="somesecret"
# checktimeout=1
# A sample virtual services that uses a SIP check on UDP.
# Note that using checktype=connect and protocol=udp
# will also effect ping checks
#virtual=192.168.6.240:5060
# real=192.168.6.2::5060 gate
# real=192.168.6.3::5060 gate
# real=192.168.6.6::5060 gate
# fallback=127.0.0.1:5060 gate
# scheduler=rr
# #persistent=600
# #netmask=255.255.255.255
# protocol=udp
# checktype=negotiate
# service=sip
# checktimeout=1
#Sample configuration for an nntp virtual service with IPv6.
#Fallback setting overrides global
#virtual6=[2001:db8::5]:119
# real6=[2001:db8:0:1::4]:119 masq
# real6=[2001:db8:0:1::6]:119 masq
# fallback6=[::1]:119
# service=nntp
# scheduler=wlc
# #persistent=600
# #netmask=255.255.255.255
# protocol=tcp
# checktype=negotiate
# checkport=119
|