Bug 753713 - Routing table sorted incorrectly
Summary: Routing table sorted incorrectly
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: openvpn
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Steven Pritchard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-14 09:26 UTC by Harald Milz
Modified: 2011-11-14 12:19 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-14 12:19:42 UTC
Type: ---


Attachments (Terms of Use)

Description Harald Milz 2011-11-14 09:26:22 UTC
Description of problem: I am trying to connect to the Red Hat VPN from a customer site using openvpn, where the http proxy is at a 10.96.0.0/16 address. Since the RH openvpn configuration routes 10.0.0.0/8 to the Red Hat internal network, at the moment the tunnel is created the machine does not find the http proxy any more, stopping the openvpn connection. On RHEL6 CSB, I can ask openvpn to set a route to the http proxy. On Fedora, the routing table is sorted strangely, and the default route sits on top instead of at the bottom. IIRC the routing table should always be sorted specific to default, not vice versa, but here it is. 

openvpn invocation: 

        ROUTER=10.97.3.254
        ROUTER=$(netstat -rn| grep ^0.0.0.0 | awk '{ print $2 }')
        openvpn --config $CONFIG --http-proxy www-proxy.customer.com 8080 \
                --route 10.97.0.0 255.255.0.0 $ROUTER


resulting routing table: 


0.0.0.0         10.97.3.254     0.0.0.0         UG    0      0        0 em1
10.0.0.0        10.3.112.1      255.0.0.0       UG    0      0        0 redhat0
10.3.112.0      0.0.0.0         255.255.255.0   U     0      0        0 redhat0
10.97.0.0       10.97.3.254     255.255.0.0     UG    0      0        0 em1
10.97.3.0       0.0.0.0         255.255.255.0   U     1      0        0 em1
172.16.0.0      10.3.112.1      255.255.0.0     UG    0      0        0 redhat0



Version-Release number of selected component (if applicable):
openvpn-2.1.4-1.fc15.x86_64
kernel-2.6.40.6-0.fc15.x86_64

How reproducible:
always. 

Steps to Reproduce:
1. connect to customer's 10.97.3.0/24 network
2. start openvpn 
3. 
  
Actual results:

see above

Expected results:

the route to 10.97.0.0 should sit above 10.0.0.0 and the default route, as in RHEL 6. 

Additional info:


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