Networking, VLANs, is this all necessary?
I'm reading a lot here about people organizing there home network with different VLANs for additional security, but is all of that really necessary or even applicable in my situation?
As far as I have understood it, in my setup (see below) there is really no point in using different VLANs for different services or device groups.
Let's go to my setup:
- One ubuntu server running: Plex, a VPN, Samba Shares, Borg server, a couple of websites for personal use which are accessible via WAN but behind a nginx basic auth, HomeAssistant. (Specs of the physical machine: J1900, 8GB RAM, 1 Gigabit Ethernet Port, SSD for the system, HDDs for storage)
- A raspberry pi running pihole
- Two Echos, Netatmo Thermostat, Philips Hue
- Laptop, iPhone, Tablet
- SmartTV and XBOX
- Network: Currently on Edgerouter-X + manageable switch + Unifi AP Lite
Possible thoughts:
- A IoT VLAN for security, BUT the echos need internet access to work and I want the Netatmo Thermostat to be available via my iPhone, because thats the whole point of it. Also HomeAssistant needs to be on the same VLAN, but it is running on a machine with a lot of other services on it.
- A VLAN for the Webserver, seems somewhat reasonable, BUT it runs on the same machine as a lot of other stuff so how would I even go about assigning nginx to a VLAN, and on top of that, if there would be an exploit, the intruder would have access to the server which runs a lot of other services and stores somewhat important data. A VLAN would not protect against that, right?
Maybe some could shed some light on the situation or point me to helpful resources.
Posted Mar 5, 2020, 10:16 AM UTC
Based on what you wrote it seems like you have no idea what VLANs are or how they work. I suggest you read more about it.
Just FYI, different devices on different VLANs can still talk to each other. It is the firewall rules that will dictate the segregation between your VLAN networks. Also, you can you can allow your Echos to talk to the the internet but not your main network/vlan. You can also allow your iphone to talk to devices in different VLANs but restrict those same IoT devices to initiate connections to your iphone or other devices in different VLAN networks.
Also, your Ubuntu server setup is absolutely terrible in terms of security. Virtualize everything, that way you can isolate each of your services (Plex, SMB shares, publicly accessible web servers, etc.) and even assign different NIC interfaces with appropriate vlans. Take a look at Proxmox, etc. I personally use VMWare ESXi.
Do you think the J1900 processor and just 8 GB of RAM will be sufficient to virtualize everything? Wouldn't I be running several independent virtual OS's then, which would each require CPU and RAM resources?
The overhead on using virtualization is not that great, unless your current setup is running at close to 100% load it shouldn't be a problem.
Aside from best practices why should anyone care about security on a homelab? You are not going to get hax0red
You can, and already seen here.
You can but you are no more likely than anyone else it's literally less then 0.01% chance hackers target things of value joe schmoes home lab generally isn't a thing of value
Hard to know before-hand, and servers online connected are always thing of value