YubiKey on Synology

  • DNS Benchmark v2 is Finished and Available!
    Guest:
    That's right. It took an entire year, but the result far more accurate and feature laden than we originally planned. The world now has a universal, multi-protocol, super-accurate, DNS resolver performance-measuring tool. This major second version is not free. But the deal is, purchase it once for $9.95 and you own it — and it's entire future — without ever being asked to pay anything more. For an overview list of features and more, please see The DNS Benchmark page at GRC. If you decide to make it your own, thanks in advance. It's a piece of work I'm proud to offer for sale. And if you should have any questions, many of the people who have been using and testing it throughout the past year often hang out here.
    /Steve.
  • Be sure to checkout “Tips & Tricks”
    Dear Guest Visitor → Once you register and log-in please checkout the “Tips & Tricks” page for some very handy tips!

    /Steve.
  • BootAble – FreeDOS boot testing freeware

    To obtain direct, low-level access to a system's mass storage drives, SpinRite runs under a GRC-customized version of FreeDOS which has been modified to add compatibility with all file systems. In order to run SpinRite it must first be possible to boot FreeDOS.

    GRC's “BootAble” freeware allows anyone to easily create BIOS-bootable media in order to workout and confirm the details of getting a machine to boot FreeDOS through a BIOS. Once the means of doing that has been determined, the media created by SpinRite can be booted and run in the same way.

    The participants here, who have taken the time to share their knowledge and experience, their successes and some frustrations with booting their computers into FreeDOS, have created a valuable knowledgebase which will benefit everyone who follows.

    You may click on the image to the right to obtain your own copy of BootAble. Then use the knowledge and experience documented here to boot your computer(s) into FreeDOS. And please do not hesitate to ask questions – nowhere else can better answers be found.

    (You may permanently close this reminder with the 'X' in the upper right.)

AlCar

New member
Jan 13, 2024
1
0
I just set up a Synology server and used a YubiKey for 2FA. If I login through the domain using DDNS, everything works perfectly. If I attempt to login through the local IP on the network I can not log in with the hardware key. Does anyone know why this is? Do hardware keys always need to be associated with a domain or is this something specific to Synology?
 
Yubikeys can work in a number of modes. (They're like a platform with different modules that get permanently loaded into the key, but can change over time as new keys get manufactured.) The Yubikey initial mode, when they first came to market, had them working like a keyboard and typing in the 2FA code into the field when the button was pressed. For that mode to work, it required access to the Internet for the server, because the server needed to contact Yubikey's server to verify the code. I presume you're not using this mode, but if you are, then it could be possible that the needed access to the Yubikey server would be blocked?

More likely you're using another mode, the same one that is used for PassKeys. In this case your Synology should be keeping a public key that corresponds to the private key securely stored in the Yubikey. In the FIDO2 spec, this was done using the "site" URL as part of the data stored, and so would need to match in order for the key/server to be willing to generate a verification code. Since you mentioned that you can log in through the domain, this domain is likely stored with the key data and that is your issue.

Can you associate more than one key with your account. i.e. Can you generate one with the domain and one without so that it can match in either case?