Added WG Easy to BigBearCasaOS

About

You have found the easiest way to install & manage WireGuard on any Linux host!

  • All-in-one: WireGuard + Web UI.
  • Easy installation, simple to use.
  • List, create, edit, delete, enable & disable clients.
  • Show a client’s QR code.
  • Download a client’s configuration file.
  • Statistics for which clients are connected.
  • Tx/Rx charts for each connected client.
  • Gravatar support.

App Store

Documentation

Generate a password like this:

docker run --rm -it ghcr.io/wg-easy/wg-easy wgpw 'YOUR_PASSWORD'

More info: wg-easy/How_to_generate_an_bcrypt_hash.md at master · wg-easy/wg-easy · GitHub

Hello, this package is not working anymore.

image

Hello, thank you for letting me know. I submitted a pull request and it should be merged soon to fix this.

Update: it’s merged

I keep getting Unauthorized after running sudo docker run --rm -it Package wg-easy · GitHub wgpw ‘YOUR_PASSWORD’ (replacing YOUR_PASSWORD with what I wanted) I have tried resetting the container and even resetting casaos yet cannot log into the UI

2 Likes

I tried generating a hashed password before installation using the following command:

sudo docker run --rm -it ghcr.io/wg-easy/wg-easy wgpw 'YOUR_PASSWORD'

I obtained the hash, but I still can’t log in.
What is the default password?
How should I log in?

go here Bcrypt Hash Generator and replace the password than work you own password

go to the settings of the dockerimage on the home screen via the three dots and check if the value of the environment variable matches with your new hash, if it doesn’t just replace it

1 Like

thanks
I later found out why, the default “YOUR_PASSWORD” can’t be used, even if you follow the steps correctly

hi @hunandy14
I am so sorry You wait too long for answer in such great open SW.
This is medium level setup If You do not know where problem is sitting.

Definitely install process must be better described. I also spend times to found solution for that.

This is Your main problem:
sudo docker run --rm

rm: It runs new docker temporally container, inside You change password and this hash goes to Your output. Temporally container is destroyed, so You change nothing.

I have working setup wg-easy v14 and currently casaOS propose v15, but there is bug in configuration, so v15 cannot be installed & run from store.

Select wg-easy in casasOS store, select Uninstall and enable checkbox: remove data.

connect console/ssh/termnal to Your Host.
sudo docker images | grep easy
if there is latest and/or v15, delete them all:

sudo docker image rm idLatest
sudo docker image rm idV15

(where idLatest a idV15 are IMAGE ID)

Now You are ready for working install setup:

select wg-easy in casaOS store, do not click on install button, just mouse hover arrow and select custom install:

Instead version 15 choose 14 and setup Your public ip address (replace [YOUR_PUBLIC_IP]). It can be domain name. Install container. When You click on button install in my case just mouse whell is revealing and nothing done- install dialog remains on screen. Ha! Close it by X. And wait 5-15 seconds and new app: WG-EASY will shows.

After install, run this command on Host:

sudo docker ps | grep wg-easy
You get ID of Your new container.

Now run command for truly change password:
sudo docker exec -it e89e1d4e6415 wgpw 'YOUR_PASSWORD'

This hash of changed password setup in casaOS webUI.
DONE

Remember, there is currently reported bug which may also be usefull to know:

Developer of this docker image is not big bear. And documentation of these steps are here linked by popup dialog during install. Another people found solution here.