OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: opncovfefe on August 11, 2024, 07:53:17 AM

Title: Unable to login using webgui in version 24.7
Post by: opncovfefe on August 11, 2024, 07:53:17 AM
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.
Title: Re: Unable to login using webgui in version 24.7
Post by: Patrick M. Hausen on August 11, 2024, 10:09:59 AM
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?
Title: Re: Unable to login using webgui in version 24.7
Post by: meyergru on August 11, 2024, 10:10:40 AM
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.
Title: Re: Unable to login using webgui in version 24.7
Post by: opncovfefe on August 11, 2024, 11:07:44 AM
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. 
Title: Re: Unable to login using webgui in version 24.7
Post by: franco on August 11, 2024, 08:52:06 PM
In the end it's always the keyboard mapping mismatching.


Cheers,
Franco
Title: Re: Unable to login using webgui in version 24.7
Post by: opncovfefe on August 19, 2024, 10:51:22 AM
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
Title: Re: Unable to login using webgui in version 24.7
Post by: cookiemonster on August 19, 2024, 01:15:35 PM
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.
Title: Re: Unable to login using webgui in version 24.7
Post by: opncovfefe on August 20, 2024, 05:47:08 AM
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. 
Title: Re: Unable to login using webgui in version 24.7
Post by: cookiemonster on August 20, 2024, 10:01:28 AM
Well, I was not expecting something like that.
Thanks for sharing.