Bug 703473

Summary: Protocol ports does not work if hostname is given instead of ipaddress with Openswan
Product: Red Hat Enterprise Linux 6 Reporter: Avesh Agarwal <avagarwa>
Component: openswanAssignee: Avesh Agarwal <avagarwa>
Status: CLOSED ERRATA QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: high Docs Contact:
Priority: urgent    
Version: 6.1CC: amarecek, ebenes, iboverma, jwest, sgrubb
Target Milestone: rcKeywords: Reopened, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openswan-2.6.32-5.el6 Doc Type: Bug Fix
Doc Text:
Openswan did not handle protocol and port (leftprotoport) configuration correctly if the hostname parameter was configured instead of the ipaddress parameter using Openswan. This update solves this issue, and Openswan now correctly sets up policies with the correct protocol and port even when the hostname parameter is configured.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 19:05:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 712112    

Description Avesh Agarwal 2011-05-10 13:16:13 UTC
Description of problem:
Porotocol ports does not work if hostname is given instead of ipaddress with Openswan. When ports are configured using leftprotoport in a connection configuration.


Version-Release number of selected component (if applicable):
2.6.32-4.el6

How reproducible:
Always

Steps to Reproduce:
1. configure 
left=abc.xyz.com #(instead of ip address)
leftprotoport=tcp/21
2. established connection
3. check output of "ip xfrm policy" and ports are not shown, and they dont work. 
  
Actual results:
protocol ports does not work with hostname too.

Expected results:
protocol ports should work with hostname too.

Additional info:

Comment 4 Martin Prpič 2011-07-13 19:42:00 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Openswan did not handle protocol and port (leftprotoport) configuration correctly if the hostname parameter was configured instead of the ipaddress parameter using Openswan. This update solves this issue, and Openswan now correctly sets up policies with the correct protocol and port even when the hostname parameter is configured.

Comment 8 errata-xmlrpc 2011-12-06 19:05:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1761.html