this post was submitted on 26 Sep 2024
57 points (100.0% liked)

Selfhosted

46677 readers
1113 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

I'm looking at getting a 10 gigabit network switch. I only have 3 devices that could use that speed right now but I do plan on upgrading things over time.

Any recommendations?

top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 44 points 8 months ago* (last edited 8 months ago) (3 children)

The comments here saying to not bother with 10gbe is surprising considering it's the selfhosted community, not a random home networking self help. Dismissing a reasonable request form someone who is building a homelab is not a good way to grow niche communities like this one on the fediverse.

10gbe has come down in price a lot recently but is still more expensive than 1gb of course.

Ideas for switches: https://www.servethehome.com/the-ultimate-cheap-10gbe-switch-buyers-guide-netgear-ubiquiti-qnap-mikrotik-qct/

https://www.servethehome.com/nicgiga-s25-0501-m-managed-switch-review-5-port-2-5gbe-and-sfp-realtek/

For a router: https://www.servethehome.com/everything-homelab-node-goes-1u-rackmount-qotom-intel-review/

[–] [email protected] 19 points 8 months ago (2 children)

Personally going 10G on my networking stuff has significantly improved my experience with self-hosting, especially when it comes to file transfers. 1G can just be extremely slow when you're dealing with large amounts of data so I also don't really understand why people recommend against 10G here of all places.

[–] [email protected] 5 points 8 months ago* (last edited 8 months ago) (1 children)

I think it has to do with data differences between self hosters and data hoarders.

Example: a self hosted with an RPI home assistant setup and a N100 server with some paperwork, photos, nextcloud, and a small jellyfin library.

A few terabytes of storage and their goal is to replace services they paid for in an efficient manner. Large data transfers will happen extremely rarely and it would be limited in size, likely for backing up some important documents or family photos. Maybe they have a few hundred Mbit internet max.

Vs

A data hoarder with 500TB of raid array storage that indexes all media possible, has every retail game sold for multiple consoles, has taken 10k RAW photos, has multiple daily and weekly backups to different VPS storages, hosts a public website, has >gigabit internet, and is seeding 500 torrents at a given time.

I would venture to guess that option 1 is the vast majority of cases in selfhosting, and 10Gb networking is much more expensive for limited benefit for them.

Now on a data hoarding community, option 2 would be a reasonable assumption and could benefit greatly from 10Gb.

Also 10Gb is great for companies, which are less likely to be posting on a self hosted community.

[–] [email protected] 8 points 8 months ago* (last edited 8 months ago)

I somewhat disagree that you have to be a data hoarder for 10G to be worth it. For example I've got a headless steam client on my server that has my larger games installed (all in all ~2TB so not in data hoarder territories) which allows me to install and update those games at ~8 Gbit/s. Which in turn allows me to run a leaner Desktop PC since I can just uninstall the larger games as soon as I don't play them daily anymore and saves me time when Steam inevitably fails to auto update a game on my Desktop before I want to play it.

Arguably a niche use case but it exists along side other such niche use cases. So if someone comes into this community and asks about how best to implement 10G networking I will assume they (at least think) have such a use case on their hands and want to improve that situation a bit.

[–] [email protected] 4 points 8 months ago

And X-windows. There's a few server tasks that I just find easier with gui, and they feel kind of laggy over 1G. Not to mention an old Windows program running in WINE over Xwin. All kind of things you can do, internally, to eat up bandwidth.

[–] [email protected] 12 points 8 months ago (1 children)

I bought all the gear to do 10gbe but ultimately went back to 1gig simply because the power consumption. The switch alone used 20w at idle and each NIC burned 8w and I couldn't justify it.

[–] [email protected] 6 points 8 months ago

Very reasonable. FWIW, sfp uses way less power than rj45 for 10gbe if that's an option.

[–] [email protected] 4 points 8 months ago

This is what I was looking for! Thank you!

[–] [email protected] 18 points 8 months ago (1 children)

I'm partial to mikrotik gear, the CRS305 has 4 sfp+ ports for around $150.

[–] [email protected] 1 points 8 months ago* (last edited 8 months ago) (9 children)

Gonna disagree here. Microtik is a problematic company at best. They're super lax on security, and they've had a lot of issues with their products in general. They also offer no real warranty, but I assume that's because they aren't a dedicated networking company (they make other things).

Just last year the flags were raised on dated firmware that left something like a million devices vulnerable, and their response was lacking.

On the plus side: they are part of the EU, so data protection laws apply, and they do seem to be in the forefront on uptake of modern equipment and standards.

[–] [email protected] 5 points 8 months ago (2 children)

