/hsg/ - Home server general

/hsg/ - Home server general

Discuss building, setting up your own homeserver and maintaining the services and demons on it.

[Quick Questions Quick replies]
Why would I want a NAS/Homeserver?
If you ask why then you don't need it.

[I want a NAS/HTPC/Plex what should I get?]
RPi3, Asus Tinker or Odroid XU4/HC1.

Are you interested in learning Linux or BSD administration and configuration better? Becoming a systemd expert? Or maybe you hate that shit and want a cozy little BSD machine to run services on and interact with. Or practice more advanced and complicated networking setups.

[FAQ & Guide]
pastebin.com/XYYp9TAC (embed)
[Software and Distro Tips]
pastebin.com/SXuHp12J (embed)

[News]
yro.slashdot.org/story/18/05/24/152239/pornhub-launches-vpnhub-its-own-virtual-private-network-app

it.slashdot.org/story/18/05/23/2347259/fbi-seizes-control-of-russian-botnet

[Chat]
discord.gg/9vZzCYz
riot.im/app/#/room/#homeservergeneral:matrix.org
irc.rizon.net #_hsg_

Attached: 1527188390875.jpg (720x480, 167K)

Other urls found in this thread:

blog.linuxserver.io/2017/06/24/the-perfect-media-server-2017/
uk.pcpartpicker.com/list/cRYbLJ
ebay.com/itm/401093231635
pastebin.com/XYYp9TAC
twitter.com/SFWRedditVideos

Nice

Odroid C2
>
>
>

Raspberry pi2
>
>

sup

Nice!

Attached: 1492580565120.png (846x476, 538K)

This, odroid c2 masterrace

nice dubs my mang

>be me
>don't know why im greentexting
>buy dl360 g7 and try some virtualisation
>plan out meticulously about moving all of my hyper-v vm's from my desktop and moving to an isolated lab setup with nested vm's
>use xcp-ng as a L0 hypervisor
>spend 3 days trying to get nested hyper-v working on L1
>not supported, only kvm, vmware and xen work as nested hypervisors
>ditch the whole plan and just use hyper-v as the L0 hypervisor
>essentially a glorified replica server now

What's everyone else been up to?

Attached: 1526960308749.jpg (2024x1518, 1.2M)

>putting servers on a carpet and turning them on
You should be banned from using computers desu

You should be taken out the back and shot in front of you family for being so autistic.

I bet you wear safety googles and anti-static overalls to change your ram too, huh?

Attached: 1496315786207.png (376x366, 158K)

Apparently seeding a few torrents from the storage server (old C2D desktop with 6 HDDs) consumes more power than keeping the server idle and seeding from a ryzen workstation with 1 HDD.
I wnat to get a 8+ bay NAS box, but do any of those natively support having multiple storage volumes/pools where idle disks can spin down independently?

>I wnat to get a 8+ bay NAS box, but do any of those natively support having multiple storage volumes/pools where idle disks can spin down independently?
Depends on how you set it up. If you put all 8 disks in one RAID array, they will all have to keep spinning.
On the other hand, say you make 2 RAID arrays with 4 disks each, one array can spin down, while the other is downloading your favorite porn.

That being said, it's not common for a NAS box to spin down it's disks. Synology and Netgear NASes don't AFAIK
2nd is that if you do go for the 2 RAID arrays, you'll be wasting some more usable HDD space to redundancy.
>old C2D desktop
That's the 3rd. It's old and inefficient. A NAS will consume less power.

why'd you start with hyper-v in the first place?

i just bought an old meraki mx50 that has pfsense on it, but i might switch over to opnsense once i solder on a serial header. i also accidentally copped an r310 because i set my max bid to $31 thinking it'd wind up around $50 or so before the auction ended and i won it for $27. so i guess that's in the mail. i just got done migrating my whitebox supermicro build that has my storage array (mdadm raid 5, using a perc h310 flashed with it firmware since the onboard sata controller already has a bunch of ssds on it) and a few fuck around vms. moving in to the new house this weekend where i have my poweredge 1900 my friend gave me sitting. i kept it there to make me motivated to move since the thing weighs fucking 100 pounds. i just replaced the shitty dual core chip that was in it with two l5335s so it won't eat my entire power bill and bumped it up to 32 gigs of state of the art ddr2

