Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My Wireguard install wasn't detected - make it easy to restart my Vector instance #14

Open
bmcgonag opened this issue May 6, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@bmcgonag
Copy link
Owner

bmcgonag commented May 6, 2020

sometimes a restart of the Vector instance is needed, but not a full reinstall of the system...so it would be nice to have an admin function (button) to restart the instance.

Restart should

  • Kill node pkill -f node
  • delete logs
    • forever log rm ~/.forever/forever.log
    • output log rm ~/Vector-Production/bundle/output.log
    • error log rm ~/Vector-Production/bundle/error.log
  • re-run the forever command to restart node
    • cd ~/vector-Production/bundle
    • forever start -l forever.log -o output.log -e error.log main.js
@bodzio4749
Copy link

Brian, my love. your recovery instructions do not work.

  1. cd ~/vector-Production/bundle should read "cd ~/Vector-Production/bundle" (upper case "V'
  2. The last step "run forever start" didn't work for me, but got fixed after reboot. 😏 HOWEVER, the reboot the forever was found, BUT 🤣 the error.log went wild with all kinds of errors bitching about missing ROOT_URL in the server environment. Well, I did export this, but (you guessed it) if forgot to export MANGO and the remaining values. 3rd time was a charm.
    And finally, the automatic server interface was discovered 😍!
  3. So, after that the website recovered nicely, and the wiregard wg0 was "discovered". Ir was it? The information from my wg0.config was ignored, and you replaced them with own defaults. This may be not a big deal, but I could not change it. Your program somehow caches your defaults and copies them to the /etc/wireguard directory with MULTIPLE default entries for your default values (ok, the private keys are different, but mine from the /etc/wireguard are ignored .
    My question is = where and how do you recreate wg0 interface? Are you using wg status to discover the values? Maybe (if I may suggest) you should require standard names for the server, same as ssh-keygen does? Anyway, I am going to give up on this now, as it is almost 1:00am. Bad time
  4. Finally, wireguard support for windows clients SUCKS. it requires the user to be part of the administrative group {!} They must be NUTS or incompetent. They obviously don't care about security at all. I wonder how many of them run as root on their iMacs?
    This may kill wireguard for me. I know, I can still use it on raspberry PIs, but why should I?
    Thanks for your work and videos. I do enjoy them.
    Bogdan
    PS. I am running this on Ubuntu 20.04 using DigitalOcean. I wasted free coupon that will expire by the end of the month. Oh well. Will create couple of other droples because I can. Three more weeks 🤣

@bmcgonag
Copy link
Owner Author

bmcgonag commented May 8, 2020

Thanks @bodzio4749 for the pointing out that I made a spelling error. I won't do it in the code, and if I do my testing will fail. Feel free to make code changes and update with a pull request as well.

For #2, yes, I need to include the environment variables.

For #3, yes, I only creae a new interface, I don't read in an existing one today. I can add that as an enhancement request though, if you'd like.

For #4, yes, I'm not real pleased with having to run this as root as it's a pain, and not super secure, but thus far haven't found another way. I need to see if there's a wireguard group created that can run it without sudo / root privileges - kind of like adding your user to the docker group.

@bodzio4749
Copy link

bodzio4749 commented May 8, 2020 via email

@bodzio4749
Copy link

I apologize for replying through my email client instead of coming here in this app. Obviously this created long "quote". Newbie, but will do better in the future.
In a meantime, I reran the installation script and tested the Server configuration again.

  1. The manual configuration took, and the program created wg0 with correct custom settings. However,
  2. The Server status still shows the default values of 10.100.100.1 for the network and completely different public key. It seems that this should be a quick and easy fix ☺
  3. I have a issue with email, but will create a new ticket (if I can)

@bmcgonag bmcgonag added the enhancement New feature or request label May 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants