Just did a brand new install of OPNSense 24.7.
I can use the username "root" and my new password to log into console but can't log into webgui. It keept saying unknown username or password. The password had special characters (~!@#$%^&*) so removed them all and only used alphanumeric characters. Now I can log into both console and webgui.
What characters are allowed for the password so it works in both console and webgui? It will be disappointing if we can't use special characters.
My guess is it's your local browser or OS combining accent keys with regular letters, e.g. that caret/circumflex: ^
Have you tried typing the password in the username field to watch what happens?
Just a guess: You do not use an english keyboard layout, do you? Maybe you did not notice that the special characters where all wrong, because in password entry fields, they are being masked. "Dead" keys like accents are a problem, too.
That is why I always use a "safe set" of characters for initial setup (i.e. when there is no web interface) and change that later on. For german keyboards, you can use A-X,a-x,0-9 and ".", in case a special character is mandatory. The locations of those characters are the same on german/english keyboards.
I selected the default keyboard layout for English or whatever is for USA. The OS is windows 10, and i use firefox but also tried on Edge with the same result. The password didn't have the ^ character. Haven't figured out which special character actually caused this.
In the end it's always the keyboard mapping mismatching.
Cheers,
Franco
You are correct but not sure if it's a keyboard mapping.
I can't type any special character in the console. If I press Shift + 4, it supposed to print '$' but I only see number 4. My original password was Test$Test$$ but at the password prompt, it is Test4Test44 which I couldn't see. Obviously the password Test$Test$$ won't work in gui because the actual password is Test4Test44
OPNSense is running inside a Proxmox VM. I'm not sure if proxmox has anything to do with it. For now the password is a long alphanumeric passphrase. I would like to add some special characters for extra security. Is there any fix for this? Thanks
Quote from: opncovfefe on August 19, 2024, 10:51:22 AM
OPNSense is running inside a Proxmox VM. I'm not sure if proxmox has anything to do with it.
Yes it does. What is your physical keyboard layout, and what is set in Proxmox's: Datacenter|Options|Keyboard Layout please? And the layout inside the VM.
Found the fix for my issue. It has to do with the Firefox I'm using and possibly in Edge too. I had to disable the "privacy.resistFingerprinting" config in firefox and now I can type special characters in the console. Thanks for your help.
Well, I was not expecting something like that.
Thanks for sharing.