mpd.secret
mpd.conf
and mpd.links
mpd.script
mpd.secret
This file contains login, password pairs, one entry per line. Each entry may have an optional third argument, which is an IP address with optional netmask width. This is used when netgotiating IP addresses with the corresponding peer. We restrict the allowable IP addresses we'll assign to the peer to lie within the specified range.
In the example below, we define two ISP accounts that we use to connect to the Internet. Also, we have three friends who are allowed to connect to us, and we want to restrict the IP addresses that we'll let them have.
#
# mpd.secrets configuration file
#
# my two ISP accounts
mylogin1 password1
mylogin2 "Xka \r\n"
# my three friends
bob "akd\"ix23" 192.168.1.100
jerry "33dk88kz3" 192.168.1.101
phil "w*d9m&_4X" 192.168.1.128/25
Here bob
and jerry
must negotiate
192.168.1.100
and 192.168.1.101
,
respectively, while phil
can ask for any
address from 192.168.1.128
through 192.168.1.255
.
mpd.secret
mpd.conf
and mpd.links
mpd.script