I added some logging to ip6tables, but even though I see it dropping packets, it looks like they're going out. Packets dropped seem to have no relation to test traps sent.
Fair point, but it seemed like you were looking in /var/spool/snmptt/ and I know that sometimes enabling the writing to database will stop the trap from being put into the spool.
People keep asking about snmptt forcing me too discuss it.
IPv4 traps are logged as they're processed by snmptrapd, but IPv6 traps are not logged, which means to me that snmptrapd never gets IPv6 traps, or discards them w/o logging.
Now we see from looking at ip6tables, that it also doesn't log accepting or rejecting v6 traps. Actually, I think only rejections are logged...
You do not have the required permissions to view the files attached to this post.
Well given that sometimes snmpd and snmptt interact with each other so often, specifically config files, I don't really see the issue with serving up the config files just to be ruled out- if nothing else.
I think you're right about the rejections only being logged. You did compile the net-snmp suite when you installed it on this system? I noticed a --ipv6 enable flag for the compile. I don't think I ever had to do that when setting it up but it's an option.
What doesn't make sense is that I've used the net-snmp suite installed via yum with ipv6 at least twice and it works with both v4 and v6 traps.
Lastly, I found a stackoverflow post that had something you might try. Make a separate community for ipv6 in snmpd.conf and give it proper access then send your test trap. The intention here is to have something like this:
agentAddress udp:161,udp6:161
rocommunity6 public default
Snmpd isn't in use while snmptrapd is. The config for snmptrapd is in the options line of /etc/sysconfig/snmptrapd.
I compiled, but didn't install a newer version of net-snmp recently to test. Running it from the commandline produced the same results as we see now. v4 traps are logged, v6 are not.
Installing a newer version isn't likely to help it's been the same for a decent amount of time. Maybe you can just lab this in a new machine, compile fresh using the same version and see if you can get it working using the different options for the snmpd config. This really sounds like a configuration issue you are having with something on your system.
Just out of curiosity, can you run these commands?
cat /etc/snmp/snmptrapd.conf
cat /etc/sysconfig/snmptrapd