Bug 709273 - Local patch for #600174 adds bogus addresses and routes
Summary: Local patch for #600174 adds bogus addresses and routes
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: openswan
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Avesh Agarwal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-31 09:07 UTC by Tom Hughes
Modified: 2011-08-25 18:28 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-25 18:28:10 UTC
Type: ---


Attachments (Terms of Use)

Description Tom Hughes 2011-05-31 09:07:49 UTC
Description of problem:

The patch being carried in the openswan RPM for case #600174 appears to be incorrect as it is causing nonsense addresses to be added to one of my interfaces.

Our setup has 172.16.0.0/16 as the local network and 172.19.0.0/16 as a remote network that we are establishing a tunnel to. The configuration looks like:

        left=xxx
        leftnexthop=xxx
        leftsubnet=172.16.0.0/16 
        leftsourceip=172.16.1.1
        right=xxx
        rightsubnet=172.19.0.0/16

There is (obviously) an existing route to 172.16.0.0/16 via eth0 and the external traffic is via teql0.

The leftsourceip clause is just there to set the source address on the route to the remote network, so that the endpoint can talk to the network, but the patch for #600174 is causing a 172.16.1.1/16 address and corresponding route to be added to the external interface which means we have two routes for the local network, one going out the wrong interface.

My guess is that, even if it is correct to add a subnet address rather than a /32 address in the updown script, you still need to first check that there isn't already a valid route, as the upstream code does.

Version-Release number of selected component (if applicable):

openswan-2.6.32-1.fc15.x86_64

How reproducible:

Every time I start openswan.

Steps to Reproduce:

1. Setup an appropriate connection
2. Start openswan
3. Notice that a bogus address and route have appeared
  
Actual results:

Bogus address and route added.

Expected results:

Bogus address and route are not added.

Comment 1 Avesh Agarwal 2011-05-31 13:21:02 UTC
There is a new release for f15 here:

http://koji.fedoraproject.org/koji/buildinfo?buildID=245165

to fix the above issue.

Comment 2 Avesh Agarwal 2011-08-25 18:26:57 UTC
This is fixed in the current release of F15, so closing it. Please reopen it if the issue persists.


Note You need to log in before you can comment on or make changes to this bug.