File: PasswordDatabase.ExtraFields.AllowNets.txt

package info (click to toggle)
dovecot 1%3A2.2.13-11
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 38,472 kB
  • sloc: ansic: 341,153; sh: 16,920; makefile: 5,385; cpp: 1,474; perl: 265; xml: 44; python: 34; pascal: 27
file content (21 lines) | stat: -rw-r--r-- 835 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Allow_nets extra field
----------------------

This is a comma separated list of IPs and/or networks where the user is allowed
to log in from. If the user tries to log in elsewhere, the authentication will
fail the same way as if a wrong password was given.

Example: 'allow_nets=127.0.0.0/8,192.168.0.0/16,1.2.3.4,4.5.6.7'.

IPv6 addresses are also allowed. IPv6 mapped IPv4 addresses (eg.
'::ffff:1.2.3.4') are converted to standard IPv4 addresses before matching. 
Example:'allow_nets=::1,2001:abcd:abcd::0:0/80,1.2.3.4'

passwd-file example
-------------------

---%<-------------------------------------------------------------------------
user:{plain}password::::::allow_nets=192.168.0.0/24
---%<-------------------------------------------------------------------------

(This file was created from the wiki on 2013-11-24 04:42)