Magenta Construction
7:34AM - 8:56PM (13 Hours 21 Minutes)
11:45AM
Just had a phone conversation with Troy, a couple of things that we have to address. So Shane's email I guess is not working, I'm going to try to get on the phone with him right now. I'm just looking up how I can, how I can remote control his phone, I wonder if I can do that anyways. When he gets back, at the end of the day we're going to get together, I'm going to change the password, we're going to try something to get him on the Outlook mail so that it shows him the mail messages and that he can swipe and it shows him the content of that. And we'll do that to try to get him on Outlook, I'll put the passwords in for the dog farm and we'll see if we can save them into his phone so that if they do prompt him again that we can just use it to save from the phone if there's an update. And then hopefully we'll have time to just look at his Wi-Fi access points and move things over to the Wi-Fi at least at his home. There was something else I forgot, I'll remember, let me deal with Shane's right now.
12:13PM
I got a message from Troy that Ryan and a bunch of other people are having issues in the office. I did some diagnostics. I think Flex Networks, which is an internet provider for TCC, is having issues. I'm going to work on a quick solution right now to get everybody back up and running online. To do that, I'm going to create a VPN server and I'm going to deploy a VPN server and VPN app on the computers as a temporary measure. I don't know how long it'll take, but I'm hoping to do it fast, so I've got to get off of this and work on that.
12:22PM
My server is provisioning right now so I'm just going to wait for that to finish booting up and then I'll start installing.
12:28PM
server is launched. I'm just gonna update everything and upgrade so this might take a couple seconds. Okay. Update APT install wire. No VMs running. Okay. Okay, and we're gonna do cd slash cd slash ls cd etc ls looking for wire guard okay cd wire guard ls nothing in here okay cd slash mkdir dash p etc wire guard cd etc wire guard umask 077 I think ls okay if you get GenKey and we'll do a T does it matter that I'm already in sudo okay let's try it sudo T no because I'm already in the directory so it won't matter server private key let's do that and then we'll do okay ls and now we'll do chmod equals boom ls lsal okay that's good and now I'm gonna make a public key now that was a private key so now we're gonna do WG pubkey and we're gonna do hold on did I do that wrong okay hold on sudo what's going on here ctrl C okay let's do sudo cat server private key and we'll do WG pubkey and we'll do sudo T and we'll do static IP before I do this
12:42PM
Okay, because that's going to change and I'm going to need a static IP, so networking, attach static IP. This is going to be wire guard dpn1ip, create and attach, and it's going to change the IP, so let's connect back to ssh, sudo su cd etc wire guard ls. Okay. Okay. Okay. Okay. Okay. Okay. Okay. Okay. apt install. I also need to update this. Install. Curl, which should already be installed. Do you want to continue? Oh, no. It's going to be upgraded. Okay. apt. Oops. Install. UFW. That's treating UFRD, the newest version. Okay. Okay. Ls. Rm. Rm. Okay. WG gen key. T. Server. Private key. And chain that WG hub key. And generate to server. Public key. Ls. Donezo. Okay. Ls. No. Nano. ETC wire guard. WG. Okay. We're going to do interface. Address. Equals. Dot zero dot one slash 24. Save config. We'll do that as true. Ball listen port. Port. Equals. 518204 VPN private key. Private. Key. Ls. Um. Num, num, num, num, num, num, num. Um. Um. Um. Um. Um. Um. Save modified, yes. File name. Capt. Server. Public or private? Private. Oh. Oh. Oh. Oh. Oh. Okay. And now. Nano. Oops. Okay. Okay. Okay. Okay. Okay. Okay. Um. Oh, man. Oh, man. Oh, man. Oh, man. Oh, man. Oh, man. Okay. Um. Okay. Let's do post up. Equals. IP. Tables. Dash. A. Forward. Dash. I. W. G. Zero. J. Accept. For. Post. Down. Equals. Tables. Dash. D. Forward. Dash. I. W. G. Zero. Dash. J. Accept. I. P. Tables. Dash. A. Dash. D. Forward. I. T. J. Jump. Interface. Okay. Control. X. And. Save. And enter for the name. L. S. Okay. Cat. W. G. Perfect. Okay. Net. I. P. V. For. Forward. Equals. One. Net. I. P. V. Forward. I. P. Forward. Equals. One. Net. I. P. V. Forward. I. S. E. T. C. Sys. C. T. L. Conf. It's done. Pseudo. Sys. C. T. Sys. C. T. L. Dash. P. Sys. C. T. L. Dash. P. Perfect. Pseudo. U. F. W. Allow. Five. One. Eight. Two. Zero. For. U. D. P. Rules. Updated. K. Is. Pseudo. U. F. W. Enable. Enable. Command. May disrupt. Existing. S. S. H. Connection. Okay. So. System. C. T. L. Enable. W. Shit. W. G. Or W. Q. W. G. W. G. That's what I named it....
1:04PM
All right, I think the server is set up now. I just need to do a deployment for the VPN. And I'm just going to create a temp directory. Temp, well, let's just do VPN. And then we'll do, um, I don't want to do this. I can manually name them, I guess. Uh, no, I got to build a whole fucking controller for this. OK. Uh, OK. I got to build a whole back-end web controller for this.
2:04PM
I'm trying to get this VPN setup, I think I...
2:12PM
Anyways, everything seems to be working now. It's a really hacky way to do it, but I got it done.
8:08PM
Alright, so I finished the VPN stuff at around 1, and deployed it by about 1.30. Everything was working, but it's very makeshift-y, I kind of want to spend more time on it. To make sure that it actually can be used again in the future. And right now I just got back from Staples, dropping off some returns.
8:53PM
Alright, I'm going to stop for now. I've got to eat dinner. Anyways, I made the script. I need to add a database table tomorrow for the VPN configurations. I need to make a class for the VPN configurations. In the computer class, I need to add a VPN method overloading to the computer so that it pulls up the VPN configuration and if there is no VPN configuration then it assigns a VPN configuration if available or returns that it's not available. And then it returns a config, which is good. And I should probably make an uninstall script. Then we have VPN config. We'll also need to...
8:54PM
I will also need to document the installation of the WireGuard server, how it was done, what commands are used, and the little caveat behind doing this in LightSail, because it was using ENS5 instead of ETH0, which is fine, I guess, but it just has to be updated in the thing, and the server-side configuration, I should make a copy of that, probably put that in a root-media-md-markdown file.
8:56PM
I just got the two emails about the return for Amazon.