next step is to get everything racked and move my array to an md1200 or equallogic ps4100 or something since im a gay retard who wants his nas to match with his san, much like my socks match my skirt. at least the grill figured out how to use sickrage and couchpotato and loves plex so i don't have to justify our asinine power bills and my terrible ebay habits.

whom else rack life here

Attached: 1527254907450.jpg (1174x890, 168K)

whoops, migrating my whitebox to xcp-ng*.

i'm putting it on all my shit now because xen orchestra and the infinitely less jewish hcl compared to esxi means that i can continue to be poor while having a good as hell hypervisor.

Personally I'd go with four disk RAID5 setups. That's my plan, at least, but I'm migrating to ZFS when I get my next batch of drives so that I can just add on another vdev whenever I want to expand my array. That way you get a pretty decent amount of redundancy, not a terrible amount of space lost to parity, and marginal speed gains. It seems like the best trade off between cost efficiency and RAID efficiency.

I wasn't sure their dumbed down OS even have the tools to set it up.
>it's not common for a NAS box to spin down it's disks.
Oh, I guess I'd have to pick the disks that park the heads away instead of clicking every few seconds
>wasting some more usable HDD space
Putting 6*8TB (currently in RAID6) and a single 2TB disk in one array would waste a bit more space.
>A NAS will consume less power.
Exactly. Also less noise.

Consumer NAS would probably limit my options regarding more exotic setups, but if it can run a VM I guess it should be able to safely host whatever web-facing weird shit (like openvpn port-sharing with apache acting as general purpose proxy, relay for predefined addresses and webdav host simultaneously all on port 443)

add on another vdev whenever I want to expand my array.
So you add 4 new drives all in a separate raid5? I don't have that many drives connected to a single server to make it viable.

>anything microsoft
>kill yourself

Quick question. If you store all your data redundant across a RAID server runnin all the time isnt that more prone to disk failure then just having a backup drive that only gets used to write backup files?

Yeah, the ZFS pool is treated as one logical device, but there's multiple vdevs which each have 4 hard drives within them. I'm planning to go up to 20 drives in the future, but if you're gonna keep your drive count to a non-autist level then you'd probably be better off with snapraid and mergerfs

blog.linuxserver.io/2017/06/24/the-perfect-media-server-2017/

Yeah but disk failure is a anticipated event in a RAID array. With a backup drive you're dead in the water if your drive goes, with RAID you just grab another drive out of the closet and rebuild from parity and a few hours later everything is back as it was.

How do I backup 3tb of data? Help

>Never had a job: the post

I mean I only use Windows Server because I want to brush up on my AD skills. Otherwise I'd only run RHEL and CentOS.

On a home user budget, your only real option is to buy more hard drives. You can get refurb 3T drives for $60-something bucks.

Main Server:
11 TB (555GB free) - Data
871GB (140GB free) - Client Backups
Roles: Media Streaming/File Sharing/Remote Access (FTP,Web page Gui, & Remote Media Streaming)/Client Backups. Raid 5 and Raid 1

Primary Backup: Zyzel Nas
Full Backup of all server data
12TB Raid 5. Shutdown when not used

2nd Archive Backup: HP Microserver w/FreeNas

8TB RaidZ1
Shutdown, To be used only in event of Main Server and Primary backup failure

All connected to UPS along with network gear

3TB External - Server System image & backup of the client backups

ASRock H170M Pro4
Intel Core i5-7500
SeaSonic M12II 520 Bronze EVO Edition 520W
Thermaltake Core V21 Black Extreme Micro ATX Cube Chassis

1TB SSD
64GB DDR4 RAM

Runs ESXi 6.0u3
Apache web server, IRC bouncer, pihole DNS, OpenVPN, Tor middle node, pfsense firewall, and an active directory lab.

Wish i could install a few extra NICs in there, but my motherboard doesn't recognize any PCI devices

Attached: 20180526_010409.jpg (4032x3024, 2.87M)

>pic
Phong Reflexion modell

