[Openswan Users] KLIPS eroute selection question

Vassil Panayotov vassil.panayotov at gmail.com
Thu Mar 8 02:51:02 EST 2007


I have a question regarding the eroute selection in KLIPS. We have a big
network and we want to build a sort of hierarchical VPN network. We have
many branch offices that are subordinate to a regional office and all
regional offices are subordinate to the central office.

Example address plan:
Branch Office1 -
Branch Office2 -

Regional Office1: - this network includes the network in the
regional office itself and the networks in the branch offices subordinate to
this regional office(e.g. both of the above branches are subordinate to this
Regional Office2: and so on...

Central Office:

We want to build IPsec connections like this:

                                       | ----- RBO1 =====\         |
                              |===== RRO1 =====\ ----- RBO2 =====/                  |======== RCO -------
                               ===== RRO2 =====/

   RBO - Router Branch Office
   RRO - Router Regional Office
   RCO - Router Central Office
   "=" - IPsec tunnel
   "-" - Connection to LAN

We want to build the net this way in order the RROs to be able to enforce
policies on branch offices interconnections and RCO to enforce policies on
Regional Offices interconnections.

But we have problems because eroute is selected based on source IP first.
For example:
eroute branch office:
84       ->          => tun0x10c2 at X.X.X.X
i.e. we want all traffic to be forwarded through the tunnel to the RRO. No
problems here.

eroute regional office:
108          ->       => tun0x1012 at X.X.X.X (to
branch office)
299        ->         => tun0x1014 at X.X.X.X (to
the central and other Regional Offices)

The problem that I see is with this eroutes. Let see what happens when an
user from the Regional Office 1 LAN  want to send packet to the branch
For example: ->

The route is selected based on the best matched source address first, so the
KLIPS tries to send the packet to the        ->, instead of          -> So the packet is sent to Central Office
and not to Branch Office.

Is there way to override this eroute selection algorithm?

Thank you for your patience :).

Best Regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openswan.org/pipermail/users/attachments/20070308/685aa556/attachment-0001.html 

More information about the Users mailing list