Bug 753713

Summary: Routing table sorted incorrectly
Product: [Fedora] Fedora Reporter: Harald Milz <hmilz>
Component: openvpnAssignee: Steven Pritchard <steve>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: gwync, huzaifas, psabata, steve
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-14 12:19:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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: