Discussion:
[PacketFence-users] SNMPv3 on Cisco 3560 without K9(crypto)
r***@telecom-bretagne.eu
2012-05-10 10:27:46 UTC
Permalink
According to the admin guide and this mail :
http://www.mail-archive.com/packetfence-***@lists.sourceforge.net/msg00661.html
I try to make SNMPv3 work, but I dont have crypto on my Cisco 3560...
So I try this :

On PacketFence:

[IP of switch]
type=Cisco::Catalyst_3560
mode=production
vlans=10,20,30
normalVlan=10
registrationVlan=20
isolationVlan=30

SNMPVersion=3
SNMPEngineID = XXXXXXXXXXX (obtain with "show snmp engineid")
SNMPUserNameRead=readUser
SNMPAuthProtocolRead=MD5
SNMPAuthPasswordRead=authpwdread
SNMPPrivProtocolRead=
SNMPPrivPasswordRead=
SNMPUserNameWrite=writeUser
SNMPAuthProtocolWrite=MD5
SNMPAuthPasswordWrite=authpwdwrite
SNMPPrivProtocolWrite=
SNMPPrivPasswordWrite=
SNMPVersionTrap=3
SNMPAuthProtocolTrap=MD5
SNMPAuthPasswordTrap=authpwdread
SNMPPrivProtocolTrap=
SNMPPrivPasswordTrap=


Cisco 3560 config (ios : c3560-ipbase-mz.122-50.SE5.bin):
service encryption
snmp-server group readGroup v3 auth
snmp-server group writeGroup v3 auth read v1default write v1default
snmp-server user readUser readGroup v3 auth md5 authpwdread
snmp-server user writeUser writeGroup v3 auth md5 authpwdwrite
snmp-server enable traps port-security
snmp-server enable traps port-security trap-rate 1
snmp-server host "IP my PF Server" version 3 auth readUser port-security


show snmp user's command :
User name: readUser
Engine ID: XXXXXXXXXXXXXXXXXXX
storage-type: nonvolatile active
Authentication Protocol: MD5
Group-name: readGroup

User name: writeUser
Engine ID: XXXXXXXXXXXXXXXXXXX
storage-type: nonvolatile active
Authentication Protocol: MD5
Group-name: writeGroup

and show run command :
snmp-server group readGroup v3 auth notify
*tv.00000000.00000000.00000000.000002000F
snmp-server group writeGroup v3 auth write v1default
snmp-server enable traps port-security
snmp-server enable traps port-security trap-rate 1
snmp-server host "IP of PF" version 3 auth readUser port-security

When I am restarting PackteFence I have some warning about
switches.conf and this line :
Use of uninitialized value in concatenation (.) or string at
/usr/local/pf/lib/pf/services/snmptrapd.pm line 92.
Use of uninitialized value in concatenation (.) or string at
/usr/local/pf/lib/pf/services/snmptrapd.pm line 92.
Use of uninitialized value in concatenation (.) or string at
/usr/local/pf/lib/pf/services/snmptrapd.pm line 92.
Use of uninitialized value in concatenation (.) or string at
/usr/local/pf/lib/pf/services/snmptrapd.pm line 92.

So can I use SNMPv3 without AES or DES ?
Olivier Bilodeau
2012-05-10 12:36:59 UTC
Permalink
Post by r***@telecom-bretagne.eu
I try to make SNMPv3 work, but I dont have crypto on my Cisco 3560...
[IP of switch]
type=Cisco::Catalyst_3560
mode=production
vlans=10,20,30
normalVlan=10
registrationVlan=20
isolationVlan=30
SNMPVersion=3
SNMPEngineID = XXXXXXXXXXX (obtain with "show snmp engineid")
SNMPUserNameRead=readUser
SNMPAuthProtocolRead=MD5
SNMPAuthPasswordRead=authpwdread
SNMPPrivProtocolRead=
SNMPPrivPasswordRead=
SNMPUserNameWrite=writeUser
SNMPAuthProtocolWrite=MD5
SNMPAuthPasswordWrite=authpwdwrite
SNMPPrivProtocolWrite=
SNMPPrivPasswordWrite=
SNMPVersionTrap=3
SNMPAuthProtocolTrap=MD5
SNMPAuthPasswordTrap=authpwdread
SNMPPrivProtocolTrap=
SNMPPrivPasswordTrap=
service encryption
snmp-server group readGroup v3 auth
snmp-server group writeGroup v3 auth read v1default write v1default
snmp-server user readUser readGroup v3 auth md5 authpwdread
snmp-server user writeUser writeGroup v3 auth md5 authpwdwrite
snmp-server enable traps port-security
snmp-server enable traps port-security trap-rate 1
snmp-server host "IP my PF Server" version 3 auth readUser port-security
User name: readUser
Engine ID: XXXXXXXXXXXXXXXXXXX
storage-type: nonvolatile active
Authentication Protocol: MD5
Group-name: readGroup
User name: writeUser
Engine ID: XXXXXXXXXXXXXXXXXXX
storage-type: nonvolatile active
Authentication Protocol: MD5
Group-name: writeGroup
snmp-server group readGroup v3 auth notify
*tv.00000000.00000000.00000000.000002000F
snmp-server group writeGroup v3 auth write v1default
snmp-server enable traps port-security
snmp-server enable traps port-security trap-rate 1
snmp-server host "IP of PF" version 3 auth readUser port-security
When I am restarting PackteFence I have some warning about
Use of uninitialized value in concatenation (.) or string at
/usr/local/pf/lib/pf/services/snmptrapd.pm line 92.
Use of uninitialized value in concatenation (.) or string at
/usr/local/pf/lib/pf/services/snmptrapd.pm line 92.
Use of uninitialized value in concatenation (.) or string at
/usr/local/pf/lib/pf/services/snmptrapd.pm line 92.
Use of uninitialized value in concatenation (.) or string at
/usr/local/pf/lib/pf/services/snmptrapd.pm line 92.
So can I use SNMPv3 without AES or DES ?
I don't think we support SNMPv3 without priv or auth. The 'uninitialized
value' are definitely coming from your empty SNMPv3 Priv parameters in
conf/switches.conf.

You are sure that this switch doesn't support DES or 3DES?

Without Priv I see no reason to go with SNMPv3 and I would advise to
switch to v2c for this switch type.

If you absolutely need SNMPv3 even if not secure, then open a feature
ticket on http://packetfence.org/bugs and we'll try to add a support for
it. It shouldn't be too hard.
--
Olivier Bilodeau
***@inverse.ca :: +1.514.447.4918 *115 :: www.inverse.ca
Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence
(www.packetfence.org)
Olivier Bilodeau
2012-05-10 12:37:16 UTC
Permalink
Post by r***@telecom-bretagne.eu
I try to make SNMPv3 work, but I dont have crypto on my Cisco 3560...
[IP of switch]
type=Cisco::Catalyst_3560
mode=production
vlans=10,20,30
normalVlan=10
registrationVlan=20
isolationVlan=30
SNMPVersion=3
SNMPEngineID = XXXXXXXXXXX (obtain with "show snmp engineid")
SNMPUserNameRead=readUser
SNMPAuthProtocolRead=MD5
SNMPAuthPasswordRead=authpwdread
SNMPPrivProtocolRead=
SNMPPrivPasswordRead=
SNMPUserNameWrite=writeUser
SNMPAuthProtocolWrite=MD5
SNMPAuthPasswordWrite=authpwdwrite
SNMPPrivProtocolWrite=
SNMPPrivPasswordWrite=
SNMPVersionTrap=3
SNMPAuthProtocolTrap=MD5
SNMPAuthPasswordTrap=authpwdread
SNMPPrivProtocolTrap=
SNMPPrivPasswordTrap=
service encryption
snmp-server group readGroup v3 auth
snmp-server group writeGroup v3 auth read v1default write v1default
snmp-server user readUser readGroup v3 auth md5 authpwdread
snmp-server user writeUser writeGroup v3 auth md5 authpwdwrite
snmp-server enable traps port-security
snmp-server enable traps port-security trap-rate 1
snmp-server host "IP my PF Server" version 3 auth readUser port-security
User name: readUser
Engine ID: XXXXXXXXXXXXXXXXXXX
storage-type: nonvolatile active
Authentication Protocol: MD5
Group-name: readGroup
User name: writeUser
Engine ID: XXXXXXXXXXXXXXXXXXX
storage-type: nonvolatile active
Authentication Protocol: MD5
Group-name: writeGroup
snmp-server group readGroup v3 auth notify
*tv.00000000.00000000.00000000.000002000F
snmp-server group writeGroup v3 auth write v1default
snmp-server enable traps port-security
snmp-server enable traps port-security trap-rate 1
snmp-server host "IP of PF" version 3 auth readUser port-security
When I am restarting PackteFence I have some warning about
Use of uninitialized value in concatenation (.) or string at
/usr/local/pf/lib/pf/services/snmptrapd.pm line 92.
Use of uninitialized value in concatenation (.) or string at
/usr/local/pf/lib/pf/services/snmptrapd.pm line 92.
Use of uninitialized value in concatenation (.) or string at
/usr/local/pf/lib/pf/services/snmptrapd.pm line 92.
Use of uninitialized value in concatenation (.) or string at
/usr/local/pf/lib/pf/services/snmptrapd.pm line 92.
So can I use SNMPv3 without AES or DES ?
I don't think we support SNMPv3 without priv or auth. The 'uninitialized
value' are definitely coming from your empty SNMPv3 Priv parameters in
conf/switches.conf.

