ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/doc/reference.conf
Revision: 6001
Committed: Thu May 28 15:14:44 2015 UTC (11 years, 1 month ago) by michael
File size: 21671 byte(s)
Log Message:
- Update reference.conf

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

Properties

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