your house needs TWO networks (here's why)
Transcript
Hey. Your home network is dangerous. Light bulbs, door locks, cameras, all with WiFi,
smart, living on one network. That's a problem. You'd most likely have forgotten about your smart fridge. Oh, of course. Smart switches as well. Yep. Forgot about that one. It it only takes one device for a a skilled
hacker to pivot into your network. You don't know which of your IoT devices has a vulnerability until a hacker takes advantage of it. What's the worst that can happen? Malware in the family nest, or maybe a few of your devices decides to join a botnet and attack hospitals. Or sometimes you end up being streamed on the
Internet like in the Truman Show. So can this mini PC I bought from Japan, this random switch, and AI running on a Raspberry Pi help protect Mike's family from their IoT gremlin devices? Let's find out. The problem that you and a lot of other people have right now is that you only have one network. Whoo. That echoes. Only one, but you need two or three or maybe even seven if you're committed. But why? If you have the the networking gear, just segregate
them. If not, just move them to the guest network, and that's going to be much better for your core network security. Because Bogdan said so. He's an IoT security expert, and this is one of the best thing you can do to protect yourself from IoT devices. So put your IoT devices on their own network, their own special area, quarantined, where they have no access to talk to and hack your family's devices on your main network. And even if they do get infected or taken over by a hacker, they can't get to the other network. Now back to what Bogdan said. If you have the the networking gear, just segregate
them. Okay. So this home router that you have probably does not support multiple networks. That's the bad news. But this Japanese mini PC I bought totally does.
We turned it into an extremely powerful open source firewall in our first episode. The only problem is I don't really know how to configure this completely. We're gonna figure that out together. Also, I don't know if this switch is going to work. I don't know if they're gonna work together. I really hope it does. I've never used a QNAP switch. It has a dent. Why? Also, and this might be the biggest mystery, how do you actually create another network when you only have one device? Like, won't you need another router? No. VLANs. Once I got logged back into the firewall and I reminded myself of how good it was Man, this thing's fast.
So I set about the task of creating our new networks using the magical technology of VLANs. I know. You're like, Chuck, what the junk is that? I'll get to it. I'll get to it. But first, let's just make it. That's the best way to learn something. Right? Just do it. If it breaks, we're gonna learn more. Right? So I had to read up on how to do VLANs in OPNsense on their documentation. After I did that, I took the plunge and tried to actually create one. Alright. Let's set up our first VLAN. We'll go to interfaces, devices, VLAN. And here, we'll hit that plus icon to add a new VLAN.
The parent interface will be our LAN interface, re1. VLAN tag? What are we gonna do for Mike? Let's do 13. We'll call this user network. Save. VLAN created. Okay. So we just created a new network, a brand new network out of thin air with that magical word I keep using, VLANs. What even is that? VLAN stands for virtual LAN or if we unpack it more, virtual local area network. Now you may not know this, but you have a LAN right now. You have a local area network. It's probably what you're using to watch me right now. It's your router with the Wi-Fi and all the devices that you connect to in your house.
That's a local area network. Now it's this virtual part of the virtual LAN that allowed us to create that network out of thin air. We can actually create thousands of additional networks, and all we need is that one physical device, our firewall or router. It's kinda doing both. And seriously, we literally just did that, and it was kinda easy. Right? Also noticed that when we configured it, we had to actually attach that VLAN, that virtual LAN to a physical interface, its parent interface.
It needs something physical to hold on to, and that one physical port we have will be shared with all the other VLANs we create. I know. It's kind of magic. Right? But I'm still worried about this. Hold on. I'll be right back. Hey. Real quick. I want you to think about this. Right now, this entire video is about securing your network and your devices. But what if some laptop in your house already has infostealer malware on it? Sure. What we're doing here might protect it on your network, but if you walk out the door and connect to a different network, compromised. And then those passwords get sold.
And this is a scary thought right here. Attackers don't really hack in anymore. They simply log in. So how in the heck do you know if you're compromised? That's what Flare is for, the sponsor of this video. Flare watches the dark web for you. Now check this out. They watch everything. This is their collection overview. That's a big number. You can't even say that number, can you? I can't. I can't. Just kidding. It's like 2 trillion? Yeah. One, two, three. Yeah. 2 trillion. They're looking at over 150 million stealer logs. Just in the past three months, 8.5 million. There's more than a million each week.
They're monitoring 127,000 Telegram channels, which I don't know if you knew this. That's where a lot of that dark web stuff goes down. These are just the chat messages they've logged and looked at in the past three months. Also, Signal. And we can't forget about the communities. They're monitoring dark web forums. 18 million posts in the last three months. Let's go look at it. Look. It's anonymous. Most active sources, 4chan. It's kinda funny. Now they're watching all this stuff so they can protect you and me. Look at this. If I go to my tenant feed, which is all those events in regards to what they found for me in relation to that.
And look at that. It's found infected devices for my domains. That means some of my students that log in to my academy have infostealer malware on their machines, and their credentials are for sale on the dark web somewhere. If you look at my dashboard, it'll get scarier here. 33,400 infected devices. Look. I'm not a very big company. Can you imagine what an enterprise looks like? Can you imagine what yours looks like? And think about this. One stealer log on a machine is a machine's everything. It's passwords, cookies, VPN logins. They can buy it for $10, and a stolen session cookie can bypass two factor like that.
It also found leaked credentials in my own accounts, which is not great, and it found lookalike domains. People doing some typo squatting. Like, that's what I'm talking about right here. Someone bought that. They're just sitting there trying to get people to download malware. Listen to this. 54% of ransomware victims had their info sitting inside infostealer logs before the attack. Nowadays, attackers only need 48 minutes to compromise you. Most companies take 36 hours to notice. Flare gets that down to seconds. It will alert you. It will check whether the account is real and active, and it can kill the session before anybody opens a ticket. I know you're curious.
You want to see if your organization's sensitive information is already out there. You can try out Flare and find what exposed enterprise credentials are out there. And a massive thanks to Flare for sponsoring this video. Now back to the switch. I'm worried about the switch because not all
switches can do VLANs. Let's see if it can. So I got it plugged in, connected, and desperately waited to see if it would get an IP address so I could configure it. Did it get one? Let's see if it got an IP address. It did. Now the reason I'm worried about the switch is that it's a managed switch lite. Again, you can't just use any switch you want to to do what we're trying to do. An unmanaged switch is just a power strip for networking, just extra ports, and it's got no brains. It's a dumb dumb. And this is your typical switch you might buy at Best Buy, TP-Link or whatever.
A managed switch gives you the ability to manage it and configure some magic like VLANs. But this sucker, it's managed lite, and I don't
really know what that means. So I got in and I just winged it, and, I screwed
up. K. Let's configure port one as the trunk port or
a tagged interface. Tagged. Wrong. That's not how you do it. Oh, wait. It didn't apply it. Am I crazy? So this config wasn't applying, and I was kind of losing my mind a little bit. But what am I trying to do here? Like, what's a tagged port? What this allows us to do is carry multiple VLANs or multiple networks over one port. Essentially, cable becomes a tagged port or what's called a trunk port. Now I was right about what I was trying to do. A trunk port or a tag port when configured correctly will allow just one port to carry multiple VLANs or multiple networks.
It could be two networks, three, ten, thousands. And it does this by essentially tagging the traffic or assigning a label. So it might say, hey. For this port, this is gonna be VLAN 13. Any traffic being spit up by this? I don't know why I thought spit up. It just kinda looked like that. This is VLAN 13 traffic. While this port, we might tag with VLAN 14, and it would only spit up VLAN 14 traffic. And just so you know, like, when a device is connected to that port, say we got a laptop over here and a desktop over here, it doesn't know anything about what VLAN it's on.
It doesn't care. It doesn't need to know. All it knows is, hey. I'm connected to a port, and that port gives me access to stuff. The VLAN tagging happens on the switch. So by default, everything I plug into the switch will be on the same network. We don't want that. And here's how we change that and how I kinda fumbled my way through QNAP's weird settings. I just had to hit the plus sign. That's it. It's that simple. I was being dumb. I'll own that. So I hit the plus sign to add a new VLAN to the switch. And it's in that VLAN config that I can actually see which ports I can add.
And I can either add them as an untagged port or a tagged port. So for VLAN 14, I made ports nine and ten untagged. That means anything I plug into port nine or 10 is on VLAN 14, our new network. My computer doesn't need to know anything. The switch handles it. And then the connection to our switch, it can't just do one network. We need it to carry multiple networks. This is gonna be what's called our tagged port, but we have to specify what VLANs we want to go across that port. So for each new VLAN we made, we had to mark port one as the tagged port for that VLAN.
Now figuring this out was a victory, but does it work? I actually don't know because we've only done about one fifth of what we need to do to make a network a network. Our VLANs right now aren't done, but I I honestly got so frustrated trying to get all this to work. I am flummoxed. Crazy? We're not getting an IP address. We cannot see that network. What is going on? Wait. What? Now it's time to troubleshoot. I don't know. I just gave up, but I had to get this done. I can't let this network beat me. I'm NetworkChuck. So I brewed a fresh cup of coffee and I came at it again, caffeinated.
Alright. New day, new me. Plugging back in my port to get access to my
switch. Now here's our problem right now. We've configured a new VLAN, VLAN 14, our new network. But when we plug a host into that port, nothing. We get an APIPA. Sorry. This self assigned IP address tells you nothing is working. Why? Now we need three more things to make this a real network. One, a VLAN interface. Two, DHCP. And three, firewall rules. And by the way, DHCP almost killed me. I had to use AI to help me figure it out. Firewall rules were actually pretty fun. Now this VLAN is nothing. Nothing at all without a VLAN interface. What does that mean? Coffee break. I mean, I know what it means, but I didn't know what it means in OPNsense.
So I had to read the documentation, which is pretty good, but also a little bit confusing. They could use some work. And what I learned is that OPNsense is confusing,
or maybe I'm just not used to it. I'm a Cisco boy. So here's what we have to do. We're gonna go to assignments, and we're gonna create a new interface for VLAN 14. And notice we have to use the physical interface as the parent. And now with the interface present, it's not just a VLAN anymore. It's a VLAN with an interface. Now we can assign an IP address. And this this is a giant step into making this a network because this gives our new network a router. And you're like, Chuck, what do you mean? We're on the router. Yes. We are. But for that network, this router was not a router yet.
Notice how our LAN interface, the the default network that came with OPNsense, it already had an IP address. It already had a network for its VLAN. I mean, that's how we're accessing it now, but our new network needed its own IP address, its own router that we could talk to. Now what IP address? It's up to you. I chose the private class B IP address of 172.16.14.3. And if you're like, Chuck, I have no idea what you just said. That's totally fine. This is new for lots of people. You can copy me, or if you wanna deep dive on what that means, go check out NetworkChuck Academy.
We have an amazing CCNA course that'll show you everything. You'll be a subnetting ninja. And done. Now we have a router for our network, but we still can't access anything. If we plug in something to VLAN 14, we're still getting an APIPA. Again, that's what that is. So this is where DHCP comes in. The dynamic host control protocol is the reason that any device on your network has an IP address. And how it usually works is your router operates not just as a router, because routers are cool, man. Router... That felt weird saying it. Routers can also operate as a DHCP server. In a lot of cases in a home network, that is what they do.
So when our devices connect to that network, whether it be a switch or over Wi-Fi, doesn't matter. That's the worst laptop I've ever drawn. It's so bad. So when it connects to the network, it's gonna ask your router, the DHCP server for an IP address,
which is essentially its phone number. It needs that IP address to be able to talk to any other device and for any other device to talk to it, and that includes the Internet. Now setting this up in OPNsense was actually pretty simple. In most cases, on most devices, you'll set up what's called a DHCP range, telling it, hey. I want these set of IP addresses assigned to my network. It's called a pool of addresses. And whenever a device connects to it, bam, it'll get one of these IP addresses. But for me, I set up my network as 172.16.14.0 slash 24. All this means right here is that my network is this big, 172.16.14.0
through 172.16.14.255. Notice the first three sections of numbers don't change. The last two... Now, again, not a deep dive, but it's important to just note that the IP address you set for your VLAN interface, which for me, I set that as 172.16.14.3.
And notice that's within this range. And then for my DHCP range, my DHCP pool, I'm
gonna set that as 172.16.14.100 through
172.16.14.200.
Now you can set this to whatever you want in between this range. This is just a common range I use. You're getting 102 IP addresses that you can hand out to your devices in your network, which in most cases is more than enough for a home network. Subnet mask will be 255.255.255.0. There's a one CIDR. I don't know. We'll go with that. Work network. K. I think that's all we had to do. So now in theory, I should be able to connect myself to port nine or 10 and receive an IP
address on that network. Bam. Port nine. Let's see what happens. Network settings, still not connected. Let's get that new IP address. Self assigned IP, which means we're not getting an IP address. We cannot see that network. So remember, when our device connects to a network, it sends out a DHCP request saying, please give me an IP address, but we're getting nothing. Why is it not listening? It's driving me crazy. So I asked Claude Code. I gave him access to the thing, the box, and said, look at it for me. What am I missing here? And you know what I found out? It wasn't listening. I'm not kidding.
And this is OPNsense's fault. A little bit of mine, but mostly theirs. Because it's kinda hard to find this setting. We have to go to the general tab of the Dnsmasq DHCP settings. And where it says interfaces, we had to drop this down and add the other interfaces by checking them like a checkbox, which is not... It's not obvious to do that. The only interface listening at that time was the LAN interface, and we aren't on that network, so it wasn't replying. Adding the other networks made it go, oh, oh, oh, DHCP's on this network. We're listening now for any request that comes in. And once I turned on that, just one simple setting.
It's always one simple setting, isn't it? Boom. IP address. And this is a big moment because not only do we just verify that DHCP works, but we also finally verified our switch works. Up until this time, everything was theory. Like, I hope it connects. But knowing that we got an IP address from our OPNsense firewall on that particular network that we configured that v... That port for, that tells us everything, and that's that's a victory. This switch can indeed operate with multiple networks. Yes. And now we're good. Right? Like, we have Internet access. We can do stuff. Wrong. We can't do anything. The firewall is blocking us.
And I know what you're thinking, Chuck, we haven't done anything with the firewall yet. I know. This is what I love about firewalls and specifically OPNsense. They deny by default. Everything is blocked unless you allow it, and that's powerful. Annoying. I'll I'll give you that, but it's good. You need that, don't you? And this actually is not crazy. Let's configure it right now. And all we're gonna do is add one simple firewall rule. Firewall rule, that's hard to say, to allow our work network to access the Internet and pretty much anything in our network because we want that to be able to do it. It's our work network.
So check this out. We will choose our source interface as work. That's the interface we make. And then we'll say our destination is anything, and then our action that we're gonna perform on that rule is allow. And once we add that, boom. It just works. We now have access to the Internet. We can access any other network. That rule allows us to connect to anything, but that's kind of the opposite of what we want from our IoT network. Right? Like, we don't want that to access most things. Sure. Take the Internet, but don't access my work network or my user network or my family at all.
So I quickly set up the other VLANs and networks, just rinse and repeat. Got IP addresses, verified it all works. This stuff is actually pretty fun. If you've never done this, try it. Networking is awesome, but we're going to do something fun first. We'll also set up what's called an alias. This will make our lives a bit easier. Essentially, we're gonna group the other private networks we have into a, a group, And then we'll
set up a firewall rule that says anything from the IoT network, anything coming from that interface will be blocked. That's the action we're selecting, blocked when they try to access any of those networks we put in that alias group. And time for the moment of truth. Are you ready? Let's see if this IoT network can connect to anything or ping anything in our main networks because we don't want it to. That... That's the idea. Ready, set, go. Boom. Nothing. I got really excited there. What we just did right was we successfully deployed a separate network on this one device, and it is isolated from the other networks.
Our IoT devices can no longer hack us. And what's crazy is even though they might be on the same switch, like, literally plugged into ports on that same switch and connecting to the same device, the same firewall, it doesn't matter because when this IoT device tries to access this laptop, it can't just hop over from one port to the other. Because it's on a different network, it's going to go to the firewall first, the router. And if it's allowed, it'll send it right back down, but the firewall rules don't allow that. Says, nope. You can't go. Denied. Mike, dude, we just secured your network. IoT devices are secure.
They can't attack your family. You're safe. What's an IoT device?
Do you have any? I I don't know what they are. Are they... Are are they Ring cameras? Those are IoT devices? Yeah. Actually, yeah. I don't have any of those or or Alexas or anything.
Well, crap. Now there are two big things missing right now. Did you notice? The first one is kinda big, Wi-Fi. We don't have any Wi-Fi. Hey, Mike. Do you want Wi-Fi in your house? You don't need that, do you? I think I need it for my stuff. Right? Yeah. I guess you might need it. For my TV. Right? Okay. We'll have to get Mike Wi-Fi. That'll be in episode three. But what about the AI agent I mentioned at the beginning of the video? Running on the Raspberry Pi. Yeah. He's running. He has full access to Mike's firewall. Actually, we didn't give access to the switch.
Can I do that? The problem with that lite managed switch is that it doesn't have a CLI, which is normally what an AI would look for. Let's see if Pig, the AI agent, can access the switch. Kinda taking a long time. Oh, cool. It did it. Oh, it can do most things. Let's make this a proper skill. Okay. He's got a skill. Now Pig is also connected to the OPNsense firewall. We did that in episode one. He's really gonna help us out in episode three, though. Say goodbye, Pig. Pig is logging off the switchyard for now. May your packets be fast, your VLANs behave, and your Wi-Fi never mysteriously fix itself only when someone walks into the room.
Smash that like button, subscribe to NetworkChuck. And remember, if it blinks, it probably has a web UI.
That was good. Hey. You made it to the end of the video. At the end of my videos, I like to pray for you, my audience. It's a little weird. I know. Just go with it. It's not an accident that you made it to the very, very end of my video. Not everyone watches till the very end of a video. Right? This is rare. So let's pray. One, two, three, pray. God, I thank you for the person I'm praying for right now who's sitting in that chair, who's on a walk, who's in a car, where... Wherever they're at. I ask right now that you bless them and their
life. This whole video has been about protecting their network, securing their devices.
And right now, I pray for security and protection over their lives. That if they're feeling fear, if they're feeling
anxiety, that you would give them peace right now. If they're experiencing real threats of danger, that you would protect them, God. Protect them and their families right now.
And if they're feeling just attacked emotionally, spiritually, there's anything just wearing them
down and it feels like it came out of nowhere, God, I ask for release from that on their lives.
I pray against anything right now that's affecting their life right now. And I pray ultimately, God, that they can know the peace that's found in you, Jesus, the life that's found in you.
Bless them right now, Lord. I ask in your name. Amen. Hey. Thank you for letting me do that. That's all I got. I'll catch you guys next time.





