Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2140101

Summary: ncat does not work with --proxy
Product: Red Hat Enterprise Linux 9 Reporter: Ali Erdinc Koroglu <aekoroglu>
Component: nmapAssignee: Martin Osvald 🛹 <mosvald>
Status: CLOSED ERRATA QA Contact: František Hrdina <fhrdina>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: CentOS StreamCC: bstinson, fhrdina, jwboyer, rmetrich
Target Milestone: rcKeywords: AutoVerified, Regression, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: nmap-7.91-11.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-09 07:48:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ali Erdinc Koroglu 2022-11-04 13:13:35 UTC
Description of problem:
ncat does not work with --proxy


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


How reproducible:


Steps to Reproduce:
1. Create a test socks5 proxy or connect via a socks5 proxy
2. Run: ncat -v --proxy-type socks5 --proxy proxy-dmz.intel.com:1080 github.com 22


Actual results:
[root@c9s ~]# ncat -v --proxy-type socks5 --proxy proxy-dmz.intel.com:1080 github.com 22
Ncat: Version 7.91 ( https://nmap.org/ncat )
Ncat: Connected to proxy 10.217.247.236:1080
Ncat: No authentication needed.
Ncat: Host github.com will be resolved by the proxy.
Ncat: connection succeeded.
Ncat: 0 bytes sent, 0 bytes received in 0.24 seconds. 


Expected results:
[root@c9s ~]# ncat -v --proxy-type socks5 --proxy proxy-dmz.intel.com:1080 github.com 22
Ncat: Version 7.91 ( https://nmap.org/ncat )
Ncat: Connected to proxy 10.217.247.236:1080
Ncat: No authentication needed.
Ncat: Host github.com will be resolved by the proxy.
Ncat: connection succeeded.
SSH-2.0-babeld-d975cc25


Additional info:
Spec url : https://download.copr.fedorainfracloud.org/results/aekoroglu/centos-stream-9/centos-stream-9-x86_64/05010839-nmap/nmap.spec
SRPM url : https://download.copr.fedorainfracloud.org/results/aekoroglu/centos-stream-9/centos-stream-9-x86_64/05010839-nmap/nmap-7.91-11.el9.src.rpm
Patch : https://github.com/nmap/nmap/commit/169d7e5a922ef8e63b51ee2bdf4fd4ad60ed2689.patch

Comment 3 Martin Osvald 🛹 2022-11-25 16:03:05 UTC
Thank you for reporting this issue!

There was some problem with the pipeline regarding your PR and it couldn't be restarted so I went ahead and created a new PR, which is now merged.

Comment 16 Martin Osvald 🛹 2023-01-12 12:35:34 UTC
*** Bug 2160434 has been marked as a duplicate of this bug. ***

Comment 19 errata-xmlrpc 2023-05-09 07:48:18 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 (nmap bug fix and enhancement update), and where to find the updated
files, follow the link below.

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

https://access.redhat.com/errata/RHBA-2023:2352