2
# Sample ldirectord configuration file to configure various virtual services.
4
# Ldirectord will connect to each real server once per second and request
5
# /index.html. If the data returned by the server does not contain the
6
# string "Test Message" then the test fails and the real server will be
7
# taken out of the available pool. The real server will be added back into
8
# the pool once the test succeeds. If all real servers are removed from the
9
# pool then localhost:80 is added to the pool as a fallback measure.
14
#fallback=127.0.0.1:80
16
#logfile="/var/log/ldirectord.log"
18
#emailalert="admin@x.y.z"
23
# Sample for an http virtual service
24
virtual=192.168.6.240:80
25
real=192.168.6.2:80 gate
26
real=192.168.6.3:80 gate
27
real=192.168.6.6:80 gate
28
fallback=127.0.0.1:80 gate
32
virtualhost=some.domain.com.au
35
#netmask=255.255.255.255
43
# Sample configuration for a fwmark based service For an explination of
44
# fwmark see the ipvsadm(8) man page
46
# real=192.168.6.2 gate
47
# real=192.168.6.3 gate
48
# real=192.168.6.6 gate
49
# fallback=127.0.0.1:80 gate
53
# #netmask=255.255.255.255
57
# request="index.html"
61
# Sample configuration for a service using a range of real servers
62
# and a single real server for a virtual service
63
#virtual=192.168.6.240:80
64
# real=192.168.6.2->192.168.6.7:80 gate
65
# real=192.168.6.32:80 gate
66
# fallback=127.0.0.1:80 gate
70
# #netmask=255.255.255.255
74
# request="index.html"
78
#Sample configuration for an https virtual service.
79
#Fallback setting overides global
80
#virtual=192.168.6.240:443
81
# real=192.168.16.3:443 masq
82
# real=192.168.16.5:443 masq
83
# fallback=127.0.0.1:443
87
# #netmask=255.255.255.255
91
# request="index.html"
95
#Sample configuration for an ftp virtual service.
96
#Fallback setting overides global
97
#virtual=192.168.6.240:21
98
# real=192.168.16.3:21 masq
99
# real=192.168.16.5:21 masq
100
# fallback=127.0.0.1:21
106
# #netmask=255.255.255.255
108
# checktype=negotiate
110
# passwd="ldirectord@localhost"
111
# request="welcome.msg"
114
#Sample configuration for an smtp virtual service.
115
#Fallback setting overides global
116
#virtual=192.168.6.240:25
117
# real=192.168.16.3:25 masq
118
# real=192.168.16.5:25 masq
119
# fallback=127.0.0.1:25
124
# #netmask=255.255.255.255
125
# checktype=negotiate
128
#Sample configuration for a pop virtual service.
129
#Fallback setting overides global
130
#virtual=192.168.6.240:110
131
# real=192.168.16.3:110 masq
132
# real=192.168.16.5:110 masq
133
# fallback=127.0.0.1:110
137
# #netmask=255.255.255.255
139
# checktype=negotiate
144
##Sample configuration for an imap virtual service.
145
#Fallback setting overides global
146
#virtual=192.168.6.240:143
147
# real=127.0.0.1:143 masq
148
# real=192.168.16.3:143 masq
149
# real=192.168.16.5:143 masq
150
# fallback=127.0.0.1:143
154
# #netmask=255.255.255.255
156
# checktype=negotiate
161
#Sample configuration for an ldap virtual service.
162
#Fallback setting overides global
163
#virtual=192.168.84.5:389
164
# real=10.0.1.4:389 masq
165
# real=10.0.1.6:389 masq
166
# fallback=127.0.0.1:389
170
# #netmask=255.255.255.255
172
# checktype=negotiate
174
# request="dc=upmc, dc=fr"
175
# receive="dc=upmc, dc=fr"
179
#Sample configuration for an nntp virtual service.
180
#Fallback setting overides global
181
#virtual=192.168.84.5:119
182
# real=10.0.1.4:119 masq
183
# real=10.0.1.6:119 masq
184
# fallback=127.0.0.1:119
188
# #netmask=255.255.255.255
190
# checktype=negotiate
193
#Sample configuration for a UDP DNS virtual service.
194
#Fallback setting overides global
195
#virtual=192.168.84.5:53
196
# real=10.0.1.4:53 masq
197
# real=10.0.1.6:53 masq
198
# fallback=127.0.0.1:53
202
# #netmask=255.255.255.255
204
# checktype=negotiate
207
# receive="127.0.0.1"
209
#Sample configuration for a MySQL virtual service.
210
#virtual = 192.168.10.74:3306
211
# real=sql01->sql03:3306 gate 10
212
# fallback=127.0.0.1:3306
216
# #netmask=255.255.255.255
218
# checktype=negotiate
220
# passwd="genericpassword"
222
# request="SELECT * FROM link"
224
#Sample configuration for a PostgreSQL virtual service.
225
#virtual = 192.168.10.74:5432
226
# real=sql01->sql03:5432 gate 10
227
# fallback=127.0.0.1:5432
231
# #netmask=255.255.255.255
233
# checktype=negotiate
235
# passwd="genericpassword"
237
# request="SELECT * FROM link"
239
#Sample configuration for a Oracle virtual service.
240
#virtual = 192.168.10.74:1521
241
# real=sql01->sql03:1521 gate 10
242
# fallback=127.0.0.1:1521
246
# #netmask=255.255.255.255
248
# checktype=negotiate
250
# passwd="genericpassword"
252
# request="SELECT * FROM link"
254
#Sample configuration for an unsuported protocol
255
#The real servers will just be brought up without checking for availability
256
#virtual=192.168.6.240:23
257
# real=192.168.16.3:23 masq
258
# real=192.168.16.5:23 masq
259
# fallback=127.0.0.1:23
263
# #netmask=255.255.255.255
267
# A sample virtual services that uses a ping check.
268
# Note that using checktype=connect and protocol=udp
269
# will also effect ping checks
270
#virtual=192.168.6.240:53
271
# real=192.168.6.2:53 gate
272
# real=192.168.6.3:53 gate
273
# real=192.168.6.6:53 gate
274
# fallback=127.0.0.1:53 gate
277
# #netmask=255.255.255.255
282
# A sample virtual services that uses a Radius check on UDP.
283
# Note that using checktype=connect and protocol=udp
284
# will also effect ping checks
285
#virtual=192.168.6.240:1812
286
# real=192.168.6.2::1812 gate
287
# real=192.168.6.3::1812 gate
288
# real=192.168.6.6::1812 gate
289
# fallback=127.0.0.1:1812 gate
292
# #netmask=255.255.255.255
294
# checktype=negotiate
296
# password="readuser"
297
# passwd="genericpassword"
298
# secret="somesecret"
301
# A sample virtual services that uses a SIP check on UDP.
302
# Note that using checktype=connect and protocol=udp
303
# will also effect ping checks
304
#virtual=192.168.6.240:5060
305
# real=192.168.6.2::5060 gate
306
# real=192.168.6.3::5060 gate
307
# real=192.168.6.6::5060 gate
308
# fallback=127.0.0.1:5060 gate
311
# #netmask=255.255.255.255
313
# checktype=negotiate