ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/doc/reference.conf
Revision: 8230
Committed: Mon Apr 17 14:17:29 2017 UTC (9 years, 3 months ago) by michael
File size: 23643 byte(s)
Log Message:
- reference.conf: added a ZLINE example for unrealircd

File Contents

# User Rev Content
1 michael 5052 /*
2 michael 5104 * Hybrid Open Proxy Monitor - HOPM sample configuration
3 michael 5142 *
4 michael 7927 * Copyright (c) 2014-2017 ircd-hybrid development team
5 michael 7005 *
6 michael 5142 * $Id$
7 michael 5104 */
8 michael 5052
9 michael 5104 /*
10     * Shell style (#), C++ style (//) and C style comments are supported.
11     *
12 michael 7711 * Files may be included by either:
13     * .include "filename"
14     * .include <filename>
15     *
16 michael 5104 * Times/durations are written as:
17     * 12 hours 30 minutes 1 second
18     *
19     * Valid units of time:
20     * year, month, week, day, hour, minute, second
21     *
22     * Valid units of size:
23     * megabyte/mbyte/mb, kilobyte/kbyte/kb, byte
24     *
25     * Sizes and times may be singular or plural.
26     */
27 michael 5052
28     options {
29     /*
30     * Full path and filename for storing the process ID of the running
31 michael 5056 * HOPM.
32 michael 5052 */
33 michael 6276 pidfile = "var/run/hopm.pid";
34 michael 5052
35     /*
36 michael 7014 * Maximum commands to queue. Set to 0 if you don't want HOPM
37     * to process commands.
38     */
39     command_queue_size = 64;
40    
41     /*
42     * Interval to check command queue for timed out commands.
43     */
44     command_interval = 10 seconds;
45    
46     /*
47     * Timeout of commands.
48     */
49     command_timeout = 180 seconds;
50    
51     /*
52 michael 5080 * How long to store the IP address of hosts which are confirmed
53 michael 5146 * (by previous scans) to be secure. New users from these
54 michael 5052 * IP addresses will not be scanned again until this amount of time
55     * has passed. IT IS STRONGLY RECOMMENDED THAT YOU DO NOT USE THIS
56     * DIRECTIVE, but it is provided due to demand.
57     *
58     * The main reason for not using this feature is that anyone capable
59     * of running a proxy can get abusers onto your network - all they
60     * need do is shut the proxy down, connect themselves, restart the
61     * proxy, and tell their friends to come flood.
62 michael 5056 *
63 michael 5052 * Keep this directive commented out to disable negative caching.
64     */
65 michael 5080 # negcache = 1 hour;
66 michael 5052
67     /*
68 michael 5332 * How long between rebuilds of the negative cache. The negcache
69     * is only rebuilt to free up memory used by entries that are too old.
70     * You probably don't need to tweak this unless you have huge amounts
71     * of people connecting (hundreds per minute). Default is 12 hours.
72     */
73     negcache_rebuild = 12 hours;
74    
75     /*
76 michael 5146 * Amount of file descriptors to allocate to asynchronous DNS. 64
77 michael 5056 * should be plenty for almost anyone.
78 michael 5052 */
79     dns_fdlimit = 64;
80    
81     /*
82 michael 6200 * Amount of time the resolver waits until a response is received
83     * from a name server.
84     */
85     dns_timeout = 5 seconds;
86    
87     /*
88 michael 5052 * Put the full path and filename of a logfile here if you wish to log
89 michael 5146 * every scan done. Normally HOPM only logs successfully detected
90 michael 5056 * proxies in the hopm.log, but you may get abuse reports to your ISP
91 michael 5146 * about portscanning. Being able to show that it was HOPM that did
92     * the scan in question can be useful. Leave commented for no
93 michael 5052 * logging.
94     */
95 michael 6276 # scanlog = "var/log/scan.log";
96 michael 5052 };
97    
98    
99 michael 5104 irc {
100 michael 5052 /*
101 michael 6170 * IP address to bind to for the IRC connection. You only need to
102     * use this if you wish HOPM to use a particular interface
103     * (virtual host, IP alias, ...) when connecting to the IRC server.
104     * There is another "vhost" setting in the scan {} block below for
105     * the actual portscans. Note that this directive expects an IP address,
106     * not a hostname. Please leave this commented out if you do not
107 michael 5052 * understand what it does, as most people don't need it.
108     */
109     # vhost = "0.0.0.0";
110    
111     /*
112 michael 5056 * Nickname for HOPM to use.
113 michael 5052 */
114 michael 5056 nick = "MyHopm";
115 michael 5052
116     /*
117 michael 5056 * Text to appear in the "realname" field of HOPM's /whois output.
118 michael 5052 */
119 michael 5056 realname = "Hybrid Open Proxy Monitor";
120 michael 5052
121     /*
122     * If you don't have an identd running, what username to use.
123     */
124 michael 5056 username = "hopm";
125 michael 5052
126     /*
127 michael 6170 * Hostname (or IP address) of the IRC server which HOPM will monitor
128 michael 5682 * connections on. IPv6 is now supported.
129 michael 5052 */
130 michael 5109 server = "irc.example.org";
131 michael 5052
132     /*
133     * Password used to connect to the IRC server (PASS)
134     */
135     # password = "secret";
136    
137     /*
138 michael 5146 * Port of the above server to connect to. This is what HOPM uses to
139 michael 5052 * get onto IRC itself, it is nothing to do with what ports/protocols
140     * are scanned, nor do you need to list every port your ircd listens
141     * on.
142     */
143     port = 6667;
144    
145     /*
146 michael 5198 * Defines time in which bot will timeout if no data is received
147     */
148     readtimeout = 15 minutes;
149    
150     /*
151 michael 6078 * Interval in how often we try to reconnect to the IRC server
152     */
153     reconnectinterval = 30 seconds;
154    
155     /*
156 michael 5052 * Command to execute to identify to NickServ (if your network uses
157 michael 5146 * it). This is the raw IRC command text, and the below example
158     * corresponds to "/msg nickserv identify password" in a client. If
159 michael 5052 * you don't understand, just edit "password" in the line below to be
160 michael 5146 * your HOPM's nick password. Leave commented out if you don't need
161 michael 5052 * to identify to NickServ.
162     */
163 michael 5056 # nickserv = "NS IDENTIFY password";
164 michael 5052
165     /*
166 michael 5056 * The username and password needed for HOPM to oper up.
167 michael 5052 */
168 michael 5056 oper = "hopm operpass";
169 michael 5104
170 michael 5052 /*
171 michael 5056 * Mode string that HOPM needs to set on itself as soon as it opers
172 michael 5146 * up. This needs to include the mode for seeing connection notices,
173 michael 5056 * otherwise HOPM won't scan anyone (that's usually umode +c).
174 michael 5052 */
175 michael 5056 mode = "+c";
176 michael 5052
177     /*
178 michael 5056 * If this is set then HOPM will use it as an /away message as soon as
179 michael 5052 * it connects.
180     */
181 michael 5069 away = "I'm a bot. Your messages will be ignored.";
182 michael 5052
183     /*
184 michael 5056 * Info about channels you wish HOPM to join in order to accept
185 michael 5146 * commands. HOPM will also print messages in these channels every
186     * time it detects a proxy. Only IRC operators can command HOPM to do
187 michael 5056 * anything, but some of the things HOPM reports to these channels
188 michael 5104 * could be considered sensitive, so it's best not to put HOPM into
189 michael 5052 * public channels.
190     */
191     channel {
192 michael 5056 /*
193 michael 5146 * Channel name. Local ("&") channels are supported if your ircd
194 michael 5056 * supports them.
195     */
196     name = "#hopm";
197 michael 5052
198 michael 5056 /*
199     * If HOPM will need to use a key to enter this channel, this is
200     * where you specify it.
201     */
202     # key = "somekey";
203 michael 5052
204 michael 5056 /*
205     * If you use ChanServ then maybe you want to set the channel
206     * invite-only and have each HOPM do "/msg ChanServ invite" to get
207 michael 5146 * itself in. Leave commented if you don't, or if this makes no
208 michael 5056 * sense to you.
209     */
210     # invite = "CS INVITE #hopm";
211 michael 5052 };
212    
213     /*
214     * You can define a bunch of channels if you want:
215     *
216 michael 6170 * channel { name = "#other"; }; channel { name= "#channel"; }
217 michael 5052 */
218 michael 5056
219 michael 5052 /*
220     * connregex is a POSIX regular expression used to parse connection
221 michael 5682 * notices from the ircd. The complexity of the expression should
222 michael 5052 * be kept to a minimum.
223 michael 5056 *
224 michael 5052 * Items in order MUST be: nick user host IP
225     *
226 michael 6170 * HOPM will not work with ircds which do not send an IP address in the
227 michael 5052 * connection notice.
228     *
229     * This is fairly complicated stuff, and the consequences of getting
230 michael 5146 * it wrong are the HOPM does not scan anyone. Unless you know
231 michael 5052 * absolutely what you are doing, please just uncomment the example
232     * below that best matches the type of ircd you use.
233     */
234 michael 5437
235 michael 6985 /* bahamut / charybdis / ircd-hybrid / ircd-ratbox / ircu / UnrealIRCd 3.2.x (in HCN mode) */
236 michael 8197 connregex = "\\*\\*\\* Notice -- Client connecting: ([^ ]+) \\(([^@]+)@([^\\)]+)\\) \\[([0-9a-f\\.:]+)\\].*";
237 michael 5052
238 michael 6984 /* ircd-hybrid with far connect notices (user mode +F) to scan clients on remote servers */
239 michael 8197 # connregex = "\\*\\*\\* Notice -- Client connecting.*: ([^ ]+) \\(([^@]+)@([^\\)]+)\\) \\[([0-9a-f\\.:]+)\\].*";
240 michael 6984
241 michael 7035 /* UnrealIRCd 4.0.x */
242 michael 8197 # connregex = "\\*\\*\\* Client connecting: ([^ ]+) \\(([^@]+)@([^\\)]+)\\) \\[([0-9a-f\\.:]+)\\].*";
243 michael 6985
244 michael 5439 /* InspIRCd */
245 michael 8197 # connregex = "\\*\\*\\* .*CONNECT: Client connecting.*: ([^ ]+)!([^@]+)@([^\\)]+) \\(([0-9a-f\\.:]+)\\) \\[.*\\]";
246 michael 5437
247 michael 5922 /* ngIRCd */
248 michael 8197 # connregex = "Client connecting: ([^ ]+) \\(([^@]+)@([^\\)]+)\\) \\[([0-9a-f\\.:]+)\\].*";
249 michael 5922
250 michael 5052 /*
251     * "kline" controls the command used when an open proxy is confirmed.
252     * We suggest applying a temporary (no more than a few hours) KLINE on the host.
253     *
254     * <WARNING>
255 michael 5056 * Make sure if you need to change this string you also change the
256     * kline command for every DNSBL you enable below.
257 michael 5052 *
258 michael 5056 * Also note that some servers do not allow you to include ':' characters
259     * inside the KLINE message (e.g. for a http:// address).
260 michael 5052 *
261     * Users rewriting this message into something that isn't even a valid
262     * IRC command is the single most common cause of support requests and
263     * therefore WE WILL NOT SUPPORT YOU UNLESS YOU USE ONE OF THE EXAMPLE
264     * KLINE COMMANDS BELOW.
265     * </WARNING>
266     *
267     * That said, should you wish to customise this text, several
268     * printf-like placeholders are available:
269     *
270     * %n User's nick
271     * %u User's username
272     * %h User's irc hostname
273     * %i User's IP address
274 michael 5482 * %t Protocol type which has triggered a positive scan
275 michael 5052 */
276 michael 8220 kline = "KLINE 180 *@%i :Open proxy found on your host.";
277 michael 5052
278 michael 6178 /* A GLINE example for ircu */
279     # kline = "GLINE +*@%i 1800 :Open proxy found on your host.";
280    
281 michael 8230 /* A ZLINE example for UnrealIRCd */
282     kline = "ZLINE *@%i 3h :Open proxy found on your host.";
283    
284 michael 5056 /*
285     * An AKILL example for services with OperServ. Your HOPM must have permission to
286     * AKILL for this to work!
287     */
288 michael 8220 # kline = "OS AKILL ADD +3h *@%i Open proxy found on your host.";
289 michael 5052
290     /*
291 michael 5056 * Text to send on connection, these can be stacked and will be sent in this order.
292 michael 5876 *
293 michael 5443 * !!! UNREAL USERS PLEASE NOTE !!!
294     * Unreal users will need PROTOCTL HCN to force hybrid connect
295     * notices.
296     *
297     * Yes Unreal users! That means you! That means you need the line
298     * below! See that thing at the start of the line? That's what we
299     * call a comment! Remove it to UNcomment the line.
300 michael 7003 *
301     * Note that this is no longer needed as of UnrealIRCd 4.0.0.
302 michael 5052 */
303 michael 5443 # perform = "PROTOCTL HCN";
304 michael 5405
305     /*
306 michael 5409 * Text to send, via NOTICE, immediately when a new client connects. These can be
307 michael 5405 * stacked and will be sent in this order.
308     */
309     # notice = "You are now being scanned for open proxies. If you have nothing to hide, you have nothing to fear.";
310 michael 5052 };
311    
312    
313     /*
314     * OPM Block defines blacklists and information required to report new proxies
315 michael 5146 * to a dns blacklist. DNS-based blacklists store IP addresses in a DNS zone
316 michael 5052 * file. There are several blacklist that list IP addresses known to be open
317     * proxies or other forms of IRC abuse. By checking against these blacklists,
318 michael 5056 * HOPMs are able to ban known sources of abuse without completely scanning them.
319 michael 5052 */
320 michael 5221 #opm {
321 michael 5052 /*
322 michael 5146 * Blacklist zones to check IPs against. If you would rather not
323 michael 5052 * trust a remotely managed blacklist, you could set up your own, or
324     * leave these commented out in which case every user will be
325     * scanned. The use of at least one open proxy DNSBL is recommended
326 michael 5056 * however.
327     *
328 michael 5074 * Please check the policies of each blacklist you use to check you
329 michael 5056 * are comfortable with using them to block access to your server
330     * (and that you are allowed to use them).
331 michael 5052 */
332    
333 michael 5074
334     /* dnsbl.dronebl.org - http://dronebl.org */
335 michael 5052 # blacklist {
336 michael 5074 /* The DNS name of the blacklist */
337     # name = "dnsbl.dronebl.org";
338 michael 5052
339 michael 5074 /*
340 michael 8098 * Address families that are supported by the blacklist. Default is 'ipv4'.
341     */
342     address_family = ipv4, ipv6;
343    
344     /*
345 michael 5074 * There are only two values that are valid for this
346     * "A record bitmask" and "A record reply"
347     * These options affect how the values specified to reply
348     * below will be interpreted, a bitmask is where the reply
349     * values are 2^n and more than one is added up, a reply is
350 michael 6170 * simply where the last octet of the IP address is that number.
351 michael 5074 * If you are not sure then the values set for dnsbl.dronebl.org
352     * will work without any changes.
353     */
354     # type = "A record reply";
355 michael 5052
356 michael 5074 /*
357     * Kline types not listed in the reply list below.
358     *
359     * For DNSBLs that are not IRC specific and you just wish to kline
360     * certain types this can be enabled/disabled.
361     */
362     # ban_unknown = no;
363 michael 5052
364 michael 5074 /*
365     * The actual values returned by the dnsbl.dronebl.org blacklist as
366     * documented at http://dronebl.org/docs/howtouse
367     */
368     # reply {
369 michael 8130 # 2 = "Sample data used for heuristical analysis";
370 michael 7756 # 3 = "IRC spam drone (litmus/sdbot/fyle)";
371 michael 8113 # 5 = "Bottler (experimental)";
372 michael 7756 # 6 = "Unknown worm or spambot";
373     # 7 = "DDoS drone";
374     # 8 = "Open SOCKS proxy";
375     # 9 = "Open HTTP proxy";
376 michael 5074 # 10 = "ProxyChain";
377 michael 7756 # 11 = "Web Page Proxy";
378 michael 8113 # 12 = "Open DNS Resolver";
379 michael 7756 # 13 = "Automated dictionary attacks";
380     # 14 = "Open WINGATE proxy";
381 michael 5074 # 15 = "Compromised router / gateway";
382 michael 7756 # 16 = "Autorooting worms";
383 michael 5074 # 17 = "Automatically determined botnet IPs (experimental)";
384 michael 7756 # 18 = "DNS/MX type hostname detected on IRC";
385     # 255 = "Uncategorized threat class";
386 michael 5074 # };
387 michael 5052
388 michael 5074 /*
389     * The kline message sent for this specific blacklist, remember to put
390     * the removal method in this.
391     */
392 michael 8220 # kline = "KLINE 180 *@%i :You have a host listed in the DroneBL. For more information, visit http://dronebl.org/lookup_branded?ip=%i&network=Network";
393 michael 5246 # };
394 michael 5052
395 michael 5074
396     /* tor.dnsbl.sectoor.de - http://www.sectoor.de/tor.php */
397     # blacklist {
398     # name = "tor.dnsbl.sectoor.de";
399     # type = "A record reply";
400     # ban_unknown = no;
401    
402     # reply {
403     # 1 = "Tor exit server";
404     # };
405    
406 michael 8220 # kline = "KLINE 180 *@%i :Tor exit server detected. For more information, visit http://www.sectoor.de/tor.php?ip=%i";
407 michael 5052 # };
408    
409 michael 5074 /* rbl.efnetrbl.org - http://rbl.efnetrbl.org/ */
410     # blacklist {
411     # name = "rbl.efnetrbl.org";
412     # type = "A record reply";
413     # ban_unknown = no;
414    
415     # reply {
416     # 1 = "Open proxy";
417     # 2 = "spamtrap666";
418     # 3 = "spamtrap50";
419     # 4 = "TOR";
420     # 5 = "Drones / Flooding";
421     # };
422    
423 michael 8220 # kline = "KLINE 180 *@%i :Blacklisted proxy found. For more information, visit http://rbl.efnetrbl.org/?i=%i";
424 michael 5074 # };
425    
426    
427 michael 5075
428     /* tor.efnetrbl.org - http://rbl.efnetrbl.org/ */
429     # blacklist {
430     # name = "tor.efnetrbl.org";
431     # type = "A record reply";
432     # ban_unknown = no;
433    
434     # reply {
435     # 1 = "TOR";
436     # };
437    
438 michael 8220 # kline = "KLINE 180 *@%i :TOR exit node found. For more information, visit http://rbl.efnetrbl.org/?i=%i";
439 michael 5075 # };
440    
441 michael 5052 /*
442     * You can report the insecure proxies you find to a DNSBL also!
443     * The remaining directives in this section are only needed if you
444 michael 5146 * intend to do this. Reports are sent by email, one email per IP
445     * address. The format does support multiple addresses in one email,
446 michael 5052 * but we don't know of any servers that are detecting enough insecure
447     * proxies for this to be really necessary.
448     */
449    
450     /*
451 michael 5146 * Email address to send reports FROM. If you intend to send reports,
452 michael 5052 * please pick an email address that we can actually send mail to
453     * should we ever need to contact you.
454     */
455     # dnsbl_from = "mybopm@myserver.org";
456    
457     /*
458     * Email address to send reports TO.
459 michael 5056 * For example DroneBL:
460 michael 5052 */
461     # dnsbl_to = "bopm-report@dronebl.org";
462    
463     /*
464 michael 5146 * Full path to your sendmail binary. Even if your system does not
465 michael 5052 * use sendmail, it probably does have a binary called "sendmail"
466 michael 5146 * present in /usr/sbin or /usr/lib. If you don't set this, no
467 michael 5052 * proxies will be reported.
468     */
469     # sendmail = "/usr/sbin/sendmail";
470 michael 5221 #};
471 michael 5052
472    
473     /*
474     * The short explanation:
475     *
476 michael 5146 * This is where you define what ports/protocols to check for. You can have
477 michael 5052 * multiple scanner blocks and then choose which users will get scanned by
478     * which scanners further down.
479     *
480     * The long explanation:
481     *
482 michael 5146 * Scanner defines a virtual scanner. For each user being scanned, a scanner
483 michael 5052 * will use a file descriptor (and subsequent connection) for each protocol.
484     * Once connecting it will negotiate the proxy to connect to
485 michael 6170 * target_ip:target_port (target_ip MUST be an IP address).
486 michael 5052 *
487     * Once connected, any data passed through the proxy will be checked to see if
488 michael 5146 * target_string is contained within that data. If it is the proxy is
489 michael 5052 * considered open. If the connection is closed at any point before
490     * target_string is matched, or if at least max_read bytes are read from the
491     * connection, the negotiation is considered failed.
492     */
493     scanner {
494     /*
495 michael 5146 * Unique name of this scanner. This is used further down in the
496 michael 5052 * user {} blocks to decide which users get affected by which
497     * scanners.
498     */
499 michael 5104 name = "default";
500 michael 5052
501     /*
502     * HTTP CONNECT - very common proxy protocol supported by widely known
503 michael 5146 * software such as Squid and Apache. The most common sort of
504     * insecure proxy and found on a multitude of weird ports too. Offers
505 michael 5052 * transparent two way TCP connections.
506     */
507     protocol = HTTP:80;
508     protocol = HTTP:8080;
509     protocol = HTTP:3128;
510     protocol = HTTP:6588;
511    
512 michael 6235 /*
513     * The SSL/TLS variant of HTTP
514     */
515 michael 6297 # protocol = HTTPS:443;
516     # protocol = HTTPS:8443;
517 michael 6222
518 michael 5052 /*
519     * SOCKS4/5 - well known proxy protocols, probably the second most
520     * common for insecure proxies, also offers transparent two way TCP
521 michael 5146 * connections. Fortunately largely confined to port 1080.
522 michael 5052 */
523     protocol = SOCKS4:1080;
524     protocol = SOCKS5:1080;
525    
526     /*
527     * Cisco routers with a default password (yes, it really does happen).
528     * Also pretty much anything else that will let you telnet to anywhere
529 michael 6565 * else on the Internet. Fortunately these are always on port 23.
530 michael 5052 */
531     protocol = ROUTER:23;
532    
533     /*
534     * WinGate is commercial windows proxy software which is now not so
535     * common, but still to be found, and helpfully presents an interface
536     * that can be used to telnet out, on port 23.
537     */
538     protocol = WINGATE:23;
539    
540 michael 6001 /*
541     * Dreambox DVB receivers with a default password allowing
542     * full root access to telnet or install bouncers.
543     */
544 michael 5998 protocol = DREAMBOX:23;
545    
546 michael 5052 /*
547     * The HTTP POST protocol, often dismissed when writing the access
548     * controls for proxies, but sadly can still be used to abused.
549     * Offers only the opportunity to send a single block of data, but
550     * enough of them at once can still make for a devastating flood.
551     * Found on the same ports that HTTP CONNECT proxies inhabit.
552     *
553     * Note that if your ircd has "ping cookies" then clients from HTTP
554 michael 5146 * POST proxies cannot actually ever get onto your network anyway. If
555 michael 5052 * you leave the checks in then you'll still find some (because some
556 michael 5056 * people IRC from boxes that run them), but if you use HOPM purely as
557 michael 5052 * a protective measure and you have ping cookies, you need not scan
558     * for HTTP POST.
559     */
560     protocol = HTTPPOST:80;
561    
562 michael 6235 /*
563     * The SSL/TLS variant of HTTPPOST
564     */
565 michael 6297 # protocol = HTTPSPOST:443;
566     # protocol = HTTPSPOST:8443;
567 michael 6222
568 michael 5052 /*
569 michael 6170 * IP address this scanner will bind to. Use this if you need your scans to
570 michael 5056 * come FROM a particular interface on the machine you run HOPM from.
571 michael 5052 * If you don't understand what this means, please leave this
572     * commented out, as this is a major source of support queries!
573     */
574     # vhost = "127.0.0.1";
575    
576 michael 5298 /*
577     * Maximum file descriptors this scanner can use. Remember that there
578 michael 5146 * will be one FD for each protocol listed above. As this example
579     * scanner has 8 protocols, it requires 8 FDs per user. With a 512 FD
580 michael 5052 * limit, this scanner can be used on 64 users _at the same time_.
581     * That should be adequate for most servers.
582     */
583     fd = 512;
584    
585     /*
586 michael 5146 * Maximum data read from a proxy before considering it closed. Don't
587 michael 5052 * set this too high, some people have fun setting up lots of ports
588 michael 5146 * that send endless data to tie up your scanner. 4KB is plenty for
589 michael 5052 * any known proxy.
590     */
591 michael 6170 max_read = 4 kbytes;
592 michael 5052
593     /*
594 michael 5080 * Amount of time before a test is considered timed out.
595 michael 5052 * Again, all but the poorest slowest proxies will be detected within
596     * 30 seconds, and this helps keep resource usage low.
597     */
598 michael 5080 timeout = 30 seconds;
599 michael 5052
600 michael 5104 /*
601 michael 5052 * Target IP to tell the proxy to connect to
602 michael 5104 *
603 michael 5052 * !!! THIS MUST BE CHANGED !!!
604     *
605     * You cannot instruct the proxy to connect to itself! The easiest
606 michael 6170 * thing to do would be to set this to the IP address of your ircd
607     * and then keep the default target_strings.
608 michael 5052 *
609 michael 6170 * Please use an IP address that is publically reachable from anywhere
610     * on the Internet, because you have no way of knowing where the insecure
611 michael 5146 * proxies will be located. Just because you and your HOPM can
612 michael 6170 * connect to your ircd on some private IP address like 192.168.0.1,
613     * does not mean that the insecure proxies out there on the Internet will be
614 michael 5146 * able to. And if they never connect, you will never detect them.
615 michael 5052 *
616     * Remember to change this setting for every scanner you configure.
617     */
618 michael 5056 target_ip = "127.0.0.1";
619 michael 5052
620     /*
621 michael 5146 * Target port to tell the proxy to connect to. This is usually
622     * something like 6667. Basically any client-usable port.
623 michael 5052 */
624 michael 5056 target_port = 6667;
625 michael 5052
626 michael 5104 /*
627 michael 5052 * Target string we check for in the data read back by the scanner.
628     * This should be some string out of the data that your ircd usually
629 michael 5686 * sends on connect. Multiple target strings are allowed.
630 michael 5052 *
631     * NOTE: Try to keep the number of target strings to a minimum. Two
632     * should be fine. One for normal connections and one for throttled
633     * connections. Comment out any others for efficiency.
634     */
635    
636 michael 5056 /*
637 michael 5104 * Usually first line sent to client on connection to ircd.
638 michael 5052 * If your ircd supports a more specific line (see below),
639     * using it will reduce false positives.
640     */
641 michael 5109 target_string = ":irc.example.org NOTICE * :*** Looking up your hostname";
642 michael 5052
643 michael 5056 /*
644     * If you try to connect too fast, you'll be throttled by your own
645 michael 5146 * ircd. Here's what a hybrid throttle message looks like:
646 michael 5052 */
647     target_string = "ERROR :Your host is trying to (re)connect too fast -- throttled.";
648     };
649    
650 michael 5056
651 michael 5052 scanner {
652     name = "extended";
653    
654     protocol = HTTP:81;
655     protocol = HTTP:8000;
656     protocol = HTTP:8001;
657     protocol = HTTP:8081;
658    
659     protocol = HTTPPOST:81;
660     protocol = HTTPPOST:6588;
661 michael 6235 protocol = HTTPPOST:4480;
662 michael 5052 protocol = HTTPPOST:8000;
663     protocol = HTTPPOST:8001;
664     protocol = HTTPPOST:8080;
665     protocol = HTTPPOST:8081;
666    
667     /*
668     * IRCnet have seen many socks5 on these ports, more than on the
669     * standard ports even.
670     */
671     protocol = SOCKS4:4914;
672     protocol = SOCKS4:6826;
673     protocol = SOCKS4:7198;
674     protocol = SOCKS4:7366;
675     protocol = SOCKS4:9036;
676    
677     protocol = SOCKS5:4438;
678     protocol = SOCKS5:5104;
679     protocol = SOCKS5:5113;
680     protocol = SOCKS5:5262;
681     protocol = SOCKS5:5634;
682     protocol = SOCKS5:6552;
683     protocol = SOCKS5:6561;
684     protocol = SOCKS5:7464;
685     protocol = SOCKS5:7810;
686     protocol = SOCKS5:8130;
687     protocol = SOCKS5:8148;
688     protocol = SOCKS5:8520;
689     protocol = SOCKS5:8814;
690     protocol = SOCKS5:9100;
691     protocol = SOCKS5:9186;
692     protocol = SOCKS5:9447;
693     protocol = SOCKS5:9578;
694 michael 7199 protocol = SOCKS5:10000;
695 michael 6967 protocol = SOCKS5:64101;
696 michael 5052
697     /*
698     * These came courtsey of Keith Dunnett from a bunch of public open
699     * proxy lists.
700     */
701     protocol = SOCKS4:29992;
702     protocol = SOCKS4:38884;
703     protocol = SOCKS4:18844;
704     protocol = SOCKS4:17771;
705     protocol = SOCKS4:31121;
706    
707     fd = 400;
708    
709 michael 5298 /*
710     * If required you can add settings such as target_ip here
711 michael 5052 * they will override the defaults set in the first scanner
712     * for this and subsequent scanners defined in the config file
713     * This affects the following options:
714     * fd, vhost, target_ip, target_port, target_string, timeout and
715     * max_read.
716     */
717     };
718    
719    
720     /*
721 michael 5298 * User blocks define what scanners will be used to scan which hostmasks.
722     * When a user connects they will be scanned on every scanner {} (above)
723     * that matches their host.
724 michael 5052 */
725     user {
726     /*
727     * Users matching this host mask will be scanned with all the
728     * protocols in the scanner named.
729     */
730     mask = "*!*@*";
731     scanner = "default";
732     };
733    
734     user {
735 michael 5056 /*
736     * Connections without ident will match on a vast number of connections
737     * very few proxies run ident though
738     */
739 michael 5052 # mask = "*!~*@*";
740     mask = "*!squid@*";
741     mask = "*!nobody@*";
742     mask = "*!www-data@*";
743     mask = "*!cache@*";
744     mask = "*!CacheFlowS@*";
745     mask = "*!*@*www*";
746     mask = "*!*@*proxy*";
747     mask = "*!*@*cache*";
748    
749     scanner = "extended";
750     };
751    
752    
753     /*
754     * Exempt hosts matching certain strings from any form of scanning or dnsbl.
755 michael 5056 * HOPM will check each string against both the hostname and the IP address of
756 michael 5052 * the user.
757     *
758 michael 5146 * There are very few valid reasons to actually use "exempt". HOPM should
759 michael 5052 * never get false positives, and we would like to know very much if it does.
760 michael 5056 * One possible scenario is that the machine HOPM runs from is specifically
761 michael 5052 * authorized to use certain hosts as proxies, and users from those hosts use
762 michael 5146 * your network. In this case, without exempt, HOPM will scan these hosts,
763 michael 5052 * find itself able to use them as proxies, and ban them.
764     */
765     exempt {
766     mask = "*!*@127.0.0.1";
767     };

Properties

Name Value
svn:eol-style native
svn:keywords Id