Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
18.1 Legacy Series
»
[SOLVED] 2 Factor authentication
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] 2 Factor authentication (Read 6797 times)
bstech-user
Newbie
Posts: 3
Karma: 0
[SOLVED] 2 Factor authentication
«
on:
July 17, 2018, 12:31:32 am »
I tried to setup google authentication so that I can use the 2 Factor Auth on my opnsense setup and change to no-fallback. Now I can't login to the router and am not getting the 2FA option to enter a pin code. Is there a way to disable this from the console? Thanks
«
Last Edit: July 18, 2018, 11:51:52 pm by franco
»
Logged
bartjsmit
Hero Member
Posts: 2014
Karma: 194
Re: 2 Factor authentication
«
Reply #1 on:
July 17, 2018, 08:25:55 am »
From the console use option 13 to return the firewall to a state before you locked yourself out.
Bart...
Logged
bstech-user
Newbie
Posts: 3
Karma: 0
Re: 2 Factor authentication
«
Reply #2 on:
July 17, 2018, 01:02:57 pm »
Thanks bart... for your response but it seems I am locked out of the console as well. Is there a way to restore that?
Sent from my iPhone using Tapatalk
Logged
marjohn56
Hero Member
Posts: 1701
Karma: 179
Re: 2 Factor authentication
«
Reply #3 on:
July 17, 2018, 02:53:28 pm »
You might try logging in as a single user and recovering an older config before you changed the passwords etc. So login as a single user:
Allow write operation.
# /sbin/mount -u /
Change to the config dir
# cd /conf
rename the existing config.xml
#mv config.xml config.old
change to the backup directory.
# cd backup
find an older config
# ls -ltcr
copy the file name so you can paste it in the next bit.
make that file the current config.xml
# mv selected_backup.xml /conf/config.xml
reboot the system.
Logged
OPNsense 24.7
-
Qotom Q355G4
- ISP -
Squirrel 1Gbps
.
Team Rebellion Member
- If we've helped you remember to applaud
bstech-user
Newbie
Posts: 3
Karma: 0
Re: 2 Factor authentication
«
Reply #4 on:
July 18, 2018, 12:37:54 am »
Thank you both. The steps provided worked nicely.
Sent from my iPhone using Tapatalk
Logged
Evil_Sense
Full Member
Posts: 112
Karma: 15
Re: [SOLVED] 2 Factor authentication
«
Reply #5 on:
July 28, 2018, 10:16:52 pm »
Just a hint: the pin code has to be entered in the password field (either prepended or appended, depending on the choosen setting), there's no dedicated pin code field
.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
18.1 Legacy Series
»
[SOLVED] 2 Factor authentication