Re: [ibr-dtn] Setting up static routes
Just realized I replied to Shyam instead of the list. So here goes :
Hello Shyam,
These are my assumptions on your setup : Node A : local_uri = dtn://OpenWrt10 Node B : local_uri = dtn://OpenWrt20 Node C : local_uri = dtn://OpenWrt30
First you need to set the routing to default (might actually be none
instead of default) using :
routing = default
Then you need to add the routes manually :
- On node A :
static1_address = <address_of_node_B> static1_port = <port> static1_uri = <eid> (dtn://OpenWrt20 in your case) static1_proto = tcp static1_global = no
static2_address = <address_of_node_C> static2_port = <port> static2_uri = <eid> (dtn://OpenWrt30 in your case) static2_proto = tcp static2_global = no
Do the same for nodes B and C changing Addresses and EIDs when necessary.
Then add the routes :
- On node A:
route dtn://OpenWrt30 dtn://OpenWrt20
- On node C :
route dtn://OpenWrt10 dtn://OpenWrt20
Disclaimer : I am in no way affiliated to the IBR DTN developpers, use my
advice with caution. If I am wrong someone more knowledgeable will hopefully correct me.
Best Regards, Jawad
2014-02-24 15:12 GMT+01:00 Shyam B shyambs85@gmail.com:
Hi Sebastian/ Johannes,
I have three nodes (A, B, C) running ibr-dtn. I would like the packets
to be forwarded from A->B->C and C->B->A but never directly from A->C or vice-versa. How could I achieve this? I wonder if the static configuration can help me and if this can be setup via the configuration file? I couldn't find the answer to this in the forum.
In the configuration file, I see two parts relating to static
configurations:
# route all bundles for "~dtn://*.moon.dtn..." via "dtn://*..." route1 = ....
### node-five.dtn### static2_address = .... .....
- Could you tell me if this is possible to do?
- Could you give me an example of how to set this up?
- The static URI is ended with .dtn. Why is this necessary? The dtn
address on my nodes is like dtn://OpenWrt20, dtn://OpenWrt30, etc.
-- Best Regards, Shyam
-- !! This message is brought to you via the `ibr-dtn' mailing list. !! Please do not reply to this message to unsubscribe. To unsubscribe or
adjust
!! your settings, send a mail message to <ibr-dtn-request@ibr.cs.tu-bs.de
!! or look at https://mail.ibr.cs.tu-bs.de/listinfo/ibr-dtn.
Am 24.02.2014 19:17, schrieb Jawad Seddar:
Disclaimer : I am in no way affiliated to the IBR DTN developpers, use
my advice with caution. If I am wrong someone more knowledgeable will hopefully correct me.
Thank you Jawad. Your instructions are correct, but let me fix a minor typo.
The route pattern in the configuration file is numbered. Thus, it is necessary. To use "route1 = ..." for the first entry and "route2 = ..." for the second an so on.
Using "routing = none" would help here if the nodes are able to discover each other. The "none" directive disables all clever routing extensions and only follow static routes instructions. Thus, even direct delivery is not done in this case.
My preferred way to set-up such a constructed scenario is to block IP traffic using iptables between the nodes, which should not be in contact. This way you gain a more realistic behavior, since the nodes does not discover all the other nodes.
Kind regards, Johannes Morgenroth
participants (2)
-
Jawad Seddar
-
Johannes Morgenroth