> session->peername = strdup("localhost");
> session->remote_port = 31111;
> 
> and opened a snmp session with
> 
> snmp_open(session);

Is this a client-side management application, or the agent?

It feels like client-side code, and would set up an SNMP session
structure to use the UDP transport.  This doesn't actually open a
connection to the remote destination - UDP doesn't work that way.

This information is simply held internal to the application, ready
for when it needs to send a request.  It won't affect the actual
network configuration of the underlying system.  So it wouldn't
show up in the output of netstat.


> netstat is not showing this with "Foreign Address" as "0.0.0.0:*".
> But I don't want to open it for all.

I'm not convinced that entry is actually relevant to your application.
Certainly not if it's client-side app.

If this is an agent, then you'll have to restrict access in a
different way (e.g. using 'libwrap' or kernel-level firewall setup).

Dave




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to