# SNMP to a separate server

**URL:** <https://community.ipfire.org/t/snmp-to-a-separate-server/14572>\
**Category:** Monitoring\
**Created:** [30 August 2025 15:30 UTC](https://community.ipfire.org/t/snmp-to-a-separate-server/14572 "2025-08-30T15:30:54Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![sec-con](https://community.ipfire.org/user_avatar/community.ipfire.org/sec-con/32/16669_2.png) [@sec-con](https://community.ipfire.org/u/sec-con)\
**Post date:** [30 August 2025 15:30 UTC](https://community.ipfire.org/t/snmp-to-a-separate-server/14572/1 "2025-08-30T15:30:54Z")

</div>

So I have been exploring how to monitor SNMP from IPFire server to my separate Netdata instance.

snmp running and confed on IPFire:

- install this: [www.ipfire.org - Net-SNMP](https://www.ipfire.org/docs/addons/net-snmp)

Write stuff in the conf file ( and here I am TRULY just guessing)

- My Netdata is on 192.168.10.15
- My group is called homered-conram

That is all I know in advance

conf file:

```auto
########################################
# homered-conram added aug 30 2025

####
# First, map the community name (COMMUNITY) into a security name
# (local and mynetwork, depending on where the request is coming
# from):

# sec.name source community
com2sec local localhost public
com2sec localnet 192.168.10.0/24 homered-conram

####
# Second, map the security names into group names:

# sec.model sec.name
group MyRWGroup	v1 local
group MyRWGroup	v2c local
group MyRWGroup	usm local
group MyROGroup v1 mynetwork
group MyROGroup v2c mynetwork
group MyROGroup usm mynetwork
group localgroup v1 localnet
group localgroup v2c localnet

####
# Third, create a view for us to let the groups have rights to:

# incl/excl subtree mask
view all included .1 80
view all included .1

####
# Finally, grant the 2 groups access to the 1 view with different
# write permissions:

# context sec.model sec.level match read write notif
access MyROGroup "" any noauth exact all none none
access MyRWGroup "" any noauth exact all all none
access localgroup "" any noauth exact all none none

```

dunno if to remove the other groups or what

In any case my Netdata files sems ok, I have defined that thing in it, and while I do not expect you guys to be experts in Netdata, you are in IPFire.

```auto
IPFire is not responding running the command
snmpwalk -v2c -c homered-conram 192.168.10.1

```

I get no errors in Netdata, but it does not seem to present any data from IPFire, nor is IPFire selectable anywhere.

All seems just werd and uber complex, in other interfaces you seem to be able to enable smtp and name your group and it works.

---

<div class="post-metadata">

**Author:** ![sec-con](https://community.ipfire.org/user_avatar/community.ipfire.org/sec-con/32/16669_2.png) [@sec-con](https://community.ipfire.org/u/sec-con)\
**Post date:** [30 August 2025 15:55 UTC](https://community.ipfire.org/t/snmp-to-a-separate-server/14572/2 "2025-08-30T15:55:47Z")

</div>

Oh and the netdata conf is supposed to be this

`/usr/lib/netdata/conf.d/go.d/snmp.conf`:

```auto
jobs:
  - name: ipfire
    address: 192.168.10.1
    community: homered-conram
    version: 2
    update_every: 60
    modules: [system, interfaces]

```

---

<div class="post-metadata">

**Author:** ![alexand](https://community.ipfire.org/user_avatar/community.ipfire.org/alexand/32/16579_2.png) [@alexand](https://community.ipfire.org/u/alexand)\
**Post date:** [30 August 2025 17:00 UTC](https://community.ipfire.org/t/snmp-to-a-separate-server/14572/3 "2025-08-30T17:00:35Z")

</div>

> [@sec-con](#):
>
> In any case my Netdata files sems ok, I have defined that thing in it, and while I do not expect you guys to be experts in Netdata, you are in IPFire.
> 
> ```auto
> IPFire is not responding running the command
> snmpwalk -v2c -c homered-conram 192.168.10.1
> 
> ```
> 
> I get no errors in Netdata, but it does not seem to present any data from IPFire, nor is IPFire selectable anywhere.
> 
> All seems just werd and uber complex, in other interfaces you seem to be able to enable smtp and name your group and it works.

Is there a rule on IpFire that allows this communication?

---

<div class="post-metadata">

**Author:** ![sec-con](https://community.ipfire.org/user_avatar/community.ipfire.org/sec-con/32/16669_2.png) [@sec-con](https://community.ipfire.org/u/sec-con)\
**Post date:** [30 August 2025 17:08 UTC](https://community.ipfire.org/t/snmp-to-a-separate-server/14572/4 "2025-08-30T17:08:44Z")

</div>

Yes there is… I forgot.

 ![image](https://community.ipfire.org/uploads/default/original/2X/e/ea5c2b102d384c55819926f043ad053833594b48.png)

I am not sure if placing it as 1 may affect something, still figuring out rule priorities as I go, but that open the Netdata IP to Green network at port UDP 161 according to info I looked up.

---

<div class="post-metadata">

**Author:** ![alexand](https://community.ipfire.org/user_avatar/community.ipfire.org/alexand/32/16579_2.png) [@alexand](https://community.ipfire.org/u/alexand)\
**Post date:** [30 August 2025 17:17 UTC](https://community.ipfire.org/t/snmp-to-a-separate-server/14572/5 "2025-08-30T17:17:06Z")

</div>

Is this rule as Incoming Firewall Access?

---

<div class="post-metadata">

**Author:** ![sec-con](https://community.ipfire.org/user_avatar/community.ipfire.org/sec-con/32/16669_2.png) [@sec-con](https://community.ipfire.org/u/sec-con)\
**Post date:** [30 August 2025 19:38 UTC](https://community.ipfire.org/t/snmp-to-a-separate-server/14572/6 "2025-08-30T19:38:46Z")

</div>

Don’t think so, I choose standard network

 ![image](https://community.ipfire.org/uploads/default/original/2X/8/876d333ac42d6e9b351a0dfdc39665fb25716717.png)

Netdata is the system getting the info so I assumed Netdata is the source, pulling data from IPFire, but maybe SNMP works both ways.

---

<div class="post-metadata">

**Author:** ![alexand](https://community.ipfire.org/user_avatar/community.ipfire.org/alexand/32/16579_2.png) [@alexand](https://community.ipfire.org/u/alexand)\
**Post date:** [30 August 2025 20:26 UTC](https://community.ipfire.org/t/snmp-to-a-separate-server/14572/7 "2025-08-30T20:26:44Z")

</div>

The communication is directed to the firewall, the rule should be allowed to the firewall

---

<div class="post-metadata">

**Author:** ![sec-con](https://community.ipfire.org/user_avatar/community.ipfire.org/sec-con/32/16669_2.png) [@sec-con](https://community.ipfire.org/u/sec-con)\
**Post date:** [30 August 2025 20:44 UTC](https://community.ipfire.org/t/snmp-to-a-separate-server/14572/8 "2025-08-30T20:44:07Z")

</div>

I will look in to that, and what about that conf file and its contents?

---

<div class="post-metadata">

**Author:** ![sec-con](https://community.ipfire.org/user_avatar/community.ipfire.org/sec-con/32/16669_2.png) [@sec-con](https://community.ipfire.org/u/sec-con)\
**Post date:** [31 August 2025 07:23 UTC](https://community.ipfire.org/t/snmp-to-a-separate-server/14572/9 "2025-08-31T07:23:37Z")

</div>

Whatever else I choose in Destination:

 ![image](https://community.ipfire.org/uploads/default/original/2X/6/6225398d8791129cfb0c7ab6a6eaaa3d5fe5d8f8.png)

it shows as blocked when applied

 ![image](https://community.ipfire.org/uploads/default/original/2X/a/afefa85d44eb7c1761b83f5b1bb1d369051bb789.png)

---

<div class="post-metadata">

**Author:** ![sec-con](https://community.ipfire.org/user_avatar/community.ipfire.org/sec-con/32/16669_2.png) [@sec-con](https://community.ipfire.org/u/sec-con)\
**Post date:** [31 August 2025 07:38 UTC](https://community.ipfire.org/t/snmp-to-a-separate-server/14572/10 "2025-08-31T07:38:54Z")

</div>

> [@sec-con](#):
>
> `snmpwalk -v2c -c homered-conram 192.168.10.1`

This is more interesting

I got tcpdump and analyzing the transmit

```javascript
[root@surtveggur ~]# tcpdump -i green0 udp port 161tcpdump: verbose output suppressed, use -v[v]… for full protocol decodelistening on green0, link-type EN10MB (Ethernet), snapshot length 262144 bytes09:32:25.908441 IP 192.168.10.15.57428 > surtveggur.homered.conram.it.snmp: C=“homered-conram” GetNextRequest(25)09:32:26.909383 IP 192.168.10.15.57428 > surtveggur.homered.conram.it.snmp: C=“homered-conram” GetNextRequest(25)09:32:27.910536 IP 192.168.10.15.57428 > surtveggur.homered.conram.it.snmp: C=“homered-conram” GetNextRequest(25)09:32:28.911582 IP 192.168.10.15.57428 > surtveggur.homered.conram.it.snmp: C=“homered-conram” GetNextRequest(25)09:32:29.912734 IP 192.168.10.15.57428 > surtveggur.homered.conram.it.snmp: C=“homered-conram” GetNextRequest(25)09:32:30.913782 IP 192.168.10.15.57428 > surtveggur.homered.conram.it.snmp: C=“homered-conram” GetNextRequest(25)

```

so the data request is getting there but IPFire is not responding, leading towards the uber complex config file.

According to the docs it should have

```javascript
com2sec localnet 192.168.10.15 homered-conramgroup localgroup v2c localnetview all included .1access localgroup “” any noauth exact all none none

```

and according to other docs it should have  
`rocommunity homered-conram 192.168.10.15`

Which is it…?

Also verified with nmap from Netdata server

> root@s-proxmox-a:~# nmap -sU -p 161 192.168.10.1  
> Starting Nmap 7.95 ( [https://nmap.org](https://nmap.org) ) at 2025-08-31 09:55 CEST  
> Nmap scan report for surtveggur.homered.conram.it (192.168.10.1)  
> Host is up (0.00052s latency).
> 
> PORT STATE SERVICE  
> 161/udp open snmp  
> MAC Address: AC:1F:6B:80:27:E8 (Super Micro Computer)
> 
> Nmap done: 1 IP address (1 host up) scanned in 0.27 seconds

This is getting ludicrous

---

<div class="post-metadata">

**Author:** ![sec-con](https://community.ipfire.org/user_avatar/community.ipfire.org/sec-con/32/16669_2.png) [@sec-con](https://community.ipfire.org/u/sec-con)\
**Post date:** [31 August 2025 08:11 UTC](https://community.ipfire.org/t/snmp-to-a-separate-server/14572/11 "2025-08-31T08:11:08Z")

</div>

I think I cracked it

By using these lines, and making a new conf file with all the rest of its content gone:

```auto
# Allow Netdata on 192.168.10.15 to query SNMP using v2c and community “homered-conram”com2sec netdata 192.168.10.15 homered-conramgroup netgroup v2c netdataview all included .1access netgroup “” any noauth exact all none nonerocommunity homered-conram 192.168.10.15

```

on IPFire:

> /etc/rc.d/init.d/netsnmpd restart

on Netdata:

> snmpwalk -v2c -c homered-conram 192.168.10.1

generated loads of response

Need to review once more and see it it actuiall arrives but looks good do far.

Oh, and the FW Destination rule is NOT to Firewall… it is to Standard Netwrok Green … works

---

<div class="post-metadata">

**Author:** ![alexand](https://community.ipfire.org/user_avatar/community.ipfire.org/alexand/32/16579_2.png) [@alexand](https://community.ipfire.org/u/alexand)\
**Post date:** [31 August 2025 08:18 UTC](https://community.ipfire.org/t/snmp-to-a-separate-server/14572/12 "2025-08-31T08:18:23Z")

</div>

The rule should allow access to the firewall, not the green network

---

<div class="post-metadata">

**Author:** ![sec-con](https://community.ipfire.org/user_avatar/community.ipfire.org/sec-con/32/16669_2.png) [@sec-con](https://community.ipfire.org/u/sec-con)\
**Post date:** [31 August 2025 08:38 UTC](https://community.ipfire.org/t/snmp-to-a-separate-server/14572/13 "2025-08-31T08:38:39Z")

</div>

Maybe, let me check again.

Right now I have data collection listening and working via port 161 with FW Destination Standard Network Green.

Changed that again, FW Destination Firewall: Green and from what I can see… (I have yet to see IPFire in the Netdata interface), the snmp collection does seem to work, despite the fw rule stating Policy blocked.

I restarted the Netdata module several times and it still collected, so I guess there is more ways to skin this cat, but only one way to do it right.

---

<div class="post-metadata">

**Author:** ![sec-con](https://community.ipfire.org/user_avatar/community.ipfire.org/sec-con/32/16669_2.png) [@sec-con](https://community.ipfire.org/u/sec-con)\
**Post date:** [31 August 2025 08:44 UTC](https://community.ipfire.org/t/snmp-to-a-separate-server/14572/14 "2025-08-31T08:44:31Z")

</div>

never mind

all this work for nothing

 ![image](https://community.ipfire.org/uploads/default/original/2X/4/46779d016061034778da2914b12836669ef87bc1.png)

From that it seems it is part of the paid plan.

I am scrapping Netdata.

---

<div class="post-metadata">

**Author:** ![alexand](https://community.ipfire.org/user_avatar/community.ipfire.org/alexand/32/16579_2.png) [@alexand](https://community.ipfire.org/u/alexand)\
**Post date:** [31 August 2025 08:51 UTC](https://community.ipfire.org/t/snmp-to-a-separate-server/14572/15 "2025-08-31T08:51:25Z")

</div>

I think the rule works, try blocking it for a while to check.

---

<div class="post-metadata">

**Author:** ![sec-con](https://community.ipfire.org/user_avatar/community.ipfire.org/sec-con/32/16669_2.png) [@sec-con](https://community.ipfire.org/u/sec-con)\
**Post date:** [31 August 2025 08:59 UTC](https://community.ipfire.org/t/snmp-to-a-separate-server/14572/16 "2025-08-31T08:59:21Z")

</div>

Not going this way with Netdata… already deleted and cleaned out the system

---

<div class="post-metadata">

**Author:** ![otadr](https://community.ipfire.org/user_avatar/community.ipfire.org/otadr/32/14719_2.png) [@otadr](https://community.ipfire.org/u/otadr)\
**Post date:** [2 September 2025 07:09 UTC](https://community.ipfire.org/t/snmp-to-a-separate-server/14572/17 "2025-09-02T07:09:59Z")

</div>

SNMP = ipfire and CACTI work for me local green

 ![Snímek obrazovky pořízený 2025-09-02 09-06-40](https://community.ipfire.org/uploads/default/original/2X/a/a0329bc1a505cd7fbebc182fbb743c35d2813a55.png)

---

<div class="post-metadata">

**Author:** ![sec-con](https://community.ipfire.org/user_avatar/community.ipfire.org/sec-con/32/16669_2.png) [@sec-con](https://community.ipfire.org/u/sec-con)\
**Post date:** [2 September 2025 10:33 UTC](https://community.ipfire.org/t/snmp-to-a-separate-server/14572/18 "2025-09-02T10:33:27Z")

</div>

Well, placing Netdat on a separate sever (inside a Proxmox Node Server in my case) is because I want it to monitor all my machines on the network, not just IPFire, even if IPFire is more important than, say, my virtual test machines.

As it is I might look at Cacti, but I am leaning towards LibreNMS or Zabbix but I have to look them up a bit.

---

<div class="post-metadata">

**Author:** ![sec-con](https://community.ipfire.org/user_avatar/community.ipfire.org/sec-con/32/16669_2.png) [@sec-con](https://community.ipfire.org/u/sec-con)\
**Post date:** [4 September 2025 06:29 UTC](https://community.ipfire.org/t/snmp-to-a-separate-server/14572/19 "2025-09-04T06:29:25Z")

</div>

Keeping the same configuration in IPFire SNMP I have now launched a LibreNMS setup and while extremely tedious to setup and configure, in my opinion, it also worked pulling machine data…

Further adjustments needed.

 ![image](https://community.ipfire.org/uploads/default/original/2X/0/08889aef33a700dfeb3c6d147e8c6916b5582efa.png)
