frr icon indicating copy to clipboard operation
frr copied to clipboard

nhrp: add `cisco-authentication` password support

Open volodymyrhuti opened this issue 1 year ago • 6 comments

Implemented:

  • handling 8 char long password, aka Cisco style.
  • minimal error inidication routine
  • test case, password change affects connection

Implemented in the context - https://vyos.dev/T2326

volodymyrhuti avatar Nov 13 '23 20:11 volodymyrhuti

general remark: apply 'git clang-format HEAD^' and squash the proposed changes.

pguibert6WIND avatar Nov 14 '23 07:11 pguibert6WIND

@louberger can you take a look at this?

donaldsharp avatar Nov 15 '23 18:11 donaldsharp

The latest update:

  • addressed the PR comments
  • fixed styling with clang-format
  • added a short doc for the password config

The internal testing by my team has shown issues when connecting with Cisco Spoke; keep PR as a draft until addressed

volodymyrhuti avatar Nov 22 '23 21:11 volodymyrhuti

@ton31337 @pguibert6WIND is anything else needed to tmerge this PR ?

fett0 avatar Feb 15 '24 12:02 fett0

It won't be reviewed until it's marked as a draft.

ton31337 avatar Feb 15 '24 12:02 ton31337

@volodymyrhuti I also have an interest in seeing this committed. I tested your PR against a Cisco router as spoke and found/fixed a few issues. (see attached file). Wireshark is still complaining. I'm wondering if its because the packet causing the error indication does not include the extensions when copying the packet that caused the indication. Wireshark just recursively parses the included original packet, so the checksum and length would be incorrect.

Issues I found/fixed:

  1. FRR would accept messages from a spoke without authentication when FRR NHRP had auth configured.
  2. The error indication was not being sent in network byte order
  3. the debug print in nhrp_connection_authorized was not correctly printing the received password
  4. the addresses portion of the mandatory part of the error indication were invalid on the wire (confirmed in wireshark)

Happy to discuss, let me know if you have any questions.

auth.txt

dleroy avatar May 23 '24 17:05 dleroy

I have coordinated with @volodymyrhuti and he has agreed to let me carry this work forward. I am closing this PR and taking up the work in https://github.com/FRRouting/frr/pull/16172

dleroy avatar Jun 05 '24 21:06 dleroy

Replaced by https://github.com/FRRouting/frr/pull/16172

Jafaral avatar Jun 05 '24 21:06 Jafaral