]> git.sesse.net Git - nbtscanner/blob - nbtscanner.conf
Import nbtscanner 0.2.0.
[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 #
22 # How long a host may be inactive before it's purged from the database.
23 # Note that this value is in seconds, not milliseconds like the other
24 # time values in this file.
25 #
26 ghost_lifetime=60
27
28 # How long there will be between the _start_ of each scan, in ms.
29 # The default (half an hour, or 1800 seconds) should be OK.
30 scan_interval=400000
31
32 #
33 # The minimum time to wait between each scan (ie. even if a scan
34 # takes 24 hours, wait at least this time before the next scan
35 # begins). This is to prevent flooding the network constantly.
36 #
37 # The default value is 5 minutes.
38 #
39 scan_wait=300000
40
41 #
42 # Verbosity level: 
43 # 0: Absolutely no warnings or error messages will be printed (not
44 #    recommended, it's kinda nice to know why the program failed).
45 # 1: Fatal error messages will be printed on standard error.
46 # 2: Warnings (like suspicious NBT responses coming in, etc.) are
47 #    also printed.
48 # 3: Errors, warnings and progress indicators.
49 #
50 # Config file errors are printed regardless of this setting. It's
51 # recommended that you redirect standard output to a file (or a
52 # pipe) if using verbosity >= 1.
53 #
54 verbosity=3
55
56 #
57 # MySQL setup
58 #
59 # If this is 1, a MySQL connection is used instead of outputting
60 # all the IPs to standard output. This is highly recommended, but
61 # needs some table setup before use.
62 #
63 use_mysql=1
64
65 #
66 # Your MySQL server information. mysql_host is the IP address (or
67 # host name) of your MySQL server, often localhost. mysql_username
68 # and password_username have obvious meanings. The password is in
69 # cleartext, so make sure the permissions on this file are set to
70 # 0600 or similiar.
71 #
72 mysql_host=localhost
73 mysql_username=nbtscanner
74 mysql_password=qugx8M!S
75
76 #
77 # Each IP address range is specified with a range= parameter.
78 # There are three different ways to specify these:
79 #
80 # range=10.0.0.1                -- scan one IP address only.
81 # range=10.0.0.0/24             -- scan an entire C-net.
82 # range=10.0.0.0/255.255.255.0  -- the same, using netmask notation.
83 #
84 # If you specify networks, the top and bottom address will not be
85 # scanned. Netmasks must be filled from the left (if you don't have
86 # a VERY weird network layout, this will come naturally).
87 #
88 # Duplicate IP address _will_ be scanned twice. :-)
89 #
90 #range=158.39.124.0/23
91 #range=213.236.192.0/24
92 range=10.0.7.80/28
93 #range=10.0.19.0/24
94 range=213.236.192.0/24
95