npd6 Config file - npd6/npd6 GitHub Wiki

***** Slightly out of date - requires updating *****

/etc/npd6.conf

Default location is /etc/npd6.conf, although the "-c" cli option lets this be changed.

Here's the supplied template config:

// npd6 config file
// The prefix portion that we will match on`
prefix=2a01:0123:4567:89aa:

// Which interface are we monitoring and using? 
interface = eth0

//**********************************
//*** Black/Whitelisting ***********
// If 'none' (the default) any NS matching the prefix will
// be answered with a Neighbor Advertisement. i.e. no blacklisting
// or whitelisting is performed at all.
// If 'black', then any NS *except* those entries given, will
// be answered by a Neighbor Advertisement.
// If 'white', then *only* NS with a target of one of the
// entries will be answered by a Neighbor Advertisement.
//
// Most folks will want 'none'...
//

// listtype should be one of 'none', 'white' or 'black'
listtype = none
//listtype = black
//addrlist = 2a01:0123:4567:89aa:aaaa:bbbb:cccc:dddd
//addrlist = 2a01:123:4567:89aa:dead:beef:dead:beef
//.
//.
//. (add as many addrlist entires as desired)
// Format: must be a 128-bit address, but all formats
// accepted, e.g. 2a01::22, 2a01::0022, etc.


//**************************************************
// Options below this line are normally not changed!
// Do so at your own risk...

// Collect target data up to this many targets. Data can be
// subsequently dumped via a USR2. 0 to disable.
collectTargets = 100

// Set to 'false' to disable target link-layer option
// on replies to unicasted NS
linkOption = false

// If we rx NS for the local interface, if this option true
// we ignore it (and let the kernel reply itself)
ignoreLocal = true

// Normally outbound NAs will have ROUTER flag set.
// Can be disabled here
routerNA = true

// Normally set to max of 255. if wrong, NAs may be siltenyl ignored!
maxHops = 255

// (Default: 20) Set to 0 to disable this threshold completely.
// If more than this number of consecutive poll errors occur
// terminate the process. e.g. an interface goes away permanently.
// Advice: Don't change this one unless you really understand why...!!
pollErrorLimit = 20