• 2 days ago
În acest tutorial îți voi prezenta cum să instalezi, configurezi și utilizezi VirtualLAN-ul ZeroTier. Îți voi arăta cum să-l folosești între două sau mai multe PC-uri cu Windows, un server Linux, un telefon mobil cu Android și Home Assistant.

~ Pentru informații mai complexe (link-uri și comenzi) vizitați pagina pe website. ~
~ Acest tutorial nu a fost creeat să fie frumos ci să fie util. ~
_______________________________________________________
Website: https://go5.myshort.ro/dYkYOS
Dacă vrei să ne ajuți click aici: https://gohome.myshort.ro/YtP7Le

Category

🤖
Tech
Transcript
00:00I would like to thank all of you who have supported me in this journey.
00:04I would like to thank all of you who have supported me in this journey.
00:08I would like to thank all of you who have supported me in this journey.
00:12I would like to thank all of you who have supported me in this journey.
00:15Hello everyone!
00:17Yes, I know, I was absent for a while.
00:21I am involved in some rather big and complex projects.
00:27The little free time I have now is dedicated to that direction.
00:33But I took the time to keep my word.
00:37I promised you a complete VirtualLAN solution.
00:41And I want to keep my word.
00:44So let's not waste time, let's get down to business.
00:48What I propose is ZeroTier.
00:51You can find ZeroTier on the Windows application.
00:55I'll think about modifying it, we'll see later.
00:59So, the simplest solution for VirtualLAN.
01:03Good.
01:06Nothing very complicated in this tutorial.
01:11I want to mention that everything starts by creating an account on the ZeroTier website.
01:20As I wrote here before, you get 25 free devices.
01:24The limit now is 10 devices.
01:27The difference is that you can create 3 networks.
01:29Here you could create only one network.
01:32The thing with 3 networks is that you want to unify the networks without exposing them to the outside.
01:40ZeroTier is a super cool solution.
01:43What I really like about ZeroTier is that
01:48it doesn't prioritize the virtual network.
01:52As many VirtualLAN applications do.
01:59They keep the virtual network as their first network.
02:03And there are situations where this thing can get in the way.
02:10So I have a problem.
02:13First, we download their VirtualLAN application.
02:17We create an account.
02:19For simplicity, I prefer to use Google Authentication.
02:26It's the simplest.
02:29Yes.
02:31And we get here.
02:33So, we consider the installed application.
02:36As I said, you can download it from here.
02:40You have the Windows version.
02:43We consider the downloaded and installed application.
02:45And last, we consider the created account.
02:48The first thing we have to do is create a network.
02:53We will create a network.
02:55It gave an automatic name.
02:57It doesn't matter.
02:59As I said, 3 available networks.
03:0110 devices.
03:03It's more than enough for a normal user.
03:07Yes.
03:12To check ...
03:16Sorry.
03:18First, we have to configure this network.
03:21This VirtualLAN.
03:23We open it.
03:25We have here the network ID.
03:27If you wonder why I don't hide them.
03:29Anyway, I delete them after I record the tutorial.
03:31So I urge you to try to connect.
03:34So.
03:36If we want to change their names.
03:39We change it from here.
03:41We will call it
03:43TestVLAN.
03:47Yes.
03:49It's important to give them names.
03:51Especially if you want to manage them in Linux.
03:53It's more complicated there.
03:55Yes.
03:57It's private.
03:59From here.
04:01Either you leave it like this.
04:03Because it allocated an IP class automatically.
04:05As you can see.
04:07Or.
04:09From this table you can choose.
04:11You can go to the advanced function.
04:13But I don't think that's the case.
04:15You select what type of network you want.
04:17If you want the network with ...
04:19255.255.0.0
04:21Or 255.255.255.0
04:23One of them doesn't matter.
04:25What you see displayed are the numbers.
04:27They are fixed numbers from the IP class.
04:29Yes.
04:31Fixed addresses.
04:33Yes.
04:35Since you don't have more than 10 devices.
04:37I don't even recommend you to go
04:39on these with two stars.
04:41It's not the case.
04:43You choose a network with a single star.
04:45We will choose for example.
04:49I don't even know what to choose.
04:51We will choose this.
04:53Yes.
04:55This will be 192.68.
04:57192.68.191.
04:59Something.
05:01Good.
05:03Here you don't have to
05:05modify anything.
05:07It doesn't interest you very much.
05:09Consider
05:11all these things.
05:13Done.
05:15And
05:17in principle this is
05:19the zero tire configuration.
05:21Note that this network ID
05:23is very important and should not
05:25be available
05:27publicly.
05:29Now.
05:31I configured the network
05:33in large.
05:35Here, however, you can do later
05:37whatever you want, but just for fun
05:39is more than simple.
05:41Yes.
05:43So
05:45you can close all
05:47these messes.
05:49Next
05:51I will show you how
05:53to add
05:55two computers
05:57to this network
05:59and see if it communicates between them.
06:01OK.
06:03As I promised you,
06:05let's connect
06:07this PC to
06:09zero tire. As you can see, I have
06:11zero tire here.
06:13Yes.
06:17What we have to do is copy
06:19this network ID.
06:21I copied it.
06:23With click B here
06:25and give join
06:27new network.
06:29We put it here.
06:31Give join.
06:33Now.
06:35We are waiting here in this
06:37page.
06:39It will have to
06:41ask us
06:43for access to connect to this
06:45network. It takes a bit.
06:49And as you can see,
06:51here
06:53I have a
06:55connection request from this
06:57computer.
06:59A request that
07:01if I want
07:03I accept it, if not
07:05I don't.
07:07Simple.
07:11Yes.
07:13We buff it and give it
07:15that it is authorized.
07:17When it is
07:19authorized, as you can see, it is
07:21green.
07:25We go to
07:27edit.
07:29If we want to change the IP
07:31allocated, we can do it.
07:33If you want to
07:35arrange them in the order you want.
07:37As you can see, it allocated
07:39191,
07:41195.
07:43This was the class I had.
07:45It allocated IP 195.
07:47Let's put it in order.
07:49191 with
07:53I hope it's not occupied
07:55by something. Let's see.
07:59Yes.
08:01192, 168, 191
08:03with 1.
08:05And I allocated
08:07this IP.
08:09Being a single computer
08:11in the network, it tells us
08:13that it needs at least two members to
08:15form a network.
08:17Here I have prepared
08:19another computer on which we have
08:21zero tire. Join.
08:25Join.
08:27And if we go back,
08:33the second computer
08:35has already appeared.
08:37You see?
08:39We select it.
08:41We give it authorization.
08:43And right now we have
08:45two computers in the network.
08:47And as I said,
08:49it also allocates IPs through
08:51but we have the possibility
08:53to solve the problem.
08:55Let's see.
08:57Of course, we can give it a name.
08:59Let's give it a name here.
09:01This is testpc2.
09:05Save.
09:07And to this we will say
09:11testpc1
09:15And as you can see,
09:17we have them both here.
09:23Let's check
09:25their good performance.
09:27We will try to ping
09:29this IP.
09:41Only the IP1 took it.
09:45Let's see here.
09:47192.168.
09:53191.2
09:55And as you can see,
09:57it answers.
10:03As I said,
10:05and as you know very well,
10:07it automatically
10:09manifests as in the network.
10:11If, for example, we start
10:13the file on the second computer
10:15and try here to
10:19192.168.
10:23192.168.191.2
10:29191.168.191.2
10:31As you can see,
10:33it answered the cc file.
10:35So it is not
10:37complicated.
10:39As I told you,
10:41ZeroTier
10:43honestly thought
10:45it would be easy to use.
10:47It really is easy to use.
10:49Well,
10:51now let's continue
10:53our discussion.
10:55As you can see,
10:57we added these
10:59two computers.
11:01We can add more computers
11:03until we reach
11:05the maximum limit.
11:07At the moment,
11:09we have two devices out of ten.
11:15Next,
11:17I thought about what to do.
11:19Honestly, I thought about it
11:21over and over again.
11:23But I think the simplest
11:25and most correct thing is to continue
11:27this tutorial with the Linux part.
11:29I know it's counterintuitive,
11:31but I wanted to make another tutorial
11:33on Linux.
11:35So, next,
11:37I will show you
11:39how to connect
11:41Home Assistant to this network.
11:43I promised you that I will show you this.
11:47This is the next step,
11:49after which I will show you how to connect
11:51a Linux server to this network.
11:55Ok, let's continue
11:57with Home Assistant,
11:59as we discussed.
12:03We will integrate
12:05ZeroTier
12:07into Home Assistant.
12:09Here we have my test Home Assistant.
12:11You know it,
12:13I bothered it,
12:15this is important.
12:17We start by
12:19going to Settings, Add-ons
12:21and install
12:23ZeroTier 1.
12:25We look for it here,
12:27we install it,
12:29once it is installed,
12:31it appears here.
12:33So,
12:35Add-ons, ZeroTier,
12:37the first thing we have to do
12:39is to go to
12:41Configuration.
12:43There are two steps,
12:45simple, nothing complicated,
12:47Network and
12:49ApiKey.
12:51We will take
12:53ApiKey, we go to ZeroTier,
12:55we go to Account,
12:59and here we have
13:01ApiAccessToken.
13:03We give it a new token,
13:05we give it a name,
13:07testHomeAssistant,
13:11I'll take care of it.
13:15So, Generate,
13:17we take this,
13:19again,
13:21I don't hide it,
13:23I delete it anyway.
13:25We put
13:27the key here,
13:33we take
13:35the ID,
13:37we put it
13:39Networks,
13:41so we have the network,
13:43and ApiKey.
13:45We save,
13:47and we have
13:49to go to
13:51Info,
13:53and start it.
13:55If you want, you can look at the places
13:57to see when it connects.
13:59If you have patience,
14:01I don't have patience, I know it works.
14:03We wait for the connection
14:05to be established,
14:07we refresh here,
14:11and look at it.
14:13The first thing we do
14:15is to authorize it,
14:17after which
14:19we go here,
14:21testHomeAssistant,
14:27we save,
14:29and let's
14:31tell it an IP,
14:33not to be,
14:35let's say 3,
14:37to have them nicely in order.
14:39We save,
14:41and at this moment,
14:45if we try to access it,
14:47we will
14:49see that
14:51it works.
14:53Let's see.
15:03We copy,
15:11and as you can see,
15:13it works
15:15very well.
15:17So this is
15:19the part of
15:21communication and connection
15:23of HomeAssistant.
15:25As I said, super simple,
15:27really,
15:29I dare to say,
15:31elementary simple.
15:33So at this moment,
15:35we have in ZeroTier
15:37two computers,
15:39a HomeAssistant,
15:41we have 3 devices out of 10.
15:45Well,
15:47I will show you how to connect
15:49now
15:51a Linux server,
15:53to have the whole thing complete.
15:55Once again I say,
15:57I know it's not a Linux tutorial,
15:59but to make a tutorial just for this,
16:01I don't even feel like it.
16:03So, who is interested
16:05in the Linux part,
16:07will have it here.
16:09I will probably mention
16:11in the description of the video
16:13this part and everyone will be
16:15pleased.
16:17Who is not pleased,
16:19to watch other channels.
16:21Ok.
16:23As I promised,
16:25we continue with the part
16:27of Linux.
16:33You can also find it in the
16:35Linux tutorials here.
16:37You can click here,
16:39it will take you directly there.
16:41This is the
16:43continuation of the tutorial.
16:47Now, to
16:49explain some things,
16:51as I wrote here,
16:53it is so simple that
16:55normally I would not make a tutorial,
16:57I tell you honestly about this thing.
17:01Anyway, let's move on,
17:03it doesn't matter.
17:05The developers of ZeroTier
17:07were very careful to make everything simple
17:09and easy.
17:11As I said, we have
17:13a Linux server here,
17:17which we will run.
17:25We have it here.
17:29If you have
17:31siureleu installed,
17:33there is no need to do it.
17:35If you do,
17:37nothing happens,
17:39everyone has already installed it.
17:41The first thing we have to do
17:43is to install the
17:45ZeroTier application.
17:47As you can see, it is installed with bash.
17:51We have nothing else to do
17:53but to run it.
17:59We wait a little.
18:07And it is installed.
18:15Once the application is installed,
18:17we have these
18:19three steps to follow.
18:21The first step is to start the application,
18:23that is, we launch ZeroTier.
18:29We launched it.
18:33After that,
18:35we make it
18:37launch automatically
18:39at each system reboot.
18:41I think that's what you want,
18:43you don't want to launch it manually every time.
18:47After that,
18:49the last important step
18:51is to
18:53get rid of the network.
18:55We copy this thing,
18:57we put it here
18:59and
19:01we replace this part
19:03simply
19:05with
19:07this ID.
19:09Correct?
19:11Correct.
19:13And
19:15it tells us
19:17Join OK.
19:21Now, we can check
19:23the status,
19:25but as it says here,
19:27we also need to configure
19:29the network.
19:31Online.
19:33Although it is not yet
19:35authorized.
19:37Let's authorize it.
19:39Look here.
19:43We authorize it.
19:51After that,
19:53we edit it and say
19:55linux
19:59linux
20:01server
20:03with 4.
20:07And
20:09we have it here.
20:13If we give it a ping,
20:19192.168.191.4
20:25As you can see,
20:27it answers.
20:29At this point, you don't need
20:31to root, you don't need
20:33to expose the Linux server
20:35outside.
20:37I say it's a good thing
20:39and you can do it
20:41anywhere in the world
20:43as if you were in a local network.
20:45I say
20:47it's a good deal.
20:49So,
20:51let me show you more.
20:53Now, this part is optional.
20:55If you want to check
20:57which networks
20:59AeroTier is connected to,
21:01run this command.
21:03Not to mention the fact that
21:05you can connect to more networks
21:07without any problem.
21:11Let's give it a
21:13clear.
21:15If we run this command,
21:17it says it's connected
21:19to testvlan
21:21with everything
21:23it needs.
21:29This is the network ID.
21:31As you can see,
21:35it's this one.
21:39Let's assume
21:41that you want to
21:43exit this network
21:45from x plus z plus t reasons.
21:47Just copy this command.
21:51And as I told you,
21:53it says here, replace
21:57the network ID
22:01with
22:03the network ID you want to
22:05leave. As you have seen,
22:07if you don't know it anymore,
22:09you have it here, run the other command
22:11and you have it here.
22:13You clicked, leave, ok,
22:15and you left the network.
22:17Nothing easier.
22:21Here I told you to show you
22:23how it works on
22:25an Android phone.
22:27I installed the application,
22:29we put the network ID,
22:33we add it,
22:39we try to connect it, it tells us that it is,
22:41it cannot be
22:43that it is unauthorized.
22:47We go to
22:51the Waze Zero Tire application and authorize
22:53this phone.
22:55Here I made
22:57some mistakes and I can't
22:59authorize the phone in the same
23:01network, but I show you
23:03the principle to see
23:05that it works.
23:07After I authorized it,
23:11and we make sure that everything is fine,
23:21we try again
23:23to connect on the phone
23:25and
23:27it is
23:29connected.
23:31Ok, that was
23:33with Zero Tire.
23:37As I told you,
23:39it is an ok application,
23:41it does its job,
23:45it is the best.
23:47I say
23:49that for me
23:51no.
23:53I still think that SoftEther is the best
23:55virtual application of the year.
23:57Is it the easiest to use?
24:01No.
24:03I still consider that RadminVPN
24:05is the easiest to use.
24:07Is it the most complex
24:09application, the most versatile application?
24:11Yes.
24:13No doubt.
24:15I recommend Zero Tire, yes,
24:17I recommend it, clearly,
24:19without any other discussion.
24:21That's about it
24:23with this tutorial.
24:25It came out quite long, but I covered
24:27quite a lot of things. I say it's
24:29decent in length.
24:31For now,
24:33thank you very much for
24:35watching and for the patience to look at it.
24:37See you next time.