How to install Tailscale on a Proxmox LXC

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello my name is Chris from today I'm going to show you how to install tailscale on a proxmox lxc so this makes to where you can access this lxc anywhere in the world if you're on the tailscale VPN network um so a little bit about this series I'm going over home Labs or installing things getting things set up everything like that so if you're interested in that subscribe comment like and support the channel and let's get started so this is tailscale and it's the website and you can it makes it where you can remotely access servers and you can install the software on each individual server and then be able to access it or you can do subnet too routing so it's available for iOS Android Mac OS a Raspberry Pi Linux of course windows and it's for teams for Enterprises for individuals there is a free version up to I think let's go to the pricing up to 100 devices so that makes it to where you can put it on 100 devices and connect to those devices so we're going to get to installing this on a proximox lxc and be able to access the lxc anywhere in the world through the VPN derp servers so I created a lxc already I have Docker and bortana and then I installed it a a example index into the Container uh the portaner stacks so this makes it to where I can test it and see that it's actually working in the end of this video also um I'm going to install tailscale on the lxc with the proxbox Via helpers grips and then I'm gonna go in here and show you what I'll be running and whenever you're running something on your home lab you always make sure what you're running and go over the code and just see if there's anything malicious or anything like that and I'm not saying that the proxbox video help scripts is malicious at all I would not be using it if it was so um but I'm only human and I looked over the code don't see anything that's wrong with it so but if you do uh you can start an issue on here or let me know in the Discord or the YouTube so now I'm going to go into CT directory I'm going to go to tailscale I'm going to type it in and then this is the add tailscale lxc.sh right here that will be running and then we're gonna set some hat header info then the script is uh asking if that if you did provide the lxc ID to the script as the first uh the first variable and then it's going to have functions for errors and messages it's going to get the ctid this is going to get the lxc ID it's going to get it from the first the first argument of the script then it's going to create a config path uh for ETC PVE lxc and then it's going to use the the ID on the lxc right here then it's going to test out some things so the telescale can actually run in now let's see and then it's going to install tail scale right here it's going to attach to to the lxc using the ID that we provided up here and then it's going to run the normal bash command for installing tail scale and it's going to exit and then it's going to say install tail scale completed successfully and then it's going to need you to reboot the lxc and then type in tailscale up to get it up and running and then we will log in with our tailscale ID so now we will go into our proxbox V helper scripts again and we're going to go to search we're going to type Intel and then it's going to have the script down here so I'll copy it and after script finishes rebuilt the lxc then run telescope up in the lxc console so I'm going to go ahead and go over to my proxbox now and I'm going to get this installed so now I'm going to go into my node and then my shell and then I'm going to run the command I'm going to type in my ID yours would be different mine is set at 700 right here but yours could be a different number so make sure you know your number of what your lxc is and what you want to install tailscale on so I'm going to press return or enter I'm going to say I did replace the 106 with my ID so yes would be y and then it's installing tailscale on it installed tailscale and now it completes successfully so now I want you to reboot your lxc and get this uh telescale up with telescope up right here so now we need to go to our lxc which this is mine 700 that I created for this video then I'm going to go over to the shutdown up here I'm going to go to the uh the drop down on the Arrow I'm gonna go to reboot I'm going to reboot the lxc it'll say it's terminated and connecting again so now I'm going to see that it's up again so I'm going to clear it out and then I'm going to do tailscale up and then I'm gonna do return or enter it's going to give me a URL right here so I'm going to go to this URL and then I'm going to sign into my telescale account and I'm going to get this machine on my tailscale console so now I'm going to go to that login URL in my browser I'm going to go to the website and then here you go you can type in your email you can sign with Google Microsoft GitHub apple or you can sign with passkey or you can use a QR code right here so if it's your first time you can go to here and learn more about it but I'm going to sign into my account and then I'll get the machine on my console so once you log into your tailscale account you're going to see connect the device you're going to connect the docker TS to your telescale network you can see more details right here but I'm going to connect right here and then log in successfully so it should be on your telescale network so now you can come back to proxmox you can go into your lxc and if you should already have your console open because it was logged in uh you'll see a success down here that means you successfully logged in and this tailscale node should be up and running and on your telescale console so you can come back to your uh hellscale console and uh you'll see one machine down here Docker TS that's my lxc that I just added so you can see it's connected and you can see the address and the Linux so we got it connected so now we'll need to create we'll need to download a client onto your computer to be able to actually access this machine so you can go up to download right here and then you'll you'll pick your operating system Mac iOS Windows Linux Android so I'll pick mac and download it and you can get this installed and it'll be up in your menu bar on Mac so once you get your telescale client installed you're going to go up to your menu bar and you're going to Press login and then you're going to be presented this page and you're going to log in with your account and get your client connected to the telescope console so now once you get presented with this page and you log in with your account and it's going to say connect device like normal I'm going to connect it this will put your device in your machines and it'll be another device added to your account so now connect login successful so now if you go up to your tail scale um your your menu bar and your telescale you'll see that it is connected now so you can see that the multiple the multiple devices are now connected and you can now use your tailscale client so now I'm going to see if tailscale actually can connect to my lxc from my MacBook and I'm going to see that the welcome engines hopefully see that page through it all so we're going to go ahead and just see if the IP address for the real lxc works now I have multiple networks in the house so uh I'm gonna be on a Network that has nothing to do with the lxc network so I'm going to go over to the IP address and it's going to say I'm going to copy it I'm gonna start up a new tab so you can see it's not working it's not going to load and that's why because we're on a different network so I'm going to go up here to tailscale I'm going to turn on tailscale and then I'm going to exit out of this one and I'm going to exit out of this one and then I'm going to go ahead and try to go to the IP address again because you would think this would work because we have tail scale running now and it's not working not coming up with the ngx default page so we're going to have to go into tailscale the client again and network devices my devices and then Docker TS right here this is my lxc server that I've created so I'm going to go and do it I'm going to paste it its local IP address in 8080 and this time it should work so this time it worked it showed the index default page so you can't use your IP address to your lxc and your telescope Network you have to use your health scales IP address right here and then you can get the IP address for your actual client right here so in this video we got tailscale running on lxc and then we installed the client on our computer and we're actually able to connect to that lxc from anywhere in the world as long as you're connected to the telescope Network so I just showed you a really easy way to securely remotely connect to your home lab server uh it uses wire guard under the hood so it creates the whole wire guard Network for you and makes it where it's it's extremely easy to manage so uh if you like this tutorial subscribe comment like and support the channel and if you have any video suggestions or any support you can go down the big bear community and join our Discord it's in the YouTube description so stay tuned for more
Info
Channel: BigBearTechWorld
Views: 9,927
Rating: undefined out of 5
Keywords: Big Bear Tech World
Id: sLdQjoLOOgY
Channel Id: undefined
Length: 11min 58sec (718 seconds)
Published: Thu Sep 07 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.