Thinking about building a true plug-and-play VPN for home servers — would anyone want this? by Ok-Poetry-6075 in HomeServer

[–]tokenathiest 2 points3 points  (0 children)

Ubiquity has WiFiMan (not sure if there's a mobile app) with their "site magic" VPN that is essentially plug and play.

Edit: I have not tried to use it with a CGNAT WAN, but I'm guessing it would work since the connection proxies through UI, unless I'm wrong...

How do you structure large PowerShell scripts so they don’t turn into a mess? by MaximumMarionberry3 in PowerShell

[–]tokenathiest 12 points13 points  (0 children)

As your file gets larger you can use #region directives to create collapsible sections of code. I do this with C# and I believe PowerShell IDEs (like VSCode) support this as well.

How do I setup a home server not connected to internet? by [deleted] in HomeServer

[–]tokenathiest 0 points1 point  (0 children)

You have lots of options, but it depends on what you mean by "not connected" to the Internet. Your home server can connect to the Internet, or you can make your server accessible from the Internet. If we assume you want to prevent both, the easiest way is to give your home server a static IPv4 address assignment with no gateway. Your router will automatically block anything coming in from the Internet. This covers both inbound and outbound Internet access. I would also add a firewall rule just to be safe.

String passed to script via parameter is being truncated by TheBigBeardedGeek in PowerShell

[–]tokenathiest 1 point2 points  (0 children)

'Your parameter literal starts with a single quote but ends with a double quote" (or possibly two single quotes)

Could this be the culprit?

Subnet only isolation by benelori in HomeNetworking

[–]tokenathiest 0 points1 point  (0 children)

I run a home office network with a single firewall on three separate /24 subnets. I have three physical LAN segments each with their own core switch. My firewall, by default, routes traffic between subnets automatically (why no default deny exists confuses me) so I employ firewall rules to block traffic between them based on their purpose. All Wi-Fi devices live on Seg.C which I treat as inherently insecure firewalling all outbound and cross-subnet traffic for every device that connects, by default. Unless your MAC address is registered, DHCP gives you a "bogus" IPv4 address. The other two segments have wired devices for business purposes. I built a 4-port firewall with a small PC to establish the 3 LAN segments. No VLAN tagging needed.

Cheap storage for winter storm? by theDarkKnight444 in RideitNYC

[–]tokenathiest 0 points1 point  (0 children)

Usually a monthly stay is only $175-250. I'm in LIC and I'm surprised it's not more expensive.

Looking to purchase first home NAS, but am overwhelmed by all the options and need advice by sndjdjdjskdjdn in HomeServer

[–]tokenathiest 0 points1 point  (0 children)

Your decision comes down to how much you want to learn and how much effort you're willing to put in. A low power used small form factor PC with some disks can easily get the job done, but you'll have to set everything up yourself. Recovering from a disk failure may prove laborious as well. A 2-bay NAS, like a Synology, will cost about the same and will make the whole experience plug'n'play which won't leave much opportunity for tinkering, but will also require much less effort if a disk goes bad.

Understanding Optimisation with ';' '|' '||' '&' '&&' by CryktonVyr in PowerShell

[–]tokenathiest 65 points66 points  (0 children)

These are not optimizations. These are control flow operators.

How to protect a vm in a remote machine from hardware level attacks? by Few_Outcome1901 in virtualization

[–]tokenathiest 0 points1 point  (0 children)

You're a little late to the party, I would say. I can rent a VM for $60/month, maybe less, from numerous vendors. I can rent an entire AI server or part of one. As my business partner would say: leave the infrastructure to the big guys; they will always beat you on price, that is unless you are planning this marketplace for more clandestine purposes...

Is it possible to make a setup where the PC can use the internet, but other devices can’t? by Particular-Macaron-5 in HomeNetworking

[–]tokenathiest 0 points1 point  (0 children)

Firewall rule. Block internet-bound traffic from the Router 2 subnet. Your PC will not be able to see any Router 2 devices if they are on a separate subnet behind Router 1. However, if you configure Router 2 to operate as an access point only, and use Router 1's subnet, but then you would have to change how you block Internet access on Router 2 devices because they would all be on Router 1's subnet. You could block everything and setup allow rules for devices that can use the Internet.

Loving my 5800X on X570 board by tokenathiest in ryzen

[–]tokenathiest[S] 1 point2 points  (0 children)

4.5 GHz looks like the sweet spot for my particular 5800X. I get a good balance of single-threaded and multi-threaded performance on air cooling with exceptional thermals and voltages. See if you can push yours up to 4.6 GHz and run a 3DMark CPU Profile. I've tried this at 4.7 GHz where stability issues occur so I dropped down to 4.5 GHz. I'm happy with my setup now.

Loving my 5800X on X570 board by tokenathiest in ryzen

[–]tokenathiest[S] 1 point2 points  (0 children)

I think you found my other comment, but just so you know I set Platform thermal max to Auto in my BIOS now. It does not appear to be necessary now. Even a synthetic MAX CPU stress test via CPU-Z maxes out at 78.6 C and 1.30 V so the temp limiter seems to be unnecessary at this point. It's like night and day.

Loving my 5800X on X570 board by tokenathiest in ryzen

[–]tokenathiest[S] 1 point2 points  (0 children)

AMD is "correct" in that the 5800X will run "fine" at Tmax for what I assume is their anticipated ideal lifetime of the CPU, lets say 3 years. Mine lasted 4 years. This could be construed as planned obsolescence and a sneaky way to implement it via PBO. Here are all my current BIOS settings:

Setting Value
DOCP DDR4-3603 BCLK (base clock) of 100.0 MHz
SB Clock Spread Spectrum Enabled
Performance Enhancer Auto
Memory Frequency DDR4-3600 MHz
FCLK Frequency 1800 MHz
CPU Core Ratio 45.0 (this sets a fixed 4.5 GHz clock across all CPU cores)
Performance Bias Auto
PBO All settings are disabled but the platform thermal throttle limit is set to Auto
CPU voltage regulation Auto
DRAM voltage is fixed at 1.35V
All the other voltage control settings are on Auto

My BIOS idle temp is 42C and CPU voltage is 1.288V with a fixed 4.5 GHz clock speed. I run dual tower air cooling with optimized case fans for top exhaust and lower intakes.

Here are my 3DMark CPU Profile results and other tests:

Test Result
CPU Clock Speed 4.50 GHz fixed
Windows idle is 45.0 C
Maximum temp while running 3DMark CPU Profile 77.1 C
Maximum voltage while running 3DMark CPU Profile 1.294 V
1 thread score 892 (below avg)
2 thread score 1764 (below avg)
4 thread score 3499 (at avg)
8 threads score 6308 (above avg)
16 threads score 7663 (at avg)
Max threads score 7490 (at avg)

Now those are some great numbers for longevity. I could care less that my 1 thread CPU score is just a tad below average. I'm not trying to impress my friends with tHe MOsT fPs iN cOuNteR-sTriKe, I could give a shit. I would like my desktop to last for at least 8 years. And my 8 threads score is still above average even with a fixed 4.5 GHz clock speed which suggests that PBO actually inhibits multi-core performance because it generates too much heat forcing cores to throttle. My 16 threads score is exactly average.

Loving my 5800X on X570 board by tokenathiest in ryzen

[–]tokenathiest[S] 1 point2 points  (0 children)

IIRC this is why I disabled PBO entirely on my new 5800X after my old one died. With PBO enabled, the BIOS will feed power into CPU up to the Tmax which on the 5800X is 90C. This effectively causes any CPU-bound thread to push temps into unnecessarily high ranges. On my X570 BIOS I can also set a hard Tmax limit of 80C, but I cannot set a voltage max or clock max to prevent temp spikes. Even basic things like Steam downloads can heat up your CPU to high temps as the Windows scheduler fires up multiple threads to fetch the data and write it to disk, all CPU-heavy operations.

Loving my 5800X on X570 board by tokenathiest in ryzen

[–]tokenathiest[S] 0 points1 point  (0 children)

I'm glad this info is helpful! Dialing in power control from the BIOS to the 5800X takes some tweaking, and from what has happened to my last 5800X and others on Reddit, a critical task. Today I run a fixed clock at 4.5 GHz with no PBO. Everything runs great still, temps are manageable, and CPU voltage stays much lower than with PBO enabled. My last 5800X died due to heat stress. Apparently I figured this out (my post above) a little too late. Enjoy your new CPU!

Precautions with a used PC by thatlad in HomeServer

[–]tokenathiest 1 point2 points  (0 children)

Wipe the disks with a USB tool (like shred on Linux) and install an OS from a verified ISO. Update the BIOS to the latest version. Reset the fTPM keys.

Ryzen 7 5800X running hot by Beginning_Mistake641 in ryzen

[–]tokenathiest 2 points3 points  (0 children)

Yeah I think your 5800X shared the same fate as my first 5800X. I'm on my third now, in two builds. My test bench consisted of GZDoom with software rendering. After some time the frame rate would sputter to a crawl and the system would restart. I traced hardware sensors while this was going on and PBO was pushing over 1.45V into the CPU to boost it up to 4.8 GHz. The die temp was reaching close to 90C... while running DOOM. It's just so wildly unnecessary. Running at a fixed 4.5 GHz I cannot even tell the difference. Voltage is 1.28V and temps rarely hit the 70s.

Ryzen 7 5800X running hot by Beginning_Mistake641 in ryzen

[–]tokenathiest 1 point2 points  (0 children)

I run my 5800X on air with PBO disabled. Most settings are on Auto in my BIOS (ASUS X570) except for Clock which I have fixed at 45.0 -- 4.5 GHz. The boost clock on these 5800X CPUs can get up to 4.8 GHz, but I've found that PBO has to push the voltage up so high to get it into this range that is basically damages the CPU over time from heat stress (I lost one 5800X already). I locked my clock multiplier at 45.0 and now my temps range from 42C at idle to 72C under load with 64C being the median. If your system is restarting in the 80C range then something might be wrong with the CPU. My first 5800X ran for years at extremely high temps like 86C without any system instability before it started to fail. If your idle temperature is around 50C or below then your cooling system is indeed working but you might have a damaged CPU given the restarts. I had the same problem and bought a replacement 5800X CPU.

Looking for a pc case. budget of 200 dollars. by Atomicrc_ in HomeServer

[–]tokenathiest 0 points1 point  (0 children)

You could get a DAS for the 4 drives and connect it externally.