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 1086925 - snmpd does not report error when clientaddr <ip>:<port> cannot bind to the specified port
Summary: snmpd does not report error when clientaddr <ip>:<port> cannot bind to the sp...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: net-snmp
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Jan Safranek
QA Contact: Dalibor Pospíšil
URL:
Whiteboard:
Depends On: 840861 886468 1877375
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-11 20:31 UTC by Dalibor Pospíšil
Modified: 2020-09-09 13:39 UTC (History)
4 users (show)

Fixed In Version: Snapshot 4
Doc Type: Bug Fix
Doc Text:
Cause: In one of the previous Net-SNMP updates we extended 'clientaddr' and 'clientaddrUsesPort' configuration options to allow system administrators to set specific port for outgoing SNMP requests. When this port number was not usable, for example it was already used, SNMP tools and daemons did not report any error and used random port for outgoing requests. Consequence: SNMP requests were sent from unexpected ports, while the system administrator did not know about it. Fix: Report an error that requested port cannot be used. Result: System admin knows that something is wrong.
Clone Of: 886468
Environment:
Last Closed: 2015-03-05 08:38:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0607 0 normal SHIPPED_LIVE net-snmp bug fix update 2015-03-05 13:37:15 UTC

Description Dalibor Pospíšil 2014-04-11 20:31:35 UTC
+++ This bug was initially created as a clone of Bug #886468 +++

+++ This bug was initially created as a clone of Bug #840861 +++

Description of problem:
Having following /etc/snmp/snmpd.conf file, if snmpd fails to bind the specified clientaddr port, it quietly uses random port instead. It should at least report some error to system log.

rocommunity public
[snmp] clientaddrUsesPort yes
[snmp] clientaddr 127.0.0.1:30000
trapsink localhost public

Version-Release number of selected component (if applicable):
net-snmp-5.7.2-18.el7

How reproducible:
always

Steps to Reproduce:
1. vi /etc/snmp/snmpd.conf
2. nc -ul localhost 30000 (or have SELinux in enforcing mode)
3. service snmpd start
  
Actual results:
- traps are sent from random port and not from port 30000, which is taken by 'nc'
- system log is empty

Expected results:
- system log should show an error

Comment 7 errata-xmlrpc 2015-03-05 08:38:26 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.

https://rhn.redhat.com/errata/RHBA-2015-0607.html


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