>having a carpet consisting of maggots

hello friendo

Attached: tentacles.jpg (2984x3376, 2.29M)

I want to build a NAS so i looked at nas boxes and those prices are a fucking joke. So i just want to nail a bunch of hdds to a plank, will they overheat?

Any idea if it's possible to run pfSense as a VM in Proxmox with only one NIC on the server?

I found this (ASRock X99 Extreme4) motherboard that has 10 SATA3 ports so that I can connect many HDDs to it. I want to run Linux + mdadm raid + iSCSI.

Is there a better board that won't cost me as much. This board requires me to buy i7 which are ~$400. The whole configuration would be ~$1.5-2k, which is too much for me.

Yes.
It's not gonna be easy though. You'll have to set up VLANs too.

What are the steps to convert my rpi 2 into a decent server for file storage?

Looks like ill need to add a SATA HDD with USB to SATA adapter. Whats the best way to power the drive just another adapter? Anything else I should think about?

>Look into Samba
>get an external HDD enclosure, those have a build-in usb-sata
>powering a 2.5" HDD over the USB is possible, provided the rpi is powered by a decent powersupply
May have forgotten things, but these are the basics

>What are the steps to convert my rpi 2 into a decent server for file storage?
it will be shit buy a cheap old motherboard with 6 sata slots and it will cost the same but you can actually use some psu and have no problems running up to 10 hdds with an expansion sata card

Is there any evidence that VPNhub is affiliated with Pornhub? Other than the name and design, there seems to be no connection

I looked forward to the voice chat inclusion for a long time, because as a foreigner i expected to be bullied, abused and degraded there constantly, which is a huge turn on for me, but so war nothing at all.
What the fuck? I read about all these trannies and such being bullied hard so how come i never get any action myself?

Anyone?

do you work for NCC?
i'll be in your NYC office this week for an interview

is 400 - 600 Mb/s transfer rate over GB lan good/average?

average.
[ 4] local 192.168.100.1 port 7955 connected with 192.168.100.101 port 59403
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-10.0 sec 1.07 GBytes 917 Mbits/sec

cheapo mobos as file servers are
1. ugly as fuck
2. power hungry
3. require active cooling for the CPU
4. massive waste of space
5. psu/mobo/cpu/cooler/ram != £15 pi2

Just no, user

Top: Games PC (ryzen 1800x + rx580)
Bottom:VM/File Server/Firewall (dual xeon 8cores @ 3.3GHz, 64Gb RAM ~40Tb Storage)

The cases are both X-Case eXtra Value X415 E-ATX with replaced/removed fans, as the fans they came with were molex with no speed control

Waiting on a fan cable before I fit the GPU+SCSI card(for LTO) to the server.
The "rack" is the classic LACK table from IKEA up-ended with castor wheels

Attached: IMG_20180526_162434[1].jpg (1764x1920, 987K)

settingup openbsd on my thinkpad for homeserver. Going to have the learn its init sytsem.

I'm glad I'm not the only one who put my regular desktop in a rackmount case too. Those cases look for all the world like the Rosewill 4U ones I'm using, except mine have black side/top panels.

I already moved to a lot of openbsd daemons for my linux server. I will take the bsd plunge someday.

>AD
>not OpenLDAP
McFucking kill yourself
>NSA/RHEL and NSA/CentOS
And it only got worse

uk.pcpartpicker.com/list/cRYbLJ

Current build. Haven't added storage, but it'll be a boot SSD and then WD HDDs for long term storage. WD Red or Green

Hi /hsg/, can you advise on any improvements I can make?

Used to. I moved to an in-house security engineering role after around a year there. It's a good place to start a career in infosec, and you'll meet a lot of pretty smart people if you get the gig.

>pi2
pi can take a couple of usb hdds that require external power source so it's not even standalone and it will be even uglier than having an actual case to put the hdds in into which the mobo actually fits
old mobo is the best nas period and you can buy a cheap old pc with everything needed for a nas for under fifty bucks

>3 R610s
>15TB storage
>haven't even turned them on in 6 months
why the FUCK am I so stupid

Periodically rsync it to a 3 TB HDD.

I see people talk about pfsense a lot, but I guess I'm still not really sure what it *does*. Is it just routing software?

Yeah. Install it on a computer with two or more network interfaces and you have a router. It comes with the kind of shit you'd expect, like a DHCP server, DNS resolver, and so on. But it is just FreeBSD with a web interface and a custom installer. If you want to you can do the same thing manually on the BSD or Linux of your choice.

Also available: OPNSense, which is a fork of pfSense.

Thank god. Just checking to make sure it was in normal range and not piss poor.

>powering a 2.5" HDD over the USB is possible, provided the rpi is powered by a decent powersupply
>Looks like ill need to add a SATA HDD with USB to SATA adapter. Whats the best way to power the drive just another adapter?

Some of the more power hungry 2.5" internal drives don't work when used with SATA to USB 3 adapters, because USB 2 is limited to 500 mA, regardless of the PSU (speaking from experience). However, my actual 2.5" external hard drive did work with my rpi3. My current setup is is a banana pi m2 berry (has SATA) connected through a SATA to SATA data + molex adapter (pic related), and the molex is soldered to the rpi PSU's cable, so it's all powered from the rpi PSU. So your options are:
>3.5" external drive/internal drive + enclosure (all of them are powered externally and not from the USB port)
>low-power 2.5"external drive (gamble)
>low-power 2.5" internal drive with a SATA to USB adapter powered through the USB port (gamble)
>any 2.5" internal drive with externally powered USB to SATA adapter (likely the most expensive option)
>any 2.5" internal drive with USB to data-only SATA adapter and a molex to SATA power adapter soldered onto the rpi PSU
Most of the USB to data-only SATA adapters are sold in bundles with PSUs and a bunch of other cables increasing their price, but here's one that's just the adapter itself (you also need one of those red SATA to SATA cables for it though): ebay.com/itm/401093231635

Attached: file.png (390x265, 77K)

Can do the same with a Windows server box. Back in the day when Routers were expensive as fuck and you needed to segment the lan or configure remote users access it made good choice. Just make sure that whatever server faces the internet/acts as gateway that it has good firewall and is just dedicated for that task

As for the actual steps to convert your rpi 2 to a file server, I would recommend using raspbian lite for the OS (you don't need a GUI because you'll be managing it through SSH), samba for sharing files, and rtorrent if you want to torrent (the guide for setting up rtorrent on the archwiki is pretty good).

Trying to set up a home server as a fallback to my rented primary in a data center. Anyone know how to properly configure a mirror DNS server with BIND9? And how could I get my domain registrar to accept this server as a secondary DNS even though it's on a dynamic IP?

Is there any reason why I should get my own server to practice netsec stuff on?

I think you could do that with VMs too. More of a hassle but costs less.

Pi zero master race

Attached: Screenshot_20180526_230429.png (570x246, 19K)

watch out for ryzen, they had CPU issues. problems compiling.

Looking to get started with a home server running the following:
Torrent seedbox/RSS
File server
Email
VPN
Web scraping

Would an SBC be enough for all of this? I'm not sure that they have enough RAM to run everything, especially if I needed to run headless chrome or something similar for the web scraping. Also concerned about the lack of expandability.
If not, any recommendations for cheap hardware? I'm open to used stuff, could be desktop or actual server hardware.

>not using SELinux on Linux
>not using AD on Windows
It's like you don't want any security at all.

Am I doing it right?

Attached: 20180114_010519.jpg (4160x2340, 1.39M)

>My current setup is is a banana pi m2 berry (has SATA) connected through a SATA to SATA data
What transfer speeds do you get?

Have had a pi for 3 years, tinkered with it, explored linux distros and python programming and taught myself the ins and outs of web hosting, now looking to move on to something a wee bit more powerful than the tiny ARM bugger. Looking at something equally compact but not as small. Got a budget of about 250 bucks. Would pic related be something you guys would recommend, and if not, what sorta hardware should I look into?

Attached: 1000.png (978x550, 172K)

~100 mpbs using scp/rsync, ~300 mbps through samba

>Would an SBC be enough for all of this?
Yes. I do all those and then some and use only 600MB RAM

