Bug 1311627 - Gateway IP address not properly set in IKE replies
Summary: Gateway IP address not properly set in IKE replies
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: strongswan
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Pavel Šimerda (pavlix)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-24 15:49 UTC by Patrick Monnerat
Modified: 2016-07-13 14:26 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-13 14:26:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Patrick Monnerat 2016-02-24 15:49:31 UTC
Description of problem:
The IKE replies have their source IP set according to the connection interface, even if the gateway address is bound to another interface.

Version-Release number of selected component (if applicable):
strongswan-5.3.2-2.fc23.x86_64

How reproducible:
Always


Steps to Reproduce:
1. Set an IP address (x.x.x.x) on eth0 for real traffic.
2. Set a gateway IP address (y.y.y.y) on eth1, configure and add a tunnel using it.
3. On an external machine (with ip z.z.z.z), set a route to gateway IP address via the eth0 IP address and configure the other end of the tunnel.
4. Monitor the traffic with wireshark.
5. Start the tunnel from the external machine. 

Actual results:
The initial request: z.z.z.z --> y.y.y.y
The strongswan reply: x.x.x.x --> z.z.z.z

The reply source address puzzles the initiator :-(

Expected results:
The strongswan reply: y.y.y.y --> z.z.z.z


Additional info:
This seems to be https://wiki.strongswan.org/issues/1171. The upstream commit https://wiki.strongswan.org/projects/strongswan/repository/revisions/47e113a63905305fdb7eee8304a5eb1adcb216d4/diff?format=diff fixes this issue for me.

Comment 1 Pavel Šimerda (pavlix) 2016-07-13 14:26:59 UTC
Strongswan has recently been updated to 5.4.0 in Fedora.


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