Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 201594

Summary: sshd does not create ipv4 listen socket for X11 forwarding
Product: Red Hat Enterprise Linux 4 Reporter: Stephen P. Schaefer <sschaefer>
Component: opensshAssignee: Tomas Mraz <tmraz>
Status: CLOSED ERRATA QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: sschaefer
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHSA-2007-0257 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-05-01 17:29:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stephen P. Schaefer 2006-08-07 18:55:56 UTC
Description of problem:
X11 forwarding doesn't function with IPv4 by default

Version-Release number of selected component (if applicable):
openssh-3.9p1-8.RHEL4.12

How reproducible:


Steps to Reproduce:
1. Make entries in /etc/ssh/sshd_config:
X11Forwarding yes
X11UseLocalhost no
2. restart sshd, e.g., sudo /etc/init.d/sshd restart
3. attempt to start an X client
  
Actual results:
Client gets "connection refused".  Netstat -tan shows

tcp        0      0 :::6010                     :::*                        LISTEN


Expected results:
Client get successful connection.  Netstat -tan shows

tcp        0      0 0.0.0.0:6010                0.0.0.0:*                   LISTEN


Additional info:

Successful workaround: in /etc/sysconfig/sshd, put

OPTIONS=-4

Comment 1 Tomas Mraz 2006-08-08 10:30:38 UTC
The problem is not with the :::6010 output but with the fact that sshd sets
incorrectly IPV6_V6ONLY socket option on the socket.


Comment 2 RHEL Program Management 2006-08-31 15:33:01 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 4 Tomas Mraz 2006-10-05 08:51:35 UTC
Fixed in openssh-3.9p1-8.RHEL4.18

Comment 8 Red Hat Bugzilla 2007-05-01 17:29:50 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 the 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/RHSA-2007-0257.html