]> git.sesse.net Git - nbtscanner/blob - nbtscanner.conf
25ed502752f0f6516c4bb22821da5c27885aa721
[nbtscanner] / nbtscanner.conf
1 #
2 # nbtscanner.conf example
3 #
4 # Note that the config file scanner is not very smart, so you'd
5 # better be a bit restrictive here :-) (In particular, don't forget
6 # a newline at the end, and the ranges MUST come after the settings,
7 # otherwise you'll get slightly weird results :-) )
8 #
9 # This file is case-insensitive.
10 #
11
12 # The number of retries each host should be allowed to have.
13 num_retries=4
14
15 # The amount of time between each retry, in milliseconds.
16 retry_time=5000
17
18 # How long nbtscanner will delay between each sent packet, in ms.
19 delay_time=2
20
21 # How long there will be between the _start_ of each scan, in ms.
22 # The default (half an hour, or 1800 seconds) should be OK.
23 scan_interval=400000
24
25 #
26 # The minimum time to wait between each scan (ie. even if a scan
27 # takes 24 hours, wait at least this time before the next scan
28 # begins). This is to prevent flooding the network constantly.
29 #
30 # The default value is 5 minutes.
31 #
32 scan_wait=300000
33
34 #
35 # Verbosity level: 
36 # 0: Absolutely no warnings or error messages will be printed (not
37 #    recommended, it's kinda nice to know why the program failed).
38 # 1: Fatal error messages will be printed on standard error.
39 # 2: Warnings (like suspicious NBT responses coming in, etc.) are
40 #    also printed.
41 # 3: Errors, warnings and progress indicators.
42 #
43 # Config file errors are printed regardless of this setting. It's
44 # recommended that you redirect standard output to a file (or a
45 # pipe) if using verbosity >= 1.
46 #
47 verbosity=3
48
49 #
50 # MySQL setup
51 #
52 # If this is 1, a MySQL connection is used instead of outputting
53 # all the IPs to standard output. This is highly recommended, but
54 # needs some table setup before use.
55 #
56 use_mysql=0
57
58 #
59 # Your MySQL server information. mysql_host is the IP address (or
60 # host name) of your MySQL server, often localhost. mysql_username
61 # and password_username have obvious meanings. The password is in
62 # cleartext, so make sure the permissions on this file are set to
63 # 0600 or similiar.
64 #
65 mysql_host=localhost
66 mysql_username=nbtscanner
67 mysql_password=tg01
68
69 #
70 # Each IP address range is specified with a range= parameter.
71 # There are three different ways to specify these:
72 #
73 # range=10.0.0.1                -- scan one IP address only.
74 # range=10.0.0.0/24             -- scan an entire C-net.
75 # range=10.0.0.0/255.255.255.0  -- the same, using netmask notation.
76 #
77 # If you specify networks, the top and bottom address will not be
78 # scanned. Netmasks must be filled from the left (if you don't have
79 # a VERY weird network layout, this will come naturally).
80 #
81 # Duplicate IP address _will_ be scanned twice. :-)
82 #
83 #range=158.39.124.0/23
84 #range=213.236.192.0/24
85 range=10.0.0.0/16
86 #range=10.0.19.0/24
87