-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Go snmp server#20 #21
Conversation
…he datatype being a uint8
Also works with SHA256/AES256, to test this: * ensure you have compiled net-snmp to support more advanced hash/cipher ``` $snmpwalk -h 2>&1 | grep "\-x\|\-a" -a PROTOCOL set authentication protocol (MD5|SHA|SHA-224|SHA-256|SHA-384|SHA-512) -x PROTOCOL set privacy protocol (DES|AES|AES-192|AES-256) `` * modify `gosnmpserver/main.go` and run it: ``` AuthenticationProtocol: gosnmp.SHA256, PrivacyProtocol: gosnmp.AES256, ``` * access the server with: ``` snmpwalk -v 3 -l authPriv -n public -u testuser -a SHA-256 -A testauth -x AES-256 -X testpriv -L e 127.0.0.1:1161 1 ```
sure~ |
I am doing some tests and found that both the |
I had some time this morning to look into this, below is a stand alone program that runs the server for the test. Here is what I found:
|
Tracking @slayercat if you could look at |
Thank you for your investigation. I apologize for the delayed response during this time due to personal matters. I believe that as the upstream gosnmp library improves, the set issues can gradually be resolved. Additionally, some set operations lack use cases and packet captures, so I tend to ignore TestGetSetOids/SNMPSet. On the other hand, in the previous commit (tag v0.4), the tests for TestGetSetOids/SNMPWalk were successful. Therefore, while this could possibly be caused by an existing issue, I would like to investigate to ensure that no other problems have been introduced. I would greatly appreciate it if you could assist in the investigation. I expect to return to normal responsiveness by October 8th. |
@slayercat the issue is isolated to the |
The issue is that |
Ok so far the outstanding times to get these tests working are all in
|
Ok I have everything working on GoSNMPServer's side with just that additional change to hand IP Addresses. I have the rest of the items above working locally for |
Ok all needed changes are in gosnmp/gosnmp#452 . If/When that is accepted all tests will pass. |
Thanks~ Merged. |
Fixed #20 working with
gosnmp/gosnmp
mainlineAlso works with SHA256/AES256, to test this:
gosnmpserver/main.go
and run it:$snmpwalk -v 3 -l authPriv -n public -u testuser -a SHA-256 -A testauth -x AES-256 -X testpriv-L e 127.0.0.1:1161 1