Debian Codegraph @

debian/templates/geoip.conf

raw
1 #
2 # Proftpd sample configuration for geoip.
3 #
4 <IfModule mod_geoip.c>
5
6 # GeoIPEngine
7 # Syntax: GeoIPEngine on|off
8 # Default: off
9 # The GeoIPEngine directive enables or disables the module's lookup of geographic information for a
10 # connecting client, and subsequent enforcement of any configured ACLs.
11 GeoIPEngine on
12
13
14 # Syntax: GeoIPAllowFilter filter pattern
15 # Default: none
16 # The GeoIPAllowFilter directive is used to configure ACLs based on the
17 # geographic data provided by the GeoIP library.
18 # Multiple GeoIPAllowFilter directives in the configuration are supported;
19 # if any filter matches the connecting client, the connection will be allowed.
20 # The filter parameter specifies the GeoIP value to which to apply the configured
21 # pattern for matching. The possible filter values are:
22 # * AreaCode
23 # * ASN
24 # * City
25 # * Continent
26 # * CountryCode
27 # * CountryCode3
28 # * CountryName
29 # * ISP
30 # * Latitude
31 # * Longitude
32 # * NetworkSpeed
33 # * Organization
34 # * PostalCode
35 # * Proxy
36 # * RegionCode
37 # * RegionName
38 # * Timezone
39 # The pattern parameter is case-insensitive regular expression that will be applied to the
40 # specified filter value, if available.
41 # Examples:
42
43 # Allow clients with high-speed connections
44 # GeoIPAllowFilter NetworkSpeed corporate
45
46 # Reject clients connecting from North America or South America
47 # GeoIPDenyFilter Continent (NA|SA)
48
49 # GeoIPDenyFilter
50 # Syntax: GeoIPDenyFilter filter pattern
51 # Default: none
52 # The GeoIPDenyFilter directive is used to configure ACLs based on the geographic data provided by
53 # the GeoIP library.
54 # Multiple GeoIPDenyFilter directives in the configuration are supported; if any filter matches the
55 # connecting client, the connection will be rejected.
56 # See GeoIPAllowFilter for a description of the directive syntax and parameters.
57
58 # GeoIPLog
59 # Syntax: GeoIPLog file|"none"
60 # Default: None
61 # The GeoIPLog directive is used to specify a log file for mod_geoip's reporting on a per-server basis.
62 # The file parameter given must be the full path to the file to use for logging.
63 # Note that this path must not be to a world-writable directory and, unless AllowLogSymlinks is explicitly
64 # set to on (generally a bad idea), the path must not be a symbolic link.
65 GeoIPLog /var/log/proftpd/geoip.log
66
67 # GeoIPTable
68 # Syntax: GeoIPTable path [flags]
69 # Default: None
70 # The GeoIPTable directive is used to a GeoIP database file for use by the GeoIP library. The path parameter given must be the full path to the database file.
71 # If no GeoIPTable directive is configured, then the GeoIP library will use the default GeoIP Country database file installed with the library.
72 # Otherwise, only the database files configured via GeoIPTable directives will be used.
73 # Multiple GeoIPTable directives can be used to configure multiple different GeoIP database files for use at the same time.
74 # The possible flags values supported are:
75 # * Standard
76 # Reads the database from the filesystem; uses the least memory but causes database to be read for each connection.
77 # * MemoryCache
78 # Loads the database into memory; faster performance but uses the most memory. Tables configured with MemoryCache are loaded into the parent process memory, avoiding
79 # the need to read them for each connection.
80 # * CheckCache
81 # Causes the GeoIP library to check for database updates. If the database has been updated, the library will automatically reload the file and/or memory cache.
82 # * IndexCache
83 # Loads just the most frequently accessed index portion of the database into memory, resulting in faster lookups than Standard but less memory usage than MemoryCache.
84 # This can be useful for larger databases such as GeoIP Organization and GeoIP City.
85 # * MMapCache
86 # Loads the database into mmap shared memory.
87 # * UTF8
88 # Tells the GeoIP library to return UTF8 strings for the data obtained from this database file. By default, the GeoIP library uses ISO-8859-1 encoded strings.
89 # Multiple different flags can be configured.
90 # Examples:
91 # GeoIPTable /path/to/GeoIP.dat MemoryCache CheckCache
92 # GeoIPTable /path/to/GeoISP.dat Standard
93 # GeoIPTable /path/to/GeoIPCity.dat IndexCache
94 # Load GeoIP city database into memory on server startup, and use
95 # UTF8-encoded city names
96 GeoIPTable /usr/share/GeoIP/GeoIP.dat MemoryCache UTF8
97
98 # Add your GeoIPAllowFilter/GeoIPDenyFilter rules here
99 </IfModule>
100
101