ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/doc/reference.conf
Revision: 6967
Committed: Sat Dec 19 18:56:23 2015 UTC (8 years, 3 months ago) by michael
File size: 22282 byte(s)
Log Message:
- reference.conf: added socks5 port as suggested by Thomas M. Carlsson

File Contents

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

Properties

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