Page MenuHomeVyOS Platform

SNMP does not listen to the specified address
Closed, InvalidPublicBUG

Description

SNMP does not listen to the specified address.

to configure:

community public {
    authorization ro
}
listen-address 0.0.0.0 {
    port 161
}
listen-address 192.168.0.1 {
    port 161
}
listen-address :: {
    port 161
}
v3 {
    engineid 0x0aa0d6c6f450
    group public {
        mode ro
        seclevel auth
        view public
    }
    user vyos {
        auth {
            plaintext-key jack960330
            type md5
        }
        mode ro
        privacy {
            plaintext-key jack960330
            type aes
        }
    }
    view public {
        oid 1 {
        }
    }
}

Network port condition:

tcp        0      0 127.0.0.1:199           0.0.0.0:*               LISTEN      4504/snmpd          
tcp        0      0 127.0.0.1:2601          0.0.0.0:*               LISTEN      891/zebra           
tcp        0      0 127.0.0.1:2602          0.0.0.0:*               LISTEN      909/ripd            
tcp        0      0 127.0.0.1:2604          0.0.0.0:*               LISTEN      919/ospfd           
tcp        0      0 127.0.0.1:2605          0.0.0.0:*               LISTEN      899/bgpd            
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      3082/nginx: master  
tcp        0      0 127.0.0.1:2611          0.0.0.0:*               LISTEN      955/pimd            
tcp        0      0 127.0.0.1:2612          0.0.0.0:*               LISTEN      972/ldpd            
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      2540/sshd           
tcp        0      0 127.0.0.1:2616          0.0.0.0:*               LISTEN      964/staticd         
tcp        0      0 127.0.0.1:2617          0.0.0.0:*               LISTEN      936/bfdd            
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      3082/nginx: master  
tcp        0      0 127.0.0.1:8000          0.0.0.0:*               LISTEN      3243/python3        
tcp6       0      0 ::1:2603                :::*                    LISTEN      913/ripngd          
tcp6       0      0 ::1:2606                :::*                    LISTEN      925/ospf6d          
tcp6       0      0 :::80                   :::*                    LISTEN      3082/nginx: master  
tcp6       0      0 :::22                   :::*                    LISTEN      2540/sshd           
tcp6       0      0 :::443                  :::*                    LISTEN      3082/nginx: master

Profile information:

### Autogenerated by snmp.py ###

# non configurable defaults
sysObjectID 1.3.6.1.4.1.44641
sysServices 14
master agentx
agentXPerms 0777 0777
pass .1.3.6.1.2.1.31.1.1.1.18 /opt/vyatta/sbin/if-mib-alias
smuxpeer .1.3.6.1.2.1.83
smuxpeer .1.3.6.1.2.1.157
smuxsocket localhost

# linkUp/Down configure the Event MIB tables to monitor
# the ifTable for network interfaces being taken up or down
# for making internal queries to retrieve any necessary information
iquerySecName vyos83d3c25af02b78db

# Modified from the default linkUpDownNotification
# to include more OIDs and poll more frequently
notificationEvent  linkUpTrap    linkUp   ifIndex ifDescr ifType ifAdminStatus ifOperStatus
notificationEvent  linkDownTrap  linkDown ifIndex ifDescr ifType ifAdminStatus ifOperStatus
monitor  -r 10 -e linkUpTrap   "Generate linkUp" ifOperStatus != 2
monitor  -r 10 -e linkDownTrap "Generate linkDown" ifOperStatus == 2

########################
# configurable section #
########################

# Default system description is VyOS version
sysDescr VyOS 1.3-rolling-202006270117



# Listen
agentaddress unix:/run/snmpd.socket,udp:192.168.0.1:161,udp:127.0.0.1:161,udp6:[::1]:161

# SNMP communities
rocommunity public
rocommunity6 public




# system location information
SysLocation HOME




#
# SNMPv3 stuff goes here
#
# views
view public included .1

# access
#             context sec.model sec.level match  read    write  notif
access public "" usm auth exact public none none

# trap-target

# group
group  usm vyos

Details

Difficulty level
Unknown (require assessment)
Version
1.3-rolling-202006270117
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

jack9603301 updated the task description. (Show Details)Tue, Jun 30, 4:29 AM

Sorry, I may have made a mistake. I've confused the order. If there's a problem, I'll reopen it.

jack9603301 closed this task as Invalid.Tue, Jun 30, 4:32 AM
pasik added a subscriber: pasik.Tue, Jun 30, 8:15 AM
c-po moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus board.Tue, Jul 7, 4:10 PM