Can you elaborate on how their response was lacking? From what I found the stable branch had a patch for that vulnerability available for several months before the first report while the lts branch had one available a week before the first article (arguably a brief period to wait before releasing news about the vulnerability but not unheard of either).

MikroTik also offers a 2 year warranty since they legally have to, no idea what you're on about there. Also also not sure what you think they sell other than networking because for the life of me I can't find anything other than networking related stuff on their website.

[–] [email protected] 2 points 8 months ago

Yeah I’ve worked at WISPs that were pushing TBs through their core routers every day. Those core routers? Mikrotiks. Every apartment buildings core routers and fiber aggregation switches? Mikrotiks. You had to get down to the access layer switches that fed the individual apartments to hit Cisco equipment.

This person is just repeating some shit they read somewhere, hoping it makes them sound knowledgeable. In another post they’re recommending trendnet shit. Get back to me when you can set up BGP peering on your trendnet lol.

[–] [email protected] 0 points 8 months ago (2 children)
[–] [email protected] 3 points 8 months ago (1 children)

Wow you found three different articles, all about the same CVE, that the manufacture published a firmware patch for before any public disclosure was made. That’s definitely just as bad as pretending you don’t know about CVEs in your products lol.

[–] [email protected] 2 points 8 months ago (1 children)

Yeah they definitely could have been quicker with the patches but as long as the patches come out before the articles they are above average with how they handle CVE's, way too many companies out there just not giving a shit whatsoever.

[–] [email protected] 3 points 8 months ago

the manufacture published a firmware patch for before any public disclosure was made

They were pretty quick for the stable branch, so I guess the miss is prioritizing it for LTS. But if it's just the one time, I'm completely fine with that.

[–] [email protected] 1 points 8 months ago (1 children)

So first of all I see no point in sharing multiple articles that contain the same copy-pasted info, one of those would have been enough. That aside, again, patches were made available before the vulnerability was published and things like MikroTik not pushing Updates being arguably more of a feature since automatic updates cause network downtime via a reboot and that would be somewhat problematic for networking equipment. Could they have handled that better? Yes, you can almost always handle vulnerabilities better but their handling of it was not so eggregious as to warrant completely avoiding them in the future.

[–] [email protected] 0 points 8 months ago (1 children)

Well because one is WAY WORSE than the other, and the response of commitment is way different. You're just plain wrong.

[–] [email protected] 2 points 8 months ago* (last edited 8 months ago)

If I buy a switch and that thing decides to give me downtime in order to auto update I can tell you what lands on my blacklist. Auto-Updates absoultely increase security but there are certain use cases where they are more of a hindrance than a feature, want proof? Not even Cisco does Auto-Update by default (from what I've managed to find in this short time neither does TrendNet which you've been speaking well of). The device on its own deciding to just fuck off and pull down your network is not in any way a feature their customers would want. If you don't want the (slight) maintenance load that comes with an active switch do not get one, get a passive one instead.

load more comments (8 replies)
[–] [email protected] 2 points 8 months ago

Depending on your forecasted capacity needs, Ubiquity does have some attractive options depending on your comfort with managed vs unmanaged switches is. I am making some assumptions based on homelab tendencies. I have been very happy with the UniFi ecosystem personally, though I know it's not everyone's cup of tea. The Dream Machine Pro has been very good for me both operationally and reliability wise, and there are expansion options for 10Gb Ethernet or SFP+ switches that cover most (pro/prosumer) price ranges.

They are definitely not the best bang for buck necessarily, and I have not tried any MikroTik alternatives to directly compare so take my opinions with a big grain of salt. I work in a purely Cisco environment and am used to working almost exclusively in CLI, but I found the UniFi GUI and environment easy enough to pick up with a little effort. UniFi firewall is too permissive by default if you are using something like the Dream Machine as the front end, but as a Boundary non-expert it was not too difficult to configure satisfactorily. Wireless APs are pretty great too.

[–] [email protected] 2 points 8 months ago* (last edited 8 months ago) (2 children)

That’s a big number. What’s the use case? Just cause?

[–] [email protected] 11 points 8 months ago* (last edited 8 months ago) (1 children)

I'm not op, but: I have 10gbit between by truenas server and my proxmox server. The use case is faster access to files from my proxmox server.

1gbit is actually quite slow when we talk disk speed.

[–] [email protected] 5 points 8 months ago (1 children)

I had exactly the same use case and I ended up with a 40G DAC fiber for that case. It ended up cheaper than converting the whole lan to 10G.

That said, it feels like used 10G equipment is easier to come by than 2.5G for now, and if you have 2G fiber uplink and only 1G past the router then it’s a waste.

[–] [email protected] 3 points 8 months ago (1 children)

