Accidentally borked my Web UI?

Started by maxxell, December 10, 2024, 10:48:41 PM

Previous topic - Next topic
December 10, 2024, 10:48:41 PM Last Edit: December 10, 2024, 11:49:52 PM by maxxell
Hello All!

I was trying to set up a self-hosted Bitwarden instance, but seem to have royally screwed myself. 

The troubles started when I realized that Bitwarden wanted to use port 80, which is part of the anti-lockout.  So I figured out how to point Bitwarden at port 85.  All well and good.  I set up the port forwarding to the correct local IP with port 85.  All good.  Installing Bitwarden went fine, including setting up with my xxxx.duckdns.org.

Except when I went to have Bitwarden connect to my local instance, it failed.  When I visit xxxx.duckdns.org, I saw my opsense login page, which rejects my login creds.  When I visit the local 192.168.7.209 (the ip for the device on which i installed bitwarden), I somehow also get my opnsense login page.  Which is strange because my opnsense is on 192.168.4.20. 

While messing around with the settings in the Web UI, I toggled it to http.  That didn't help, so I toggled it back.  ... and now nothing works!  I cant access my opnsense login at all!  http://192.168.4.20 just times out.  https://192.168.4.20 also just times out (http vs https).  If I try from a different local device, it still just times out.  I even tried enabling my wireguard to go to 192.168.4.20 - and the connection works but still no WebUI. 

I also tried connecting by ssh, but with port 22 I just get "Connection timed out"

Is there anything else I can do to restore access?

EDIT:
STRANGE!  If I use my cell phone, and use the duckduckgo browser, I can get to 192.168.4.20 and log in!  First things, first... i'm grabbing screenshots of the important settings I would struggle to recreate if this all falls apart.  After that, what should I try changing to restore this webui access for my pc as well?

Edit2:
Through cell phone I was able to copy/paste my entire IP assignments table into an email.  That's the vast majority of what I would hate to lose. 
I was also able to export a backup configuration.  If I burned down my current device and restored, what are the odds my webui would come back?   Or did I bork some setting and that settings going to be coming back from the restore too?

Edit3:
I saw some forum posts with suggestions on how to fix similar problems through ssh.  However, I dont seem to be able to enable ssh.  I can get to the Settings / Administration page on my cell phone, and I can enable the "Enable Secure Shell" setting, hit Save.  All seems fine.  But still if I try to ssh into 192.168.4.20 I consistently get "Connection timed out"  Why cant I access over ssh?

Edit 4:
Other laptops can access Opnsense.  WTF. 
If I use this laptop to visit 192.168.4.20, I get a timeout error.  If I try to visit 192.168.7.209:85 (bitwarden address), I get thrown to xxxx.duckdns.org and get an error about the network change being detected.

Anyone know what's going on here?