IP address is not passed to libwrap with net-snmp 5.3.2

Tsurutani Naoki <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

On my FreeBSD/i386 6-STABLE, after updating net-snmp from 5.3.1 to 5.3.2,
libwrap refuses snmp access from localhost.
libwrap claims "access from [0.0.0.0] is not granted".
0.0.0.0 ?  -- this address is also shown in the log file of snmpd;
Previously, access from localhost is recorded as
	Connection from UDP: [127.0.0.1]:52331
and after update to 5.3.2,
	Connection from UDP: [0.0.0.0]->[127.0.0.1]:-13205 REFUSED

After rewriting "hosts.allow" to allow snmpd from any host,
"REFUSED" is not recorded and accesses are granted.
The access from another host(10.226.65.116) is recorded as
Connection from UDP: [0.0.0.0]->[10.226.65.116]:-12046
The origin and the target addresses are not correct, as I think.

In addition, the port number recorded is wrong in both case.

Currently, the address [0.0.0.0] is checked via agent/snmp_agent.c,
and libwrap refuses this address.
I expect "[127.0.0.1]->[127.0.0.1]:52331" from localhost
and "[10.226.65.116]->[10.226.65.120]:xxxx" from the other host.

I think this is concerning with patch #1775124.

---
Tsurutani Naoki
[email protected]

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.