Skip to content

u/fwaggle

In this archive from Sep 2011 to Jun 2023

0
posts
152
comments
0
media
451
score
2 saved before deletion
fwaggleDeleted · saved before deletion

I'm not sure I could be all that helpful despite going on and on about this, so I'll try keep it brief: start with figuring out what your goals are. Figure out how you can tie that in to the resources you have available.

If you want to learn networking, you'll need a network, but the key is to make sure it doesn't fuck with other people without their consent (one thing I left out of my first tirade is this: consent - there's nothing wrong with a "testing/labbing in prod" if everyone who uses prod is okay with it! Consent along with managing expectations goes a long way). I don't think you need a separate internet connection for that, but at the very least I would have a separate router, on a separate subnet, that only uses the home LAN as it's upstream and does nothing else. Then you can experiment with VLANs, renumbering, routing, etc without breaking your kids' Roblox or whatever. But don't sleep on virtual stuff either, you can learn a lot with something like Packet Tracer.

Similarly with say, Kubernetes... I'm the special broken sort of individual where I actually run K8s in prod at home, but if I'm going to fool around with something like changing out my CNI, you better believe I'm doing that in a lab environment first. In that case, I went completely virtual for that, several VBox VMs on a virtual network completely isolated from everything else. I have the hardware laying around for it, but it made zero sense to swap a keyboard between several machines to set them up when VMs work fine. Setup a new cluster on it, where I can break it and then figure out what's broken, with no one going "hey, the NAS is down" or something. But if you're not interested in learning networking, you probably don't need a separate router... I don't have one for my non-prod stuff at the moment.

In any case, you have to delineate what's production and what's not, and set expectations accordingly. The home internet connection should be up, unless you've arranged otherwise. If you convince your entire family to ditch streaming services and switch to Plex/Jellyfin/whatever, then that probably shouldn't be on the same machine you decide to change out OSes on because you get bored.

But it all starts with what your goals are. And it should be noted that all of the above are just opinions, you don't need me or anyone else to validate your choices, you just have to live with them (and live with folks who do). Fuck about in prod if you want, I'm not a cop!

Edit: that wasn't brief. Good job, dickhead!

1 points
fwaggleDeleted · saved before deletion

JMHO (and I sound like a broken record with this shit): the only disqualifying thing is actually something the vast majority of this sub's more prolific posters do: if you can't turn the entire thing off for a day without upsetting someone, it's not a lab, it's homeprod.

So many people run their home network through a bunch of rackmount gear and go "look at my lab", completely missing the point. A pile of VLANs and a cute diagram do not a lab make either, nor does $1500 worth of Unifi or Mikrotik gear, or pfSense on a random machine, or 10gige networking. The ability to play without upsetting someone is what makes it a lab, someone with a leaning tower of rpis has a lab, dude with the poweredges that must have 99.9% uptime or someone in the house threatens to move out doesn't have a lab, at all.

Are they pretty? Hell yeah, and I don't mind seeing this stuff on the sub at all, show me those glorious racks with the custom-length patch cables... but it gives a lot of people the idea that you gotta have the enterprise gear in a shiny, tidy rack and the ECC RAM and everything or else, and that idea can get in the bin.

3 points

I have a mesh-front/back 24U rack (specifically a Dell 2410) and while my R510 isn't overly loud at idle, it's louder than I particularly want in my office (when we buy a house, it's going somewhere the fuck away from me).

I bought a few bundles of that triangle "sound dampening" accoustic foam tiles (the shit with triangles/pyramids) and a heap of spray adhesive, and treated the interior of the entire thing. It did absolutely nothing. If you put that stuff against a plain, flat wall it'll stop the "bright" reflections off it, but that's it... it doesn't do a damn thing otherwise and selling it as sound-deadening material is just plain false advertising.

What did help is taking the badge off and screwing a sheet of 3/8" MDF to the front of the rack. It's still not silent, but just that slight change of direction in the air flow knocked a pretty significant amount off the top of the fan noise. No effect on temperatures, but I do have fans in the top of the rack to evacuate heat.

2 points

I'm doing this with my old 3630qm laptop if the screen ever dies but the rest of it is still functioning. It's still a beast of a laptop, GPU lets it down for gaming but everything else is excellent on it, and with the price I paid for it on sale I still can't even touch a modern laptop that's as good for productivity.

1 points

You can also put resistors in the fan power wires. It takes some math to size them properly though.

Won't this create a fan fault that the server will complain about via an orange flashing LED? I guess that's not the end of the world if you have no interest in monitoring other faults, but it would annoy me.

2 points

The USG is in the middle (yellow ethernet cables), between what looks like a modem, and a small USW-8 (red + blue ethernet cables). Both the USG-3 and the USW-8 are passive devices, and at least the USG has all it's cooling ventilation on the sides.

The cloud key that's under it is indeed separated by space, but that's not really an issue.

1 points

I don't think having the USG that close to everything is going to be great for airflow - I'm pretty sure they cool side-to-side and don't have any fans on them.

Having it sandwiched against the switch (particularly if it's the PoE version, they run pretty hot) is probably not great for longevity.

I'd move the modem to a different shelf before summer arrives, personally.

2 points

And I not once commented about the title or article as I didn't even read it.

... and there it is, like I called it from the start - everyone calling this clickbait or "not that big a deal" hasn't read the article or disclosure, or doesn't have any clue about the "average" WordPress site.

This sucks if this exploit happen to you (sounds like it did seeing how defense you are).

It did not, I am not an active WordPress user. I do however work in defense of WordPress sites, and as I keep stating all along the number of times I see a plugin and have to ask the site owner "why the hell is this still installed" would blow your socks off. You - from what you describe - are not the average site admin, the average site admin can't audit every single plugin, and WordPress as an ecosystem actively encourages installing a plugin for every little thing.

But sure, you're smarter than everyone else, so this sort of thing would never affect you... what about the rest of the ~30% of the web WordPress supposedly powers?

1 points

Yeah, this shit was drummed into us when I took a cabling course in the 90s as a teen, but with UTP it's pretty much moot... the whole purpose of the twisted pair is so that any frequency source near it will affect both wires of the pair equally, so the difference in potential is cancelled out.

It was different when you're running thin ethernet everywhere....

7 points

I don't need to watch the video because you keep ignoring my main point, not to install the plugin in the first place.

I never said it wasn't, in fact I specifically said it's not a great idea to leave it installed. That doesn't stop tons of people from doing it, so to them it's a big deal and this disclosure shouldn't be written off as click-bait (shitty title on TechRadar's part notwithstanding).

The rest of your last comment is a bit unnecessary, folks in the know already know what you're saying... but WordPress isn't solely used by folks in the know, it's used by ~30% of the web.

I could of know it was a security risk without having to read reports.

That's nice, but what about the hundreds of other plugins that have this exact same class of vulnerabilities, which at it's core stems from terrible function/hook names on WP's behalf? They're not all "for incompetent lazy devs".

1 points

You are kidding right?

I could say the same to you. Name one plugin that would fix this. I don't even think you watched the damn video, much less understand how the hell the second exploit works. This isn't "some part of the admin panel" this is code hooked to a place it should not be, unless your proposed plugin goes around unhooking all of those for no damn reason I think you're full of it. FYI, I'm 99% sure that the code is hooked to load on admin-ajax.php too, so the admin panel has nothing to do with anything.

Go on, name one plugin and describe how to configure it. If it fixes this without breaking a ton of other plugins I'll be extremely surprised.

Otherwise, I suggest you be quiet until you've read and understood the disclosure (or at least watched the video).

1 points

Yea and why wouldn't the admin use something like user roles or permissions plugin to block access to that plugin?

Again, I feel like you're completely misunderstanding - there's zero access control on the plugin. It doesn't check if you're administrator or anything else - actually that's not fair, they check current_user_can() once, when installing. I think, like many others, the author assumed that admin_init only fires on pages when you're an admin, but that's 100% not the case.

There's no such thing as "use something like user roles or permissions to block access to the plugin" the only solution is to have it not installed+activated (arguably a good thing, but again take your average WordPress site and weep in horror at all the unnecessary plugins that are installed).

Feel free to browse the code of the vulnerable version:

https://downloads.wordpress.org/plugin/wordpress-database-reset.3.1.zip

If plugin authors can't understand this, how is an admin supposed to?

1 points

but who's stupid enough to give access to that plugin to subscribers

I think you misunderstand: the problem is that the admin doesn't "give access to that plugin to subscribers". There are no auth checks in place, which means any logged in user (ie, including subscribers) can trigger the reset action and become administrator.

All you have to do is leave this plugin installed. You can argue that they shouldn't leave it installed, but I see plugins day in and day out where I ask "why do you still have this".

Objecting to a disclosure as "clickbait" when there's demonstrably some folks out there with it still installed, because "they have it coming" is just a shitty attitude.

And as I said elsewhere in the thread, at a certain point of saying repeatedly saying "who's stupid enough to..." you boil the argument down to the base "who's stupid enough to run WordPress".

1 points

There are hundreds of plugins that fit this description... the problem with this line of thinking if you're any sort of a WordPress advocate is it's not that much of a jump to distill it down to "if you use WordPress you deserve what you get", because frankly the vast majority of WordPress plugins are utter swill.

The WP ecosystem is a dumpster fire for security - dismissive language just means it'll never get better.

1 points

A plugin designed to reset your database can reset your database.

Maybe read the disclosure before commenting? See here:

To further escalate the previous vulnerability, any user authenticated as a subscriber and above had the ability to reset the wp_users table. Initially, this doesn’t seem too severe. Dropping all users during a database reset may be problematic, but we can always recreate users, right? Unfortunately, this was more complex. Whenever the wp_users table was reset, it dropped all users from the user table, including any administrators, except for the currently logged-in user. The user sending the request would automatically be escalated to administrator, even if they were only a subscriber. That user would also become the only administrator, thus allowing an attacker to fully take over the WordPress site.

Basically this is a pretty big deal if you have this plugin installed and allow subscribers.

1 points

Lots of companies that only need a server or two would have a single tower machine, and their only rack would be a comms rack for phone+ethernet, plus associated hardware. In those cases putting a rack-mount server in means tearing all of that out and installing a deeper rack, which just wasn't going to happen.

Then later you've been doing it for so long you forget why, and you end up with a baker's rack with 12 machines in desktop form-factors on them. It's worth noting that at least for Dell's tower servers, you can buy optional brackets to convert them to rack mount anyway.

Finally, I'm not 100% sure (having never heard a recent one in person) but I think the noise characteristics of the tower-style servers are slightly better than a 1u or 2u rackmount machine too.

7 points

Pros:

  • DDoS mitigation that's fairly good. With WordPress, there's probably quite a few requests someone could bombard your site with that'll still knock it over, that Cloudflare will happily let through on the free plan, particularly at all but the highest security levels, but the brute-force "some kid packeted your VPS' IP so we've null routed it for the time being, so your site is offline" will 100% be stopped by CF, as will many of the sillier attacks. The "I'm under attack" mode is pretty effective.
  • The free CDN is likely to save you a bit of bandwidth.
  • You'll get free IPv6 support even if your host doesn't do IPv6 - CF will translate it for you.
  • Likewise, if for some amazing reason your host is so terrible that they don't support HTTPS in 2019, CF will fix that for you... though you may have to jump through some hoops to make that part work correctly.
  • If you have the budget for it, and your origin host supports it, Railgun is pretty neat.

Cons:

  • Your TTFB is likely to go up in most scenarios - if you expect it to go down across the board, you'll be sorely disappointed... particularly if your audience is highly localized and you picked your server location well. The amount of improvement at the best of times will depend on how bad your host is, if your host is excellent then turning CF on will hurt more... everything is a tradeoff.
  • Furthermore, the jitter on your TTFB is likely to be huge - I have a static site served from a well-connected host via CF using page rules to force caching on everything, and even on a cache-hit at CF I still sometimes see 600~800ms TTFBs... I think it's just a factor of using their free product, but hey, it's free.
  • Some of the sites they host are super-questionable. They justify it by saying that these sites attract a lot of attacks and that's useful for their attack intel, but you definitely need to take a look at some of the sites hosted by Cloudflare and decide if you want to contribute to their defense. Even if you're on the free plan, you're still contributing because every good site that's on CF makes it harder for folks to IP-ban them for the bad sites. It's fine if you decide "I really don't care", but that in itself is an moral stance, you just have to decide if you can live with it, so at least give it some thought.
  • You really need to give them access to your DNS for the product to work correctly, which might be a pain (or it might not matter at all).
  • If you have the budget, there are much better paid options.
  • Between the above political stuff, and their DNSoTLS stuff, you'll also have to decide if you're comfortable with your site being part of the avalanche of content moving under the effective control of a handful of really large entities. It bothers me how much of the web depends on one company (be it Cloudflare, Amazon, Google, or Microsoft), and if it bothers you it might be worth picking a competitor for that reason alone. Or again, you might not care at all and that's completely fine.
8 points

You can't even spell Cloudflare, I don't think you need to be up on your high horse about anyone else's recommendations... particularly when yours are riddled with implications you don't actually explain.

2 points

Huh, that's whack... I've not got a Google Home but I've never had any trouble with Chromecast for instance on that sort of a setup, including having the Chromecast on gigabit and the phones on wifi.

1 points

We've a few clients who run it.

  • Ioncube still don't seem to support it.
  • New Relic didn't have support for it until very recently (yesterday?).

I'm not aware of any major incompatibilities from folks who were compatible with 7.3, but that's not really my department so I've probably missed some huge ones.

3 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.