You are sure that this switch doesn't support DES or 3DES?

Without Priv I see no reason to go with SNMPv3 and I would advise to
switch to v2c for this switch type.

If you absolutely need SNMPv3 even if not secure, then open a feature
ticket on http://packetfence.org/bugs and we'll try to add a support for
it. It shouldn't be too hard.
--
Olivier Bilodeau
***@inverse.ca :: +1.514.447.4918 *115 :: www.inverse.ca
Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence
(www.packetfence.org)
r***@telecom-bretagne.eu
2012-05-10 15:29:10 UTC
Permalink
Post by Olivier Bilodeau
Post by r***@telecom-bretagne.eu
I try to make SNMPv3 work, but I dont have crypto on my Cisco 3560...
[IP of switch]
type=Cisco::Catalyst_3560
mode=production
vlans=10,20,30
normalVlan=10
registrationVlan=20
isolationVlan=30
SNMPVersion=3
SNMPEngineID = XXXXXXXXXXX (obtain with "show snmp engineid")
SNMPUserNameRead=readUser
SNMPAuthProtocolRead=MD5
SNMPAuthPasswordRead=authpwdread
SNMPPrivProtocolRead=
SNMPPrivPasswordRead=
SNMPUserNameWrite=writeUser
SNMPAuthProtocolWrite=MD5
SNMPAuthPasswordWrite=authpwdwrite
SNMPPrivProtocolWrite=
SNMPPrivPasswordWrite=
SNMPVersionTrap=3
SNMPAuthProtocolTrap=MD5
SNMPAuthPasswordTrap=authpwdread
SNMPPrivProtocolTrap=
SNMPPrivPasswordTrap=
service encryption
snmp-server group readGroup v3 auth
snmp-server group writeGroup v3 auth read v1default write v1default
snmp-server user readUser readGroup v3 auth md5 authpwdread
snmp-server user writeUser writeGroup v3 auth md5 authpwdwrite
snmp-server enable traps port-security
snmp-server enable traps port-security trap-rate 1
snmp-server host "IP my PF Server" version 3 auth readUser port-security
User name: readUser
Engine ID: XXXXXXXXXXXXXXXXXXX
storage-type: nonvolatile active
Authentication Protocol: MD5
Group-name: readGroup
User name: writeUser
Engine ID: XXXXXXXXXXXXXXXXXXX
storage-type: nonvolatile active
Authentication Protocol: MD5
Group-name: writeGroup
snmp-server group readGroup v3 auth notify
*tv.00000000.00000000.00000000.000002000F
snmp-server group writeGroup v3 auth write v1default
snmp-server enable traps port-security
snmp-server enable traps port-security trap-rate 1
snmp-server host "IP of PF" version 3 auth readUser port-security
When I am restarting PackteFence I have some warning about
Use of uninitialized value in concatenation (.) or string at
/usr/local/pf/lib/pf/services/snmptrapd.pm line 92.
Use of uninitialized value in concatenation (.) or string at
/usr/local/pf/lib/pf/services/snmptrapd.pm line 92.
Use of uninitialized value in concatenation (.) or string at
/usr/local/pf/lib/pf/services/snmptrapd.pm line 92.
Use of uninitialized value in concatenation (.) or string at
/usr/local/pf/lib/pf/services/snmptrapd.pm line 92.
So can I use SNMPv3 without AES or DES ?
I don't think we support SNMPv3 without priv or auth. The 'uninitialized
value' are definitely coming from your empty SNMPv3 Priv parameters in
conf/switches.conf.
You are sure that this switch doesn't support DES or 3DES?
Without Priv I see no reason to go with SNMPv3 and I would advise to
switch to v2c for this switch type.
If you absolutely need SNMPv3 even if not secure, then open a feature
ticket on http://packetfence.org/bugs and we'll try to add a support for
it. It shouldn't be too hard.
--
Olivier Bilodeau
Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence
(www.packetfence.org)
Ok, thanks.

I just want SNMPv3 for authentication, not for encryption of SNMP packets.
Loading...