Hi, 

I am trying to connect two raspberry pi between them using the protocol IBR-DTN. I builted them both from source. The built and install worked perfectly, but even though both nodes can see eachother i have not been able to dtnping one node from the other one. Every time I try to do a dtnping a message saying “bundle rejected due to invalid authentication ([0.1200640435] dtn://node49.dtn/wswNupEItdVEiINm)” appears on the log file.  

 

I will attach here the log file from the device that sends the dtnping: 

 

Tue Jul 13 09:14:01 2021 INFO NativeDaemon: IBR-DTN daemon 1.0.1 (build 294b543) 

Tue Jul 13 09:14:01 2021 INFO Configuration: Configuration: /etc/ibrdtn/ibrdtnd.conf 

Tue Jul 13 09:14:01 2021 INFO NativeDaemon: use logfile for output: /var/log/ibrdtn/ibrdtn.log 

Tue Jul 13 09:14:01 2021 INFO NativeDaemon: Parallel event processing enabled using 4 processes. 

Tue Jul 13 09:14:01 2021 INFO BundleCore: Local node name: dtn://node49.dtn 

Tue Jul 13 09:14:01 2021 INFO BundleCore: Forwarding of bundles enabled. 

Tue Jul 13 09:14:01 2021 INFO NativeDaemon: using bundle storage in memory-only mode 

Tue Jul 13 09:14:01 2021 NOTICE GlobalEvent: Internet connection is available. 

Tue Jul 13 09:14:01 2021 INFO DTNTPWorker: Time-Synchronization enabled: slave mode 

Tue Jul 13 09:14:01 2021 INFO NativeDaemon: API initialized using tcp socket: any:4550 

Tue Jul 13 09:14:01 2021 INFO NativeDaemon: TCP ConvergenceLayer added on any:4556 

Tue Jul 13 09:14:01 2021 INFO DiscoveryAgent: listen to [224.0.0.142]:4551 

Tue Jul 13 09:14:01 2021 INFO DiscoveryAgent: listen to [ff02::142]:4551 

Tue Jul 13 09:14:01 2021 INFO DiscoveryAgent: add interface any 

Tue Jul 13 09:14:01 2021 NOTICE ConnectionEvent: connection setup dtn://node48.dtn 

Tue Jul 13 09:14:01 2021 NOTICE NodeEvent: Node dtn://node48.dtn available 

Tue Jul 13 09:14:01 2021 INFO NativeDaemon: Using default routing extensions 

Tue Jul 13 09:14:01 2021 NOTICE ConnectionEvent: connection up dtn://node48.dtn 

Tue Jul 13 09:17:47 2021 NOTICE BundleReceivedEvent: Bundle received [0.1200640435] dtn://node49.dtn/wswNupEItdVEiINm (local) 

Tue Jul 13 09:17:47 2021 NOTICE BundleEvent: bundle [0.1200640435] dtn://node49.dtn/wswNupEItdVEiINm received 

Tue Jul 13 09:17:47 2021 NOTICE QueueBundleEvent: New bundle queued [0.1200640435] dtn://node49.dtn/wswNupEItdVEiINm 

Tue Jul 13 09:17:47 2021 NOTICE BundlePurgeEvent: purging bundle [0.1200640435] dtn://node49.dtn/wswNupEItdVEiINm 

Tue Jul 13 09:17:47 2021 NOTICE TransferAbortedEvent: transfer of bundle [0.1200640435] dtn://node49.dtn/wswNupEItdVEiINm to dtn://node48.dtn aborted. (bundle has been refused) 

 

 

 

And here I attach the log file from the device that receives the dtnping: 

 

Tue Jul 13 09:13:59 2021 INFO NativeDaemon: IBR-DTN daemon 1.0.1 (build 294b543) 

Tue Jul 13 09:13:59 2021 INFO Configuration: Configuration: /etc/ibrdtn/ibrdtnd.conf 

Tue Jul 13 09:13:59 2021 INFO NativeDaemon: use logfile for output: /var/log/ibrdtn/ibrdtn.log 

Tue Jul 13 09:13:59 2021 INFO NativeDaemon: Parallel event processing enabled using 4 processes. 

Tue Jul 13 09:13:59 2021 INFO BundleCore: Local node name: dtn://node48.dtn 

Tue Jul 13 09:13:59 2021 INFO BundleCore: Forwarding of bundles enabled. 

Tue Jul 13 09:13:59 2021 NOTICE GlobalEvent: Internet connection is available. 

Tue Jul 13 09:13:59 2021 INFO NativeDaemon: using bundle storage in memory-only mode 

Tue Jul 13 09:13:59 2021 INFO DTNTPWorker: Time-Synchronization enabled: master mode 

Tue Jul 13 09:13:59 2021 INFO NativeDaemon: API initialized using tcp socket: any:4550 

Tue Jul 13 09:13:59 2021 INFO NativeDaemon: TCP ConvergenceLayer added on any:4556 

Tue Jul 13 09:13:59 2021 INFO DiscoveryAgent: listen to [224.0.0.142]:4551 

Tue Jul 13 09:13:59 2021 INFO DiscoveryAgent: listen to [ff02::142]:4551 

Tue Jul 13 09:13:59 2021 INFO DiscoveryAgent: add interface any 

Tue Jul 13 09:13:59 2021 NOTICE NodeEvent: Node dtn://node49.dtn available 

Tue Jul 13 09:13:59 2021 NOTICE ConnectionEvent: connection setup dtn://node49.dtn 

Tue Jul 13 09:13:59 2021 WARNING TCPConnection: connection to dtn://node49.dtn failed 

Tue Jul 13 09:13:59 2021 INFO NativeDaemon: Using default routing extensions 

Tue Jul 13 09:14:01 2021 NOTICE ConnectionEvent: connection up dtn://node49.dtn 

Tue Jul 13 09:17:47 2021 WARNING BundleFilter: bundle rejected due to invalid authentication ([0.1200640435] dtn://node49.dtn/wswNupEItdVEiINm) 

 

I will attach now a summary of the configuraion file: 

 

##################################### 

# IBR-DTN daemon                    # 

##################################### 

local_uri = dtn://node48.dtn 

logfile = /var/log/ibrdtn/ibrdtn.log 

 

##################################### 

# convergence layer configuration   # 

##################################### 

discovery_address = ff02::142 224.0.0.142 

discovery_crosslayer = yes 

net_interfaces = lan0 

net_autoconnect = 30 

net_internet = eth0 

net_lan0_type = tcp                                     # we want to use TCP as protocol 

net_lan0_interface = any                        # listen on interface eth0 

net_lan0_port = 4556                                    # with port 4556 (default) 

 

##################################### 

# routing configuration             # 

##################################### 

routing = default 

routing_forwarding = yes 

routing_prefer_direct = yes 

 

## node49.dtn ### 

static1_address = 172.16.21.49                  # the node has the address 172.16.21.49 

static1_port = 4556                             # accept bundles on port 4556 

static1_uri = dtn://node49.dtn                  # eid of the node is "dtn://node49.dtn" 

static1_proto = tcp                             # reachable over TCP 

static1_immediately = yes                       # connect immediately to this node 

static1_global = no                             # this node is only reachable with internet Access 

 

##################################### 

# bundle security protocol          # 

##################################### 

security_level = 0 

security_path = /etc/ibrdtn/bpsec 

security_trusted_ca_path = /etc/ibrdtn/certs 

 

##################################### 

# time synchronization              # 

##################################### 

time_synchronize = yes 

 

 

##################################### 

# DHTNameService settings           # 

##################################### 

dht_enabled = yes 

dht_bootstrapping = no 

 

 

The other node has the same config file but with the static route of the first node. 

 

Any solution or advice will be welcomed, thank you! 

 

Daniel.