Bug 481733 - missing routing for ipsec in tunnel mode when tunneled network is on vlan interface (wrong device initialization sequence)
Summary: missing routing for ipsec in tunnel mode when tunneled network is on vlan int...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: initscripts
Version: 5.2
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: initscripts Maintenance Team
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-01-27 12:54 UTC by Lukasz Engel
Modified: 2009-09-02 11:14 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-02 11:14:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
patch for this issue (2.27 KB, patch)
2009-01-27 16:16 UTC, Bill Nottingham
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:1344 0 normal SHIPPED_LIVE initscripts bug fix update 2009-09-01 10:44:36 UTC

Description Lukasz Engel 2009-01-27 12:54:13 UTC
Description of problem:

Network startup script (/etc/init.d/network) brings up ipsec tunnels before vlan (802.1Q) interfaces.
While starting ipsec tunnel startup script fails to add route handling traffic between tunneled networks because tunneled network is not configured yet.

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

initscripts-8.45.19.1.EL-1

Steps to reproducible:

0. network is stopped

1. configure WAN interface (ifcfg-eth0)
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
IPADDR=10.1.1.2
NETMASK=255.255.255.0
GATEWAY=10.1.1.1
TYPE=Ethernet

2. configure LAN interface on VLAN device (ifcfg-eth1.1)
DEVICE=eth1.1
ONBOOT=yes
BOOTPROTO=none
TYPE=Ethernet
IPADDR=10.10.1.1
NETMASK=255.255.255.0
VLAN=yes
TYPE=Ethernet

3. configure IPSEC in tunnel mode (ifcfg-ipsec0)
TYPE=IPSEC
ONBOOT=yes
IKE_METHOD=PSK
AH_PROTO=none
ESP_PROTO=aes
SRC=10.1.1.10
DST=10.1.1.1
SRCNET=10.10.1.0/24
DSTNET=10.20.1.0/24

4. start network 
/etc/init.d/network start

Actual results:

#ip route
10.1.1.0/24 dev eth0  proto kernel  scope link  src 10.1.1.2
10.10.1.0/24 dev eth1.1  proto kernel  scope link  src 10.10.1.1
default via 10.1.1.1 dev eth0

(routing to 10.20.1.0/24) is missing

Expected results:

#ip route
10.20.1.0/24 via 10.10.1.1 dev eth1.1 src 10.10.1.1
10.1.1.0/24 dev eth0  proto kernel  scope link  src 10.1.1.2
10.10.1.0/24 dev eth1.1  proto kernel  scope link  src 10.10.1.1
default via 10.1.1.1 dev eth0

Comment 1 Bill Nottingham 2009-01-27 16:16:30 UTC
Created attachment 330107 [details]
patch for this issue

Does the atttached work for you?

Comment 2 Lukasz Engel 2009-01-27 16:31:29 UTC
yes, patch seems to correct the problem

Comment 4 Fedora Update System 2009-04-02 18:04:40 UTC
initscripts-8.86.1-1 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/initscripts-8.86.1-1

Comment 5 Fedora Update System 2009-04-03 04:16:21 UTC
initscripts-8.86.2-1 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/initscripts-8.86.2-1

Comment 6 Fedora Update System 2009-04-22 20:22:50 UTC
initscripts-8.86.3-1 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Harald Hoyer 2009-05-05 12:52:26 UTC
Please test the erratum candidate:
http://people.redhat.com/harald/downloads/initscripts/initscripts-8.45.26.1.el5/

Comment 8 Lukasz Engel 2009-05-05 13:13:45 UTC
looks/works ok

Comment 12 errata-xmlrpc 2009-09-02 11:14:33 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-1344.html


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