Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
king1688888888
V2EX  ›  Linux

请教如何在 Linux 下自定义配置 SNMP?

  •  
  •   king1688888888 · May 18, 2020 · 3319 views
    This topic created in 2191 days ago, the information mentioned may be changed or developed.
    我在 RHEL6 下安装了 snmp,使用 snmpv2c 版本,想做一些安全配置实现以下两个功能:

    1.只允许 192.168.168.12 访问
    2.只允许获取我指定的 OID ( CPU 的%US )

    配置如下:

    # cat /etc/snmp/snmpd.conf
    rocommunity test
    com2sec read 192.168.168.12 test
    group readgroup v2c read
    #CPU US%
    view systemview exclude .1.3.6.1.4.1.2021.11.9.0
    access readgroup "" any noauth exact systemview none none
    dontLogTCPWrappersConnects yes

    重启 snmpd 后,发现并未生效,其他 IP 用户依旧可以通过团体名访问其他 OID,请问应该如何正确配置?
    1 replies    2020-05-21 08:19:33 +08:00
    69444091
        1
    69444091  
       May 21, 2020
    使用防火墙 block 其他 IP 的 SNMP query?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5628 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 61ms · UTC 02:34 · PVG 10:34 · LAX 19:34 · JFK 22:34
    ♥ Do have faith in what you're doing.