LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 11-07-2012, 09:57 AM   #1
Triponi
LQ Newbie
 
Registered: Nov 2012
Posts: 2

Rep: Reputation: Disabled
Using source routing (LSRR) - any ideas?


Hi all,

What I want to do is conceptually very simple, but I can't find any information or help about how to go about doing this.

Basically, I want to configure my networking to use source routing (LSRR). Now I know there are "security concerns" with this and hence it is generally blocked in the public Internet and so the tutorials reach dead ends. However I have a totally private network, and need to do this for some engineering reasons. [Basically, I'm doing some experiments where I want to "simulate" a hop by hop routing protocol]

So, I want to send traffic from (machine with IP address) A to (machine with IP address) X. But I want the traffic to follow a specific route via intermediate nodes B, C, then D i.e A -> B -> C -> D -> X. These are all private IP addresses and I have configured the proper ip_forwarding etc .

Ping actually allows you to use a LSRR, so I can ping from A to X via these intermediate nodes (using that route I specified) and can verify that it is actually happening with wireshack traces, and it works fine.

The question then is how can I use some features of iptables, or tun interfaces (or other - VPN?) etc to redirect all my normal traffic along this route using loose source routing? Basically, I would like to implement something at A, so that when I try to send traffic from A to X it intercepts those IP packets and adds the LSRR to them so that it forwards on via the specified intermediate points.

If anyone can help me, I would be extremely grateful as I can't seem to work out how to do this?

Thank you very much,
Triponi

Last edited by Triponi; 11-07-2012 at 10:53 AM.
 
Old 11-12-2012, 02:33 PM   #2
nini09
Member
 
Registered: Apr 2009
Posts: 916

Rep: Reputation: 67
You can use ip route or ip rule to implement source routing.
 
Old 11-13-2012, 09:56 AM   #3
Triponi
LQ Newbie
 
Registered: Nov 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by nini09 View Post
You can use ip route or ip rule to implement source routing.
Thanks for the nini09! Would you mind if I asked if it was at all possible for you to drop to the next level of detail to help me out with the "how" question? :-)

There are a bewildering number of command line options for the ip route ip rule stuff, and it is not obvious to me where to begin. I can see the "via" option but that seems to indicate it is only the next hop rather than a full multi-hop source route.
 
Old 11-13-2012, 02:12 PM   #4
nini09
Member
 
Registered: Apr 2009
Posts: 916

Rep: Reputation: 67
Check following link. It has some example to help you understand source route's configuration.
http://wiki.georgweiss.de/Linux/source_routing
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Essay on open source - need more ideas Joe of Loath General 2 03-07-2011 05:23 PM
Need some ideas for bridging or routing between 2 segments with 2 internet providers. Sm0k3 Linux - Networking 1 03-23-2010 08:33 PM
Steps for starting open source project [ideas]? christophos.bc General 3 01-14-2009 12:54 PM
Open source system management ideas! HelpMe2877 Linux - General 2 07-17-2008 02:28 PM
LXer: Interactive Ideas eyes open source increase LXer Syndicated Linux News 0 03-13-2007 01:01 PM


All times are GMT -5. The time now is 10:41 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration