This is How You WatchYourLan

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys how's it going hope everybody's doing well out there today um there have been a whole bunch of new subscribers since my last video that has done really well i want to thank everybody for watching that and the 420 new subscribers that i picked up since that video thank you guys so much for subscribing and coming back to check out what we're gonna take a look at on today's video uh in fact to talk about what we're gonna talk about in today's video and what we're gonna do is take a look at a way to uh kind of keep up to date as far as what devices are on your lan as well as what ip addresses are assigned to them that sort of thing and we're definitely going to cover uh how it works what it does those sorts of things but first we had to pay some bills and get a quick ad from today's video sponsor this episode is sponsored by lenode the largest independent cloud computing provider if you don't want to or can't for whatever reason self-host applications the way we talk about on this channel lenode provides virtual servers that make it easy and affordable for you to host anything in the cloud you can set up any of the applications that they have available in their marketplace with just a few clicks or you can set up your own docker vps and install basically whatever you'd like in a docker container they have load balancers and firewalls available to help keep your apps online and safe if you run into any trouble getting set up lenode comes with amazing 24 7 customer support by phone or ticket along with hundreds of guides and tutorials to help you get started sign up today at leno.com dbtech and get a 100 60 day credit on your new lenot account links are in the description so this is a docker container called watch your lan and we can actually see that right up here in the title bar and we can see that it is online it is scanning interfaces we're just we've just got one interface on this docker server it's actually going to be um but that's kind of irrelevant because we're actually going to uh when we when we set up this docker container we're going to connect to the network host so that it can actually scan your entire physical network to get an idea of what's on there and then render a page that looks similar to this uh basically you know we've got our like i said we're online we're scanning on that interface and then under that we've got all of our online devices all the devices on our network that are currently online um and when you first log into this page just for a little bit of transparency none of these names are going to be filled out those are names that you're going to give to each of your devices just so you know what they are just kind of a quick reference there but in the next column we get a list of all of the ips on our network there is one little one little thing and i don't blame the developer for this this is something that i've experienced as a developer myself uh we start with 1.1 and that's great and then we jump to one dot 13. in this case we you know 1.10 one nine eleven one dot whatever right and so then we go all the way down this is all done numerically until we get down to uh right here 99 100 then we get 11 then we get 30 then we get 12. so there's just i i hate sorting order like this just because this type of sorting order requires a three-digit thing to figure out the proper order and when you've got you know when your ip address is the last two digits or the last octet i guess of your ip address is two digits things get a little wonky um so i just i wish there was a way to fix that but for right now this is kind of how it is so if you look if it seems like you're missing some stuff scroll down it may actually be at the bottom of the list because of sorting uh if we go back up to the top our next column is the mac address for each of those pieces of hardware now if you're running vms and things like that uh some of these uh mac addresses are going to be spoofed they're not going to be really mac addresses for the particular piece of hardware so that's something to keep in mind there the fourth column this is what uh the the the docker container this watch your lan was able to figure out based on the the mac address of your of your individual device so it figured out this is synology this is synology this is a google device um you know we've got another synology device we've got a noon technology raspberry pi uh a gigabyte and more noon stuff though the noon stuff is all uh terra master stuff um like the the gigabyte that's my wife's computer um you know we've got uh this uh shenzhen uh i'm not even gonna try on the rest of that uh that's the 10 gig network adapter that's in my pc um so you just this is all the stuff that it was able to ascertain based on the the mac address of each different piece of hardware now our last column is known yes or no when you first log in here these are all going to be no uh known is is once you've actually named the device it will switch to yes so in order to name the device what we're going to do is actually scroll down to the second half of the page where we've got our log section and here we can see that i've gone in and i put names in uh on all of the all of the stuff that i knew kind of off the top of my head so we can kind of see all of that um and then let's let's just look at uh 1.63 here we're going to call this test device and then i'm going to remember we're on 63 uh and i put in test device i'm going to click no right there that's going to save it so if we come back over here look at 63 at the top of our screen that's online there's 63 there's test device there is yes uh if i wanted to i could then come back down find 63 delete that and then click yes again uh and then it should it take it out of there just like that so that's how you can uh manage your different instances your different devices on uh on this uh and that's that's really it that's all there is to it it'll scan your network about every one to two minutes to look for new things and this page will automatically reload and then you can adjust as necessary so uh so that's that is watch your lan in a very quick nut shell as far as how it works uh so now let's actually take a look at getting it deployed so first let's actually head over to their github page uh where we're going to see uh their their setup for docker right here with the docker compose.yml we'll take a look at that in just a moment uh below that they've got their little icon that they're using watch your land the docker the image size is 13.3 megs so well done on that uh here of course is um you know the little the little screenshot that they've got of one of their instances they've got a docker quick start with cli just some very basic stuff to run a command or in a command line situation if you wanted to do that um and then the default port on there is 8840 but we're going to look at the docker compose before we get into that and then down here we've got some different uh environment variables for the interface the database path uh the the uh the i the ip address of uh the actual user interface which you can just leave as 0.0.0.0 again we'll take a look at that you don't need to mess with that uh the gui port or the gui port uh basically that is by default like i said 8840 we can see that right there however if you've already got something on 8840 you can change that um below that we've got a timeout how long between scans uh by default this is set to one minute i think i've got mine set for two you can change that to whatever you'd like it to be uh below that they've actually got a shouter url integration uh we're not going to take a look at that i don't know how many people on here are that are watching this use shouter for uh for their notifications um but but you can use a shouter in order to get notifications you know whether it's on slack or discord or whatever uh to to just let you know hey there's a new device on your network you might want to check it out and then below that they've got some themes that you can use by default it's not great looking it's fine but whatever but you can come over here to bootswatch and find a theme that you like um and uh just put that in there and you'll get kind of whatever these different themes look like so i dig that they've done that i love that they've they've used a third-party service in this case to uh to give us some choices uh between uh different looks and feels uh aesthetics that sort of thing so um again like i said there's a docker compose up here that we can take a look at but in fact i guess we can just do that real quick uh this is it man this is version three uh docker compose your service there's just one service it uses a sqlite database to manage everything so it doesn't really need a mysql database or a maria database or a postgres database it doesn't need anything real intense like that um so the image is aceberg's watch your lan network mode is host again it needs access to your host interface in order to do a proper network scan to see what's out there and then collect that data for uh for your dashboard the restart policy is unless stopped i think that's just perfectly fine volumes we're going to mount a volume for where we'd like to store our configuration in this case primarily it's just going to be a sqlite database that we're going to store uh our environment variables below we've got a time zone an interface which we'll take a look at here in just a moment our database path leave this alone you don't need to change that that's perfectly fine where it is because we're going to map our volume somewhere else i'm not even entirely sure why we've got a database path in there but there it is uh again the uh the gui or the gui ip again you can leave this uh at 0.0.0.0. in fact if i'm being honest all of these options are optional so um there you go uh again the gui ports 8840 if you need to change it uh the timeout again i've got mine set to 120 i think it defaults to 60 seconds uh shout out url again if you use shouter have that and then the theme that they that they use by default is darkly so that's what our docker compose is going to look like by default now let's take a look at my docker compose here okay so here we are we're logged into portainer so that we can take a look at what my docker compose my stack whatever uh we can see that it is running right here again because we're using the the network host option in here we're not going to see an ip address report over here um again that was set in the docker compose so let's take a look at that again all of this is the same except for where i stored my docker compose or where i where i stored my configuration rather anyway again so the only thing i really changed down here uh was uh my interface my my iface is what it's uh what it says there if you're not sure what your interface is it depends on which which operating system you're using but we can take a look at a couple of different ways to find out what it is so uh the first method that we're gonna look at as far as figuring out what your interface name is will be uh via open media vault 6. uh we've taken a look at openmedia vault 6. there's a chance you might be running it if you are this part of the video is for you what you're going to do let's come over here to where it says network we're going to go to interfaces and ens3 is right there under our device and again we can actually see that right there the other method that we can take a look at is actually how to do it via command line so let's take a look at that real quick so the other method that we're going to take a look at is doing this via ssh or command line uh here we can see i'm rooted in or i'm logged in to my server as root that's just the user that i'm using here and what we're going to do is just do ip link show and hit enter and then what we're going to do is kind of make this bigger and scroll back up to the top and basically we've got uh basically our our first two or the two that we're going to look at the first one is a loopback we're not going to use that uh the next one is what we're looking for right here this is our broadcast multicast uh this is the first one that we're going to look at and this again says ens3 so that's kind of the two different ways you can figure this out there are probably a multitude of other ways that you could do this these are just the two that i figure will be the most likely that my audience is going to take a look at so there we go there is uh how we how we figured out what our interface is uh again we've got our debug path our debug our database path uh anyway we've got our our uh geo our gui ip gui port uh and then our timeout our shout out url and our theme uh so what i'm gonna do is actually going to make a new stack out of this i'm going to paste this in here i'm going to change a couple of things i'm going to do uh watch your land 2 and then watch land like so and basically i just changed the volume where this gets stored um oops and then two uh as well as uh the port from uh gui port 8840 to 8842. once you've got that we can click on deploy i'll just give this a second to do what it needs to do in the background again this is a very small image even if you have to pull it it's only like 13 megs so very very quick so here we can see that it is up and running let's take a look at the logs and here we can see everything that it found uh at its first glance it's still doing some more scanning um and kind of going through everything here to see kind of what's going on we'll give this a second to finish up and then we'll jump over to port 8842 so that we can take a look at what a brand new dashboard looks like okay so here we are just a couple of moments later and here we are on port 8842 up here in our url bar uh and here is exactly what i said from earlier there's nothing in the name all of these are listed as no but we can kind of see hey i know that these three these numbers two three and four are synology devices and i know that the next one uh is uh is uh a teramaster device and i know that the next one is raspberry pi device now that's my wife's computer both of those are terra master devices anyway you get the idea like all of this is here if i wanted to i could just come down here and uh just you know put in some of this information now the one thing i will say is you have to do this one at a time you can't fill out multiples and then hit known and then click over to no it won't work that way or it didn't for me earlier when i tried it there we go so again you got to do these one at a time very quick though i don't i don't i'm not mad at how how how slow that is because it's not it's very very responsive so there is watch your land in a docker container so that you can keep track of what kind of devices are on your network and what their ip addresses are that's what i always forget is is what my ip addresses for my different devices are so i love being able to have this little dashboard here to to go back and just look it up real quick the one thing i will say is that i would not put this public facing for any reason um there there's a lot of information here that somebody could do something nefarious with if they wanted to so do with that what you will but yeah i think that pretty much wraps everything up again i want to thank the 420 new subscribers that we picked up over the weekend thank you guys so much for subscribing uh thank you to everybody who's watching for for doing exactly that i appreciate you guys spending a few minutes of your day with me today again everything will be in the description while you're down there there are some ways you can support the channel and even get completely ad-free content for one dollar a month uh so if you're interested in no more ads or no no more no more interruptions for ads and ad spots and google ads and yahoo ads and not yahoo uh youtube youtube is the word i was looking for there if you don't want any ads a dollar a month man it'll get you no more ads so there's ways to do all of that in the description down below as well as the github repository for this particular docker project but i think with all that said i'm going to wrap this up and i will talk to you in the next video
Info
Channel: DB Tech
Views: 21,323
Rating: undefined out of 5
Keywords: network scanner, docker network host, ip scanner, scan ip addresses on network, scan ip addresses on my network, advanced ip scanner vs nmap, docker network scanner, docker network scanning, scan network with docker container, find device ip addresses with docker, keep tabs on network IPs with docker
Id: DknqJrnlLQo
Channel Id: undefined
Length: 15min 12sec (912 seconds)
Published: Tue Sep 13 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.