ConfigFileFormat » History » Revision 9
Revision 7 (Anonymous, 03/27/2014 11:36 AM) → Revision 9/19 (Anonymous, 03/29/2014 06:34 PM)
# Config file format
Initial state of NFD daemon is configured using an [INFO file](http://www.boost.org/doc/libs/1_42_0/doc/html/boost_propertytree/parsers.html#boost_propertytree.parsers.info_parser).
## Example configuration
; the general process section contains settings of nfd process
general process
{
}
log
{
pidfile /tmp/nfd.pid ; default_level specifies the logging level for modules
; that are not explicitly named. All debugging levels
; listed above the selected value are enabled.
;
; Valid levels:
;
; NONE ; no messages
; ERROR ; error messages
; WARN ; warning messages
; INFO ; informational messages (default)
; DEBUG ; debugging messages
; TRACE ; trace messages (most verbose)
; ALL ; all messages
default_level WARN
; You may override default_level by assigning a logging level
; filename to the desired module name. Module names can be found in two ways: write PID upon startup
;
; Run:
; nfd --modules
;
; Or look for NFD_LOG_INIT(<module name>) statements in .cpp files
FibManager DEBUG
Forwarder INFO
}
; the face_system section defines what faces and channels are created
face_system
{
; the unix section contains settings of UNIX stream faces and channels
unix
{
listen yes ; set to 'no' to disable UNIX stream listener, default 'yes'
path /var/run/nfd.sock ; UNIX stream listener path
}
; the tcp section contains settings of TCP faces and channels
tcp
{
listen yes ; set to 'no' to disable TCP listener, default 'yes'
port 6363 ; TCP listener port number
}
; the udp section contains settings of UDP faces and channels
udp
{
port 6363 ; UDP unicast port number
idle_timeout 30 ; idle time (seconds) before closing a UDP unicast face
keep_alive_interval 25; interval (seconds) between keep-alive refreshes
; NFD creates one UDP multicast face per NIC
mcast yes ; set to 'no' to disable UDP multicast, default 'yes'
mcast_port 56363 ; UDP multicast port number
mcast_group 224.0.23.170 ; UDP multicast group (IPv4 only)
}
; the ether section contains settings of Ethernet faces and channels
ether
{
; NFD creates one Ethernet multicast face per NIC
mcast yes ; set to 'no' to disable Ethernet multicast, default 'yes'
mcast_group 01:00:5E:00:17:AA ; Ethernet multicast group
}
}
; the authorizations section grants privileges to authorized NDN certificates keys
authorizations
{
; an authorize section grants privileges to an NDN certificate a key
authorize
{
keyfile "/tmp/cert1.ndncert" "/tmp/key1.pub" ; NDN identity certificate public key file
privileges ; set of privileges granted to this identity public key
{
fib
stats
}
}
authorize
{
keyfile "/tmp/cert2.ndncert" "/tmp/key2.pub" ; NDN identity certificate public key file
privileges ; set of privileges granted to this identity public key
{
faces
}
}
}