Point of clarification: DAC is copper, AOC is fiber.

A lot of 10G equipment will support 5G/2.5G SFPs as well, so it can still be beneficial to go 10G on the core equipment.

[–] [email protected] 3 points 8 months ago

TIL, thanks!

[–] [email protected] 3 points 8 months ago (1 children)

Email does take some serious bandwidth

On a more serious note, people who have fast Internet should be running Tor relays. It would make the network much faster and secure.

[–] [email protected] 4 points 8 months ago (2 children)

Will you protect them from police raids and cover their legal costs for running a Tor node?

And it's quite likely they only have 10G locally, with way less bandwidth going to the outside.

[–] [email protected] 4 points 8 months ago (2 children)

There's different types of relay, including exit relays, which are the legally problematic type. Middle, guard, and bridge relays don't face the same issues with law enforcement and IP blocking.

[–] [email protected] 2 points 8 months ago

Exit relays are totally fine from a legal perspective. They key is making sure the ISP and local police are aware so they don't come after you. ISPs have sent DMCA letters and such to operators when in reality they can't and shouldn't control the traffic coming out of Tor. The good news is that Tor has templates to respond.

Best practice is to let bigger organizations run exit relays so that there is the oversight from leadership.

[–] [email protected] 2 points 8 months ago (1 children)

Don't run a Tor node in places that have censorship laws or problems with freedom. In places such as the US and most of Europe it should be totally fine to run a node. What the network really needs is more middle nodes. You can inform your ISP and the local police of what you are doing just to be sure.

The only time you could get into trouble is when you are running a exit node. ISPs and police have mistakenly classified out nodes as local traffic. It is recommended that only organizations such as universities run Tor exit nodes. However, it is important to keep in mind that to my knowledge no one has ever been arrested for running a exit node in a western country.

[–] [email protected] 1 points 8 months ago (1 children)

However, it is important to keep in mind that to my knowledge no one has ever been arrested for running a exit node in a western country.

https://news.ycombinator.com/item?id=41505009

There links to other occurrences of arrest in the comments.

[–] [email protected] 1 points 8 months ago* (last edited 8 months ago) (1 children)

That's just for a exit node. I explicitly stated that one should only let larger organizations run a node.

Also, my original comment still stands about no one being arrested

[–] [email protected] 1 points 8 months ago

What do you mean by not being arrested? I would say German police putting a black bag on your head and taking you to their station in the middle of the night is something one could consider an arrest.

[–] [email protected] 1 points 8 months ago (1 children)

Obligatory https://files.catbox.moe/6bwk52.gif

Honestly there isn't a lot of reason for 10G. Honestly 100M is probably fine for some people who are just browsing the web. The big think it latency as some of those old copper connections are very painful.

I would stick with 1G and be done with it

[–] [email protected] 16 points 8 months ago* (last edited 8 months ago) (1 children)

This is a community for people who have home servers. 100M is fine for a couple people just web browsing, but that's not the topic of this discussion.

I run 10G between my desktop and my server because I can easily saturate a 1G connection doing a simple file transfer.

[–] [email protected] 1 points 8 months ago

Yeah, 100M is a no-go for me since my ISP provides much more than 100M, and streaming full-res videos would bottleneck that pretty quick.

1G is probably fine for us, but we'll probably go 2.5G minimum the next time I need to swap out switches, maybe 10G.

[–] [email protected] 1 points 8 months ago

Do the devices have dual 10g ports each? You can build a triangle out of them.

[–] [email protected] 0 points 8 months ago (2 children)

Trendnet makes solid stuff. Good warranty, US based.

[–] [email protected] 2 points 8 months ago

'US Based'

Newegg is 'US Based' too...

[–] [email protected] 1 points 8 months ago (1 children)

I tried a 5port 10g trendnet switch some time ago, had weird speed issues and package losses. No good experience at all :(

[–] [email protected] 0 points 8 months ago (1 children)

Have run hundreds of these and never had an issue. Never even had to do an RMA out of the box.

If you're seeing packet loss on switches, you may need to pay attention to what "port speed" and total "switch fabric" speeds are these days. You can have a 10 port 1Gb switch, but the total fabric only does 6Gb.

[–] [email protected] 1 points 8 months ago

The loss did occur on simple ping commands, only on 2 out of 5 ports. The vendor confirmed the behavior to be faulty and took the switch back.

Maybe it was just a faulty model? However I do use multicast in my network (corosync) and a lot of 10G switches seem to have problems with that, maybe this was the case here, too.

The exact model is TRENDnet 5-Port 10G Switch, 5 x 10G RJ-45-Ports and there sure seem to be quite some people having issues as well...

load more comments
view more: next ›