>especially if I needed to run headless chrome or something similar for the web scraping
>web scraping with chrome
Learn Python and play around with Beautifulsoup
>Also concerned about the lack of expandability.
For what you're gonna use it for, this is not a concern.

can you suggest some demons to run on openbsd?

I've had the NUC5i5RYH going strong for a few years running servers 24/7. They're stellar little boxes.

Pulled some really cheap NIC out of a decade plus old Dell desktop. Shouldn't be any problems using it as a second NIC for pfSense on my server?

Hmm 500 bucks is a bit too much for me rn, kinda have a semi-broke college student situation going on. Just wanna have a decent upgrade from the slow and tiny pi.
Looks really neat though, specs are nice and I've read a few really positive reviews of it!

Get whatever suits your needs - the NUCs in general are the best low-power, low cost, tiny form factor PCs you can buy. Don't forget you'll need to budget for RAM and storage.

Aye, storage ain't really a problem for me, got a few backup 500gig disks lying around. No SSDs tho.
I was thinking of something like NUC7CJYH, pretty cheap and looks okay

You could do all of that on an SBC, but SBCs are shit.
>shitty performance
>shitty software support if you go with a less popular model
>if you want an OS other than the official images, you're on your own
>boot SD cards can become corrupted or outright fail
>getting them to work with hard drives can be a pain in the ass
>they either can't boot from USB at all, or booting from USB is a game of luck (looking at you, rpi 3)
>shitty I/O speeds (even the models that advertise gigabit ethernet are sometimes bottlenecked to less than half of that)
Just get some cheap used PC with a 64-bit CPU and gigabit ethernet. Power usage shouldn't matter, especially if you get one without a GPU or take the GPU out.

Quick stupid question guys, is there any reason I shouldn't use some old shitbox like optiplex or elitedesk as a server when I'm only going to use it for learning and host my own website and maybe as a super small cloud storage? Pic related

Attached: 1527051461566.jpg (996x3019, 579K)

Other than showing off is there any benefit to implementing RAID on a plex server?

>pastebin.com/XYYp9TAC
That needs a LOT of work yet.

Get a USB nic. It'll be shit but give you some additional options for cheap.

you absouletly should, thats the best way to start

Or just use VLANs.

>Get a USB nic
Which should the cheap NIC be assigned to, WAN or LAN or does it matter? Whichever is getting the least traffic?

>Or just use VLANs
In pfSense?
Any guides on how to set this up? Novice when it comes to networking.

Good thread.

Is this the backup general?

Attached: 1527418938266.jpg (996x1228, 156K)

>1st summer brown out
>modem and server still running
>UPS gives gentle reminder it's on battery power
Feels comfy mang

why does nobody list the actual cpu model
I see this on ebay all the time "xeon | #cores | clockspeed"

I just want to know the architecture. almost as bad as "It's got a gaymin i7"

Attached: 1511180031218.webm (480x480, 525K)

was fixed in a revision, if you get an older one your can RMA it for free.

Also it only affected some of them, there's a tool you can use to check for seg faults

>windows updating
No, you're not.

What do you use the pi for?

the nucs are good if you want something pretty and you care about footprint.

They are kinda pricey though. desktop mini's would be the next step up, cheaper and has desktop replaceable cpu

for testing, no, if you are gonna run it 24/7 think about something low power unless you need the grunt

yes but its recommended to have a physical separation. just create a virtual nic for LAN and use physical for WAN.

there's loads of guides out there

This guy gets it.

Is this image still in use. I made it a few years back and recently found it on my old phone.

Attached: IMG_1036.png (900x600, 720K)

yes, but i dont remember how, seems configuring "alias" in your hosting (maybe cpanel) pointing to your dinamic dns, when querying for custom1.yourhosting.com point to yourhost.dyndns.com, not sure anyway

What about laptops? Currently I'm running a server in a toshiba i3,3gb ram and is ok, but now nit enough, looking to change it for something more effective

Im really into playing various PC games online. But a lot of the servers i play on come and go. As a complete tech illiterate. If I learn how to run one. I can run my own server 24/7 from my home, right? Or am i daft to think that