Accept SNMP Packets...

 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications Infrastructure Monitoring Accept SNMP Packets...
# 1  
Old 11-11-2010
Accept SNMP Packets...

hi guys

I've configured snmp on some linux

snmpd.conf
Code:
rocommunity  com_read  x.x.x.10
rwcommunity  com_write x.x.x.10

Now one of my coworkers asked to do the same that he does on windows for my linux....

But I have no idea how to configure that basically when SNMP is configure there is a tab that says

Accept SNMP packets from these hosts
localhost
x.x.x.217
x.x.x.218

since we don't want this window to accept SNMP from any host

so my question how can I configure this on my linux hosts to accept SNMP packets from specific hosts.
Thanks a lot
I attached the SNMP Win Conf (snmp windows.doc)
# 2  
Old 11-12-2010
any idea

any idea guys?

I was thinking maybe using hosts.allow/deny

but I am not sure how to use it

hosts.allow
snmpd: 192.168.1.2 192.168.1.3

basically I want any kind of connection to my server but SNMP only 6 servers

how should I ply with hosts.deny/allow or SNMP to do this?
# 3  
Old 11-12-2010
Are you using Net-SNMP? You can try something like:

Code:
rocommunity SOME_NAME
<...>
com2sec some_user  localhost       SOME_NAME
com2sec some_user  x.x.x.217       SOME_NAME
com2sec some_user  x.x.x.218       SOME_NAME

This User Gave Thanks to verdepollo For This Post:
# 4  
Old 11-12-2010
Quote:
Originally Posted by verdepollo
Are you using Net-SNMP? You can try something like:

Code:
rocommunity SOME_NAME
<...>
com2sec some_user  localhost       SOME_NAME
com2sec some_user  x.x.x.217       SOME_NAME
com2sec some_user  x.x.x.218       SOME_NAME

is com2sec a static variable to define my 6 hosts?
some_user: What would be?
SOME_NAME: any name specifying?

sorry too many questions
# 5  
Old 11-13-2010
hi again

by the way I have to configure this SNMP stuff on a firewall that is part of a SNMP project
so they want to allow only some hosts to send SNMP packets a across this Linux firewall

Since I still don't get how to do it on SNMP like in Windows

I was thinking using hosts.allow and deny like this

Code:
hosts.allow
snmpd : 192.168.2.1 192.168.2.2 192.168.2.3 


hosts.deny
snmpd : ALL

but I read this
# Never configure TCP Wrappers on firewall host.
# Put TCP Wrappers behind a firewall systems as TCP Wrappers is no substitute for netfilter or pf firewall.

on
Explain Linux / UNIX TCP Wrappers / Find Out If Program Compiled With TCP Wrappers


so any guidance on SNMP way?
thanks a lot
# 6  
Old 11-13-2010
SNMP has its own protocol, both for data inquiry and security.
In POSIX unix there are several files to control all of this. Net-SNMP, although I've never used it, has ways to implement all of this stuff.

By default SNMP uses UDP on port 161. You can create a 'community', with clearly defined access levels.

Instead of this forum, read the Orielly Book
Essential SNMP - O'Reilly Media

SNMP protocol is a product of DARPA (US dept of defense). This means it verges on idiotic as it was conceived by bureaucrats. And a meaningful undertstanding of what you are asking is way beyond the scope of a forum.

Example: the answer to each of your questions varies by version of SNMP - 1, 2, or 3.

Wait til you read about MIB files. There is a whole book just on the mib2c utility.
My Solaris conf files for snmp (and there can be more than one) are huge, and are maintained by special scripts.

There is no simple shortcut to all of this stuff. Sorry. Without the right background it is easy to mess things up. IMO.
This User Gave Thanks to jim mcnamara For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Need to transfer all kernel logs (var/log/messages) to the snmp listener as snmp trap

i am working with embedded system -Dell DCS management sub system. my question is as below: currently we are using linux kernel 2.6.30 build and we have a kernel logs stored to the /var/log/messages path. now we have to transfer all this logs to the specified SNMP target as a part of SNMP... (4 Replies)
Discussion started by: vipul_prajapati
4 Replies

2. Infrastructure Monitoring

SNMP traps to SNMP server

Dear Champs, I am new to unix, and need to configure linux server to send below traps to a SNMP server. Monitoring TRAP Disk Space Low Monitoring TRAP Memory Low Monitoring TRAP CPU high Monitoring TRAP Admin login/Logoff Please help me how to send this information to my SNMP server... (2 Replies)
Discussion started by: stavar
2 Replies

3. IP Networking

SNMP Problem - SNMP not getting to the agent.

I am having a problem with an SNMP event, and I am not sure where I should be looking to solve this problem. Description: There is an SNMP event in our system that for one reason or another is not getting sent out as an email because it is never getting to our SNMP agent. I see where the... (0 Replies)
Discussion started by: broberts
0 Replies

4. Red Hat

Sending data from DELL OMSA SNMP and Custom SNMP MIB to same UDP port 161

Hi , Currently DELL OMSA SNMP sends data through default udp port 161.I want my custom SNMP MIB also to send data in the same udp port 161.Whether its possible.If yes where to configure .I tried starting my custom MIB in udp port 161,but it throws port already in use.Kindly guide. (1 Reply)
Discussion started by: prabakar4all
1 Replies

5. IP Networking

Sending data from DELL OMSA SNMP and Custom SNMP MIB to same UDP port 161

Hi , Currently DELL OMSA SNMP sends data through default udp port 161.I want my custom SNMP MIB also to send data in the same udp port 161.Whether its possible.If yes where to configure .I tried starting my custom MIB in udp port 161,but it throws port already in use.Kindly guide. (0 Replies)
Discussion started by: prabakar4all
0 Replies

6. HP-UX

packets statistics

Hi there, are there any functions that can get the packets statistics on UNIX ? thanks. (2 Replies)
Discussion started by: Frank2004
2 Replies

7. Infrastructure Monitoring

capture snmp packets in AIX

Hi, I want to capture snmp packets in AIX. When i give print from AIX6.1, Printer will give its response thru' snmp. I used iptrace command like below, but it is not capturing snmp packets other packets are captured like udp, tcp.. 1. iptrace command: /usr/sbin/iptrace -a -i en0... (1 Reply)
Discussion started by: meeraramanathan
1 Replies

8. IP Networking

counting the packets

there are a number of clients connected to a server.... how can i count that each clients recieve ...? how do i moniter the activity of the client..? (2 Replies)
Discussion started by: damn_bkb
2 Replies

9. Programming

Packets Getting Lost

I am working on a project, which has the following type of hardware setup. A special hardware device is receiving data from an external network interface. So we can have multiple such a hardware devices. Now these hardware devices will route the captured incoming data through the external... (4 Replies)
Discussion started by: S.P.Prasad
4 Replies

10. UNIX for Dummies Questions & Answers

sending packets

How can i send a packet, and what is an empty packet? (8 Replies)
Discussion started by: Avatar0fEvil
8 Replies
Login or Register to Ask a Question