-
Notifications
You must be signed in to change notification settings - Fork 2
Useful How To References
Ref: https://named-data.net/doc/NFD/current/INSTALL.html#connecting-to-remote-forwarders
To create a UDP tunnel to a remote instance of NFD, execute the following command in a terminal:
nfdc face create udp://<other-host>
where is the name or IP address of the other host (e.g., udp://ndn.example.net). If successful, this will print something like:
face-created id=308 local=udp4://10.0.2.15:6363 remote=udp4://131.179.196.46:6363 persistency=persistent
To add a route /ndn toward this remote forwarder, execute the following command in a terminal:
nfdc route add /ndn udp://<other-host>
This will print:
route-add-accepted prefix=/ndn nexthop=308 origin=static cost=0 flags=child-inherit expires=never
This indicates that NFD will forward all Interests that start with /ndn through the face to the other host. This forwards Interests to the other host, but does not provide a “back route” for the other host to forward Interests to you. For this, you can rely on the “automatic prefix propagation” feature of NFD or use the nfdc command on the other host to add the route.