yogy

Members
  • Posts

    152
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by yogy

  1. 6 hours ago, ultimz said:

    Hi,

     

    Running the latest version of Vaultwarden and I enabled the push notifications as well. I am also using Nginx Proxy Manager to expose it (with just https and nothing on 3012)

     

    I can see from the logs that I am getting these errors:

     

    [2023-11-20 12:42:12.277][rocket::server][ERROR] Upgraded websocket I/O handler failed: WebSocket protocol error: Sending after closing is not allowed

     

    Is there something I need to configure on NPM or Vaultwarden?

    Maybe this can help

    • Like 1
  2. 19 hours ago, Stubbs said:

    How do you refresh the admin token? Mine isn't working and I cannot login as an admin.

     

    I tried using what was in the .json file in appdata, but it did not work.

    Is your token in plane text or hashed. If it's in plane text just replace with another, restart the container and it should work with a new one.

  3. Hmm, I'm out of options here. I would recommend to check also your DDNS settings. Try to install some other app (something simple like qbittorrent) with access to the internet, setup another CNAME in Cloudflare, add another host to NPM and test if the resault is the same as for vaultwarden (warden subdomain). If it's the same I would start with DDNS settings and also check the certificate.

  4. Here is a very quick guide how to use Argon2 hash for Vaultwarden. You can use different ways to enable access to admin page here but like I said, this is a very quick solution:

    1. Go to https://argon2.online/
    2. Enter a passphrase in Plain Text Input, click once on the Salt cogwheel and leave everything as default and click GENERATE HASH
    3. Go to Vaultwarden Admin's Page >> General Settings and replace your current admin token in plain text with the generated hash value ($argon2i$v=19$m=16,t=2,p=1$YnJvYm1vSD...........)
    4. Save and restart the vaultwarden container
    5. To login to admin's page you must use your plain text value, not the hash

     

    I hope you will find this very quick tutorial useful.

     

    • Thanks 5
  5. You can take a look for admin key in /mnt/user/appdata/vaultwarden/config.json. Use cat command in front of the path and you will see your admin token in plain text.

     

    Just FYI. Don't use admin page over the internet. Block it. It should only be accessible via your LAN.

     

    If you are using your own domain via Cloudflare, just take a look at my guide how to create Cloudflare tunnel (Zero Trust) for reverse proxy and how to secure your admin page via internet.

  6. On 6/15/2023 at 7:35 AM, craigr said:

     

    Crap I use both of these, and they are very important to me.  Especially fan control in IPMI.

     

    EDIT:  I see IPMI Tools and NUT were taken over by SimonFair.  That solves that :) !!!

     

    craigr

    Does it happen automaticaly or you need to unistall the previous one and install a new one from SimonF

  7. 10 hours ago, Stubbs said:

    How do you disable the admin interface on the nginx config? I want to be able to access it locally, but not over the internet.

     

    Also TOTP doesn't seem to be working for me, at least not with Aegis on Android.

    [2023-06-18 16:20:50.585][vaultwarden::api::core::two_factor::authenticator][ERROR] Invalid TOTP code! Server time: 2023-06-18 06:20:50 UTC IP: my.phone.ip.address

     

    What reverse proxy are you using?

  8. On 6/16/2023 at 6:00 PM, Gragorg said:

    I recently changed my domain name on Vaultwarden.  I logged into the admin panel and changed it in the "domain URL" box to the new one.  After is saved the settings and logged out I restarted vaultwarden but the WEBUI option on the docker still goes to the old domain.  I logged back into Vaultwarden and confirmed that the new domain was saved.  The new domain is working fine.

    Delete cookies and cache for this domain in your browser or try a different browser.

  9. I recently switched from Reverse Proxy Docker Container (NginxProxyManager - NPM) to Cloudflare's Zero Trust platform. You can find many tutorials online (YT) on how to do that, this is not the topic here. Please find bellow a short guide on

     

    HOW TO PROTECT VAULTWARDEN ADMIN'S PAGE (access via internet) WHEN USING CLOUDFLARE'S ZERO TRUST TUNNELS  

     

    If you enabled admin's page in Vaulwarden, you should (or already) know it shouldn't be exposed to the internet (only via local network).

     

    If you are still using NPM >> Edit (Vaulwarden Proxy Host) >> Advancend, and put the following line under Custom Nginx Configuration

    location /admin {
    		return 404;
    	}

     

    If you are using Cloudflare's Zero Trust platform (tunnels) instead, you can secure the Vaultwarden's admin page from being accessed over the internet with the following instructions:

    This will be a very simple policy rule, you can later tweak your settings as you choose and try it out

    1. In the Zero Trust Overview (https://one.dash.cloudflare.com/) under Access >> chose Applications

    2. Click on Add an application

    3. Select Self-hosted

    4. Tab - Configure App - Enter Application name (example: Vaulwarden_admin_access), subdomain (your actual subdomain for vaultwarden), domain (your root domain) and Path (enter: admin) and click Next

    6. Tab - Add Policies - Enter Policy name >> Action (Allow)

    7. Under Configure rules >> Include >> Selector choose Emails >> under Value enter the email address you own (have access to, but only you. You can put as many email addresses you want) and click Next.

    8. Tab - Setup - no need to configure anything, just click Add Aplication

    Now go to your admin's page over the internet (https://sub.domain.com/admin) and you will be presented with Cloudflare's Zero Trust (access) page where you first need to enter one of the authorised emails in step 7. When you receive a code to your mailbox, enter the code in the next page and now you have access to admin's page over the internet.

    You can add additional security layers in step 7 (Include >> Add Include or Add require or Add exlude

     

    I hope you will find this short tutorial useful. 

    • Like 1
    • Thanks 1
  10. On 12/23/2022 at 11:53 AM, Mattti1912 said:

    Hello again 

     

    I can access the docker through the cloudflare.. But the error is that i cant make the 2fa work. 

    and i get this error The error now is TOTP code .. And a ip error  IP: 172.19.0.1 ...  Anyone that know how to resolve this??

     

    thank you

    172.19.0.1 is probably your internal docker IP address. You can also try to restrict access in Cloudflare with Applications where you could add policies.