← Back
Tech Hut July 17, 2024 16m

You NEED to setup Gluetun! (Route Your Docker Containers Through a VPN)

Read full transcript 11 segments
  1. this Raspberry Pi 5 here is going to be this Raspberry Pi 5 here is going to be the future home of my R stack and one of the future home of my R stack and one of the future home of my R stack and one of the most important steps of an R stack the most important steps of an R stack the most important steps of an R stack is maintaining privacy and we're going is maintaining privacy and we're going is maintaining privacy and we're going to be doing that with a VPN specifically to be doing that with a VPN specifically to be doing that with a VPN specifically using the gluten Docker container now using the gluten Docker container now using the gluten Docker container now why may you want to do this well when why may you want to do this well when why may you want to do this well when you download Linux isos through a you download Linux isos through a you download Linux isos through a torrent client your public IP address is torrent client your public IP address is torrent client your public IP address is visible and damn it it's nobody's visible and damn it it's nobody's visible and damn it it's nobody's business if you want to be a cedar for business if you want to be a cedar for business if you want to be a cedar for Hannah Montana Linux so on this pi5 here Hannah Montana Linux so on this pi5 here Hannah Montana Linux so on this pi5 here we are going to be setting up Ubuntu we are going to be setting up Ubuntu we are going to be setting up Ubuntu Server installing Docker launching Server installing Docker launching Server installing Docker launching protainer to easily manage our protainer to easily manage our protainer to easily manage our containers setting up the gluten VPN of containers setting up the gluten VPN of containers setting up the gluten VPN of course and then showing you how to pass course and then showing you how to pass course and then showing you how to pass through containers whether they be in through containers whether they be in through containers whether they be in the same Docker compost file or not the same Docker compost file or not the same Docker compost file or not through it to actually use the VPN on through it to actually use the VPN on through it to actually use the VPN on those Docker containers networks this those Docker containers networks this those Docker containers networks this video is not sponsored but a big thank video is not sponsored but a big thank video is not sponsored but a big thank you to rasch for actually sending over you to rasch for actually sending over you to rasch for actually sending over this and their starter kit comes with a this and their starter kit comes with a this and their starter kit comes with a real nice case some heat sinks here a real nice case some heat sinks here a real nice case some heat sinks here a fan which I've concluded in a previous fan which I've concluded in a previous fan which I've concluded in a previous video is basically essential as The video is basically essential as The video is basically essential as The Thermals of using these heat sinks in Thermals of using these heat sinks in Thermals of using these heat sinks in the fan versus not is dramatic and this the fan versus not is dramatic and this the fan versus not is dramatic and this kit does include some other stuff to kit does include some other stuff to kit does include some other stuff to kind of help you get started with the kind of help you get started with the kind of help you get started with the platform so thank you to them so first platform so thank you to them so first platform so thank you to them so first thing I'm going to go ahead and throw thing I'm going to go ahead and throw thing I'm going to go ahead and throw Ubuntu server on this I got our SD card Ubuntu server on this I got our SD card Ubuntu server on this I got our SD card here plug it on in and we are going to here plug it on in and we are going to here plug it on in and we are going to use the pi imager application this is use the pi imager application this is use the pi imager application this is crossplatform so you could use it on crossplatform so you could use it on crossplatform so you could use it on just about anything uh choose a device just about anything uh choose a device just about anything uh choose a device here this is going to be on the pi five here this is going to be on the pi five here this is going to be on the pi five for the operating system like I said we for the operating system like I said we for the operating system like I said we are going to go with Ubuntu but this is are going to go with Ubuntu but this is are going to go with Ubuntu but this is going to be through Docker so you can

  2. going to be through Docker so you can going to be through Docker so you can use whatever operating system you prefer use whatever operating system you prefer use whatever operating system you prefer I'm going to go general purpose Ubuntu I'm going to go general purpose Ubuntu I'm going to go general purpose Ubuntu and then go with the latest LTS Ubuntu and then go with the latest LTS Ubuntu and then go with the latest LTS Ubuntu Server choose my storage we're going to Server choose my storage we're going to Server choose my storage we're going to go with this one and hit next now I do go with this one and hit next now I do go with this one and hit next now I do want to edit these settings here oh cool want to edit these settings here oh cool want to edit these settings here oh cool they saved setting up a username and they saved setting up a username and they saved setting up a username and password through this just makes password through this just makes password through this just makes everything oh substantially easier this everything oh substantially easier this everything oh substantially easier this is going to be my Docker Pi I'm not is going to be my Docker Pi I'm not is going to be my Docker Pi I'm not going to connect to our Wi-Fi cuz this going to connect to our Wi-Fi cuz this going to connect to our Wi-Fi cuz this is going to be a server instance so you is going to be a server instance so you is going to be a server instance so you should always have it plugged into should always have it plugged into should always have it plugged into ethernet set your time zone over here ethernet set your time zone over here ethernet set your time zone over here under Services let's go and enable SSH under Services let's go and enable SSH under Services let's go and enable SSH if you want to use a key that's where if you want to use a key that's where if you want to use a key that's where you could do this under options that you could do this under options that you could do this under options that doesn't matter let's hit save and then doesn't matter let's hit save and then doesn't matter let's hit save and then yes all right just finished up so let's yes all right just finished up so let's yes all right just finished up so let's get this plugged in here now if you are get this plugged in here now if you are get this plugged in here now if you are a little curious to why I'm switching a little curious to why I'm switching a little curious to why I'm switching over some of my services to Raspberry Pi over some of my services to Raspberry Pi over some of my services to Raspberry Pi I'm going to be trying to fit as much as I'm going to be trying to fit as much as I'm going to be trying to fit as much as my server rack as I can in this small my server rack as I can in this small my server rack as I can in this small unit so do subscribe so you don't miss unit so do subscribe so you don't miss unit so do subscribe so you don't miss that video and there it is we can see that video and there it is we can see that video and there it is we can see it's on the IP address ending in 16 so it's on the IP address ending in 16 so it's on the IP address ending in 16 so let's go ahead and and uh SSH into that let's go ahead and and uh SSH into that let's go ahead and and uh SSH into that so using the credentials that we created so using the credentials that we created so using the credentials that we created with the little U imager tool hey there with the little U imager tool hey there with the little U imager tool hey there we go there's a bunch of updates so we go there's a bunch of updates so we go there's a bunch of updates so whenever you install auntu Ser server or whenever you install auntu Ser server or whenever you install auntu Ser server or any Linux server we're going to go ahead any Linux server we're going to go ahead any Linux server we're going to go ahead and update everything suo appt and update everything suo appt and update everything suo appt upgrade yes now while it does that we upgrade yes now while it does that we upgrade yes now while it does that we are going to be doing this with the are going to be doing this with the are going to be doing this with the docker convenience script believe it or docker convenience script believe it or docker convenience script believe it or not it does make installing Docker not it does make installing Docker not it does make installing Docker convenient so I'm just going to copy convenient so I'm just going to copy convenient so I'm just going to copy this curl and sh command copy that one this curl and sh command copy that one this curl and sh command copy that one thing that's important to note right thing that's important to note right thing that's important to note right here if you click on it you can actually

  3. here if you click on it you can actually here if you click on it you can actually see the script you're going to be see the script you're going to be see the script you're going to be running this is from Docker it's fine running this is from Docker it's fine running this is from Docker it's fine but if you're going to run random but if you're going to run random but if you're going to run random scripts on anything you should at least scripts on anything you should at least scripts on anything you should at least kind of go through the code and make kind of go through the code and make kind of go through the code and make sure nothing um weird is going on Ain't sure nothing um weird is going on Ain't sure nothing um weird is going on Ain't No Way ain't no way all right I did a No Way ain't no way all right I did a No Way ain't no way all right I did a kernel update so I needed to completely kernel update so I needed to completely kernel update so I needed to completely reboot it now that it's updated we could reboot it now that it's updated we could reboot it now that it's updated we could go ahead and grab this drop that in and go ahead and grab this drop that in and go ahead and grab this drop that in and then run the script and it will install then run the script and it will install then run the script and it will install basically everything we need to get basically everything we need to get basically everything we need to get going now if you don't have much going now if you don't have much going now if you don't have much experience with Docker I do recommend experience with Docker I do recommend experience with Docker I do recommend this guide right here on our website the this guide right here on our website the this guide right here on our website the seven Docker basics for beginners it seven Docker basics for beginners it seven Docker basics for beginners it goes over everything you need to know to goes over everything you need to know to goes over everything you need to know to install it uh nonroot users basic usage install it uh nonroot users basic usage install it uh nonroot users basic usage including like networks bind mounts including like networks bind mounts including like networks bind mounts things like that do recommend you go things like that do recommend you go things like that do recommend you go ahead and read this under this non-root ahead and read this under this non-root ahead and read this under this non-root section I'm going to grab this Command section I'm going to grab this Command section I'm going to grab this Command right here so I can add myself to the right here so I can add myself to the right here so I can add myself to the docker group so I won't have to uh docker group so I won't have to uh docker group so I won't have to uh pseudo every time I run a command so pseudo every time I run a command so pseudo every time I run a command so let's drop in that command to add me to let's drop in that command to add me to let's drop in that command to add me to the group and then to automatically the group and then to automatically the group and then to automatically apply the change we're going to do the apply the change we're going to do the apply the change we're going to do the new grp command for Docker and now if I new grp command for Docker and now if I new grp command for Docker and now if I type in I think it's just ID we can see type in I think it's just ID we can see type in I think it's just ID we can see I am now part of the docker group so now I am now part of the docker group so now I am now part of the docker group so now we're going to want to install portainer we're going to want to install portainer we're going to want to install portainer this is going to be a great way to spin this is going to be a great way to spin this is going to be a great way to spin up Docker compose files and have a a up Docker compose files and have a a up Docker compose files and have a a gooey representation of our Docker gooey representation of our Docker gooey representation of our Docker instance so first we're going to go instance so first we're going to go instance so first we're going to go ahead and create the volume with this ahead and create the volume with this ahead and create the volume with this Command right here Docker create Command right here Docker create Command right here Docker create protainer data and then we are going to protainer data and then we are going to protainer data and then we are going to copy their Docker run command here drop copy their Docker run command here drop copy their Docker run command here drop the this on in and before you hit enter the this on in and before you hit enter the this on in and before you hit enter we are going to make a change instead of we are going to make a change instead of we are going to make a change instead of going with the latest tag we are going

  4. going with the latest tag we are going going with the latest tag we are going to go with the shortterm support release to go with the shortterm support release to go with the shortterm support release this is a slightly newer version newer this is a slightly newer version newer this is a slightly newer version newer features uh more bug fixes so let's hit features uh more bug fixes so let's hit features uh more bug fixes so let's hit enter and there we go so now we should enter and there we go so now we should enter and there we go so now we should be able to jump over to our web browser be able to jump over to our web browser be able to jump over to our web browser here head over to our port at here head over to our port at here head over to our port at 9443 and this is going to be https go 9443 and this is going to be https go 9443 and this is going to be https go ahead and continue through that and then ahead and continue through that and then ahead and continue through that and then create our account there we go let's create our account there we go let's create our account there we go let's create our user save that and now we are create our user save that and now we are create our user save that and now we are going to just click get started and then going to just click get started and then going to just click get started and then jump into our current Docker environment jump into our current Docker environment jump into our current Docker environment on this system all right so it is the on this system all right so it is the on this system all right so it is the next day if you can't tell I actually next day if you can't tell I actually next day if you can't tell I actually spent some time kind of playing around spent some time kind of playing around spent some time kind of playing around configuring it making sure that configuring it making sure that configuring it making sure that everything was perfect and I do have everything was perfect and I do have everything was perfect and I do have documentation here on my repository documentation here on my repository documentation here on my repository under the IM media directory for this under the IM media directory for this under the IM media directory for this exact setup that we are doing here as exact setup that we are doing here as exact setup that we are doing here as well as the r compose yml there'll be well as the r compose yml there'll be well as the r compose yml there'll be other stuff you're added in the future other stuff you're added in the future other stuff you're added in the future um and I'll do a whole separate video on um and I'll do a whole separate video on um and I'll do a whole separate video on the r stack for this one specifically we the r stack for this one specifically we the r stack for this one specifically we are going to be focusing on gluten which are going to be focusing on gluten which are going to be focusing on gluten which is the uh VPN client as well as delug VP is the uh VPN client as well as delug VP is the uh VPN client as well as delug VP or not VPN delou bit torrent client this or not VPN delou bit torrent client this or not VPN delou bit torrent client this is my general preference I have good is my general preference I have good is my general preference I have good luck with it I like it it's awesome and luck with it I like it it's awesome and luck with it I like it it's awesome and I do have other stuff here but we're not I do have other stuff here but we're not I do have other stuff here but we're not going to be focusing on all that this going to be focusing on all that this going to be focusing on all that this would make this video way too long but would make this video way too long but would make this video way too long but just a brief overview of how this is just a brief overview of how this is just a brief overview of how this is actually working first we have our actually working first we have our actually working first we have our actual uh VPN client here it's going to actual uh VPN client here it's going to actual uh VPN client here it's going to be using wire guard on the back end you be using wire guard on the back end you be using wire guard on the back end you can use openvpn but for my setup wire can use openvpn but for my setup wire can use openvpn but for my setup wire guard is perfect we're doing cap ad net guard is perfect we're doing cap ad net guard is perfect we're doing cap ad net admin I do will link to this so it kind admin I do will link to this so it kind admin I do will link to this so it kind of gives an overview of exactly what it of gives an overview of exactly what it of gives an overview of exactly what it is and what it does but basically allow

  5. is and what it does but basically allow is and what it does but basically allow users root control of the core of the users root control of the core of the users root control of the core of the network stack which this is a VPN kind network stack which this is a VPN kind network stack which this is a VPN kind of important and here we have ports now of important and here we have ports now of important and here we have ports now this gluten container doesn't actually this gluten container doesn't actually this gluten container doesn't actually use any ports but these are kind of like use any ports but these are kind of like use any ports but these are kind of like pass through ports instead of having the pass through ports instead of having the pass through ports instead of having the port under this container for example port under this container for example port under this container for example this is the bit torrent client we move this is the bit torrent client we move this is the bit torrent client we move it over here because this is going to it over here because this is going to it over here because this is going to have a network mode instead Network mod have a network mode instead Network mod have a network mode instead Network mod mode service is gluten and then its mode service is gluten and then its mode service is gluten and then its ports are going to be right here so this ports are going to be right here so this ports are going to be right here so this container is using this network and that container is using this network and that container is using this network and that is essentially how you add these uh is essentially how you add these uh is essentially how you add these uh Network modes or pass through these Network modes or pass through these Network modes or pass through these containers that are in the same composed containers that are in the same composed containers that are in the same composed file later on I'll show you how to do file later on I'll show you how to do file later on I'll show you how to do things that are outside of the compos things that are outside of the compos things that are outside of the compos file works very similarly except for file works very similarly except for file works very similarly except for it's an environmental variable instead it's an environmental variable instead it's an environmental variable instead and then here we have our volumes so you and then here we have our volumes so you and then here we have our volumes so you can store your configurations wherever can store your configurations wherever can store your configurations wherever you want me I do home my rout and then I you want me I do home my rout and then I you want me I do home my rout and then I give every container or its own folder give every container or its own folder give every container or its own folder especially on this little Pi machine especially on this little Pi machine especially on this little Pi machine this is only going to serve as a little this is only going to serve as a little this is only going to serve as a little Docker server so everything is just has Docker server so everything is just has Docker server so everything is just has its own directory within that and then its own directory within that and then its own directory within that and then we have our environmental variables and we have our environmental variables and we have our environmental variables and I will kind of go over this real quick I I will kind of go over this real quick I I will kind of go over this real quick I am using airvpn at the moment no they're am using airvpn at the moment no they're am using airvpn at the moment no they're not a sponsor or anything like that and not a sponsor or anything like that and not a sponsor or anything like that and the only reason I know about them is the only reason I know about them is the only reason I know about them is this right here this is the client that this right here this is the client that this right here this is the client that I was using previously this is like a uh I was using previously this is like a uh I was using previously this is like a uh one of the predefined options so there one of the predefined options so there one of the predefined options so there was air Pia and a couple others I used was air Pia and a couple others I used was air Pia and a couple others I used Pia for a while they were a CH Channel Pia for a while they were a CH Channel Pia for a while they were a CH Channel sponsor at one point but I've been sponsor at one point but I've been sponsor at one point but I've been trying out airvpn if you go to their trying out airvpn if you go to their trying out airvpn if you go to their website it looks like something that I website it looks like something that I website it looks like something that I would have designed as an eighth grader would have designed as an eighth grader would have designed as an eighth grader and for some reason that makes me like

  6. and for some reason that makes me like and for some reason that makes me like it more you can go over all this if you it more you can go over all this if you it more you can go over all this if you want to uh but chances are if you're want to uh but chances are if you're want to uh but chances are if you're looking up this video you already have a looking up this video you already have a looking up this video you already have a VPN provider which is awesome because VPN provider which is awesome because VPN provider which is awesome because here on the gluten Wiki under the setup here on the gluten Wiki under the setup here on the gluten Wiki under the setup page if we go over to Providers you can page if we go over to Providers you can page if we go over to Providers you can see they have a extensive list of all see they have a extensive list of all see they have a extensive list of all the supported uh VPN providers you have the supported uh VPN providers you have the supported uh VPN providers you have pure proton fast V Ju Just a whole bunch pure proton fast V Ju Just a whole bunch pure proton fast V Ju Just a whole bunch of them all the big dogs are here if I of them all the big dogs are here if I of them all the big dogs are here if I go to airvpn for example all of them go to airvpn for example all of them go to airvpn for example all of them give you a nice little compose file for give you a nice little compose file for give you a nice little compose file for everything that's required for that everything that's required for that everything that's required for that specific VPN provider this one has both specific VPN provider this one has both specific VPN provider this one has both wire guard and openvpn some of the other wire guard and openvpn some of the other wire guard and openvpn some of the other ones for example uh private internet ones for example uh private internet ones for example uh private internet access here they only have a openvpn access here they only have a openvpn access here they only have a openvpn option so depending on what you use you option so depending on what you use you option so depending on what you use you may have to kind of edit and change this may have to kind of edit and change this may have to kind of edit and change this around a bit and for example if I go around a bit and for example if I go around a bit and for example if I go back up to airvpn if I scroll all the back up to airvpn if I scroll all the back up to airvpn if I scroll all the way down there's other additional way down there's other additional way down there's other additional variables and things that you could do variables and things that you could do variables and things that you could do for example one of them that we need to for example one of them that we need to for example one of them that we need to do is VPN port forwarding for airvpn do is VPN port forwarding for airvpn do is VPN port forwarding for airvpn which is just adding this and getting a which is just adding this and getting a which is just adding this and getting a actual Port through their website which actual Port through their website which actual Port through their website which one of the reasons why I kind of like one of the reasons why I kind of like one of the reasons why I kind of like these guys is they do make it relatively these guys is they do make it relatively these guys is they do make it relatively easy if I go over to the client area easy if I go over to the client area easy if I go over to the client area here this is all the stuff they offer I here this is all the stuff they offer I here this is all the stuff they offer I will know uh I have referrals here I will know uh I have referrals here I will know uh I have referrals here I will link to list down below again not will link to list down below again not will link to list down below again not sponsored but if you do want to try this sponsored but if you do want to try this sponsored but if you do want to try this out you use my referral I will get a out you use my referral I will get a out you use my referral I will get a little Kickback so that's cool but right little Kickback so that's cool but right little Kickback so that's cool but right here config generator and all these here config generator and all these here config generator and all these other providers have a way to do this other providers have a way to do this other providers have a way to do this but for this we just go Linux we want to but for this we just go Linux we want to but for this we just go Linux we want to use wire guard and then here we just use wire guard and then here we just use wire guard and then here we just select what we want to do so for example

  7. select what we want to do so for example select what we want to do so for example my configuration I go over here to my configuration I go over here to my configuration I go over here to Vancouver gives us details on the actual Vancouver gives us details on the actual Vancouver gives us details on the actual servers and like theoretically if I servers and like theoretically if I servers and like theoretically if I wanted this one I would just check that wanted this one I would just check that wanted this one I would just check that scroll all the way down to the bottom scroll all the way down to the bottom scroll all the way down to the bottom and then click on generate here you can and then click on generate here you can and then click on generate here you can see it generated that so then if I go see it generated that so then if I go see it generated that so then if I go ahead and open up this configuration you ahead and open up this configuration you ahead and open up this configuration you could see we have a bunch of stuff we could see we have a bunch of stuff we could see we have a bunch of stuff we have our private key our uh pre-share have our private key our uh pre-share have our private key our uh pre-share key our IP address so this is the one I key our IP address so this is the one I key our IP address so this is the one I would want to use and really that's the would want to use and really that's the would want to use and really that's the information that we need and then you information that we need and then you information that we need and then you could see that here in the environmental could see that here in the environmental could see that here in the environmental variables we have the wire guard private variables we have the wire guard private variables we have the wire guard private key pre-share key and address and then key pre-share key and address and then key pre-share key and address and then you put in the country and city of you put in the country and city of you put in the country and city of whatever server that you decide to go whatever server that you decide to go whatever server that you decide to go with this is going to be important to with this is going to be important to with this is going to be important to actually get that uh bit torrent client actually get that uh bit torrent client actually get that uh bit torrent client to work some VPN providers aren't going to work some VPN providers aren't going to work some VPN providers aren't going to require this but with airvpn you just to require this but with airvpn you just to require this but with airvpn you just go over here and then we want to go to go over here and then we want to go to go over here and then we want to go to Port go manage and then this right here Port go manage and then this right here Port go manage and then this right here is my port and we can see in protainer I is my port and we can see in protainer I is my port and we can see in protainer I just went Stacks great new stack this is just went Stacks great new stack this is just went Stacks great new stack this is the editor you pop in the port there put the editor you pop in the port there put the editor you pop in the port there put in your keys put in your wire guard IP in your keys put in your wire guard IP in your keys put in your wire guard IP address I'm going Vancouver Canada I do address I'm going Vancouver Canada I do address I'm going Vancouver Canada I do have a health check here so that will have a health check here so that will have a health check here so that will make sure it is running and everything make sure it is running and everything make sure it is running and everything is fine and then for this one one thing is fine and then for this one one thing is fine and then for this one one thing you may want to change here is the you may want to change here is the you may want to change here is the Environmental variables for the Pu ID Environmental variables for the Pu ID Environmental variables for the Pu ID and the group ID if you're using it to and the group ID if you're using it to and the group ID if you're using it to download files directly onto your system download files directly onto your system download files directly onto your system you could use whatever user you happen you could use whatever user you happen you could use whatever user you happen to be logged into which I should to be logged into which I should to be logged into which I should probably open up a terminal and show you probably open up a terminal and show you probably open up a terminal and show you going to SSH back into our Raspberry Pi going to SSH back into our Raspberry Pi going to SSH back into our Raspberry Pi there we go and now if I just type in ID there we go and now if I just type in ID there we go and now if I just type in ID and then my username you could see my

  8. and then my username you could see my and then my username you could see my uid is 1,000 and my GID is 13 now you uid is 1,000 and my GID is 13 now you uid is 1,000 and my GID is 13 now you may be asking why am I using 100 that is may be asking why am I using 100 that is may be asking why am I using 100 that is because these are actually all being because these are actually all being because these are actually all being downloaded to a network share so if I go downloaded to a network share so if I go downloaded to a network share so if I go Nano Etsy FS tab you can see here I have Nano Etsy FS tab you can see here I have Nano Etsy FS tab you can see here I have uid 1,000 GID 100 and that is because uid 1,000 GID 100 and that is because uid 1,000 GID 100 and that is because that is the uh user ID and group ID of that is the uh user ID and group ID of that is the uh user ID and group ID of my unraid server which is where I'm my unraid server which is where I'm my unraid server which is where I'm actually storing all this data and then actually storing all this data and then actually storing all this data and then from there you can see some folder from there you can see some folder from there you can see some folder mapping so there are going to be some mapping so there are going to be some mapping so there are going to be some folders that you need to create for this folders that you need to create for this folders that you need to create for this one of course is the configuration one of course is the configuration one of course is the configuration directory see if I go LS here this right directory see if I go LS here this right directory see if I go LS here this right here is my configuration directory here is my configuration directory here is my configuration directory that's really the only one you need for that's really the only one you need for that's really the only one you need for that but wherever these are going to be that but wherever these are going to be that but wherever these are going to be downloaded I personally recommend having downloaded I personally recommend having downloaded I personally recommend having everything within the same share or everything within the same share or everything within the same share or folder whatever it may be as you can see folder whatever it may be as you can see folder whatever it may be as you can see here I have data and that has books here I have data and that has books here I have data and that has books downloads uh movies music shows Etc and downloads uh movies music shows Etc and downloads uh movies music shows Etc and within downloads We have complete within downloads We have complete within downloads We have complete incomplete and Torrance for my exact incomplete and Torrance for my exact incomplete and Torrance for my exact instance this is going to be in media instance this is going to be in media instance this is going to be in media and data and if I LS you could see a lot and data and if I LS you could see a lot and data and if I LS you could see a lot of different things including downloads of different things including downloads of different things including downloads here if I CD into uh my downloads LS you here if I CD into uh my downloads LS you here if I CD into uh my downloads LS you can see the two download clients I have can see the two download clients I have can see the two download clients I have and then if I go even further LS you and then if I go even further LS you and then if I go even further LS you could see that same exact file scheme could see that same exact file scheme could see that same exact file scheme that I have going on thus why this one that I have going on thus why this one that I have going on thus why this one is located in data if I scroll down this is located in data if I scroll down this is located in data if I scroll down this one's data this one's linked up to data one's data this one's linked up to data one's data this one's linked up to data so they all are linked into the exact so they all are linked into the exact so they all are linked into the exact same directory and we will go in and same directory and we will go in and same directory and we will go in and kind of actually configure those kind of actually configure those kind of actually configure those locations through the actual uh services locations through the actual uh services locations through the actual uh services or applications themselves so once you or applications themselves so once you or applications themselves so once you have this configured you have the ports have this configured you have the ports have this configured you have the ports in there for the services that you want

  9. in there for the services that you want in there for the services that you want to pass through the VPN you go ahead and to pass through the VPN you go ahead and to pass through the VPN you go ahead and spin up your stack which you can see I spin up your stack which you can see I spin up your stack which you can see I do have running here now over here in do have running here now over here in do have running here now over here in this repository I kind of threw together this repository I kind of threw together this repository I kind of threw together uh how to actually test this so first uh how to actually test this so first uh how to actually test this so first we're going to test uh the gluten or we're going to test uh the gluten or we're going to test uh the gluten or gluton uh connectivity we could just use gluton uh connectivity we could just use gluton uh connectivity we could just use this Command right here drop it in run this Command right here drop it in run this Command right here drop it in run it and then we can see we are running it and then we can see we are running it and then we can see we are running this from Vancouver British Columbia this from Vancouver British Columbia this from Vancouver British Columbia which is not where I am at now there's a which is not where I am at now there's a which is not where I am at now there's a ton of different ways to test the uh VPN ton of different ways to test the uh VPN ton of different ways to test the uh VPN connectivity of a torrent client but one connectivity of a torrent client but one connectivity of a torrent client but one of them again is just to kind of run the of them again is just to kind of run the of them again is just to kind of run the same thing if I scroll down here I'm same thing if I scroll down here I'm same thing if I scroll down here I'm going to go ahead and jump into the going to go ahead and jump into the going to go ahead and jump into the actual uh terminal of the container so actual uh terminal of the container so actual uh terminal of the container so drop that in and the container name that drop that in and the container name that drop that in and the container name that we are going to be testing to make sure we are going to be testing to make sure we are going to be testing to make sure it's working is dulge enter so now we it's working is dulge enter so now we it's working is dulge enter so now we are in so now we just need to grab this are in so now we just need to grab this are in so now we just need to grab this WG for ipinfo.io drop that in and there WG for ipinfo.io drop that in and there WG for ipinfo.io drop that in and there we go same thing Vancouver British we go same thing Vancouver British we go same thing Vancouver British Columbia you can see where I'm connected Columbia you can see where I'm connected Columbia you can see where I'm connected to all is good so now actually in my to all is good so now actually in my to all is good so now actually in my torrrent client you can see this is one torrrent client you can see this is one torrrent client you can see this is one of the other ways you could test to see of the other ways you could test to see of the other ways you could test to see if your VPN is working but some things if your VPN is working but some things if your VPN is working but some things you're going to want to do here is go you're going to want to do here is go you're going to want to do here is go over to preferences and switch up all over to preferences and switch up all over to preferences and switch up all your folders so you can see I switched your folders so you can see I switched your folders so you can see I switched this to incomplete completed and this to incomplete completed and this to incomplete completed and Torrance and then from there if you go Torrance and then from there if you go Torrance and then from there if you go over to network we are not going to be over to network we are not going to be over to network we are not going to be using a random Port get rid of of that using a random Port get rid of of that using a random Port get rid of of that I'm going to copy over my actual Port I'm going to copy over my actual Port I'm going to copy over my actual Port here and drop that on in good to go here and drop that on in good to go here and drop that on in good to go apply that and then you can go through apply that and then you can go through apply that and then you can go through kind of play with all these settings as kind of play with all these settings as kind of play with all these settings as you see fit uh one thing you're going to you see fit uh one thing you're going to you see fit uh one thing you're going to want to enable the label plugin for

  10. want to enable the label plugin for want to enable the label plugin for future use in a future video but yeah future use in a future video but yeah future use in a future video but yeah from there you should be good to go I'm from there you should be good to go I'm from there you should be good to go I'm going to hit okay and just to test this going to hit okay and just to test this going to hit okay and just to test this I went to Linux tracker here got a very I went to Linux tracker here got a very I went to Linux tracker here got a very highly seated uh torrent dropped it in highly seated uh torrent dropped it in highly seated uh torrent dropped it in through uh add URL pasted it in here and through uh add URL pasted it in here and through uh add URL pasted it in here and you can see it is rocking and rolling so you can see it is rocking and rolling so you can see it is rocking and rolling so now that that's working we want to add a now that that's working we want to add a now that that's working we want to add a new container out of this Docker compost new container out of this Docker compost new container out of this Docker compost file granted it is going to be on the file granted it is going to be on the file granted it is going to be on the same machine and pass it through the VPN same machine and pass it through the VPN same machine and pass it through the VPN to do this I just grabbed this Docker to do this I just grabbed this Docker to do this I just grabbed this Docker run command this is for Firefox so uh run command this is for Firefox so uh run command this is for Firefox so uh running this will give you just easy running this will give you just easy running this will give you just easy access to a Firefox container always access to a Firefox container always access to a Firefox container always pass through VPN just for convenience pass through VPN just for convenience pass through VPN just for convenience sake this is going to be running just sake this is going to be running just sake this is going to be running just locally so I'm going to change that to locally so I'm going to change that to locally so I'm going to change that to three and right here this is what we're three and right here this is what we're three and right here this is what we're going to want to change you can see we going to want to change you can see we going to want to change you can see we have the port 3003 o1 this one is HTTP have the port 3003 o1 this one is HTTP have the port 3003 o1 this one is HTTP this is https for this container I am this is https for this container I am this is https for this container I am going to need to make a quick going to need to make a quick going to need to make a quick configuration directory so let CD to my configuration directory so let CD to my configuration directory so let CD to my home make the directory of home make the directory of home make the directory of Firefox there we go and we are not going Firefox there we go and we are not going Firefox there we go and we are not going to want these ports here but what we are to want these ports here but what we are to want these ports here but what we are going to want is this right here Network going to want is this right here Network going to want is this right here Network container gluten so instead of the container gluten so instead of the container gluten so instead of the service this is going to be a network service this is going to be a network service this is going to be a network variable to this container so let's uh variable to this container so let's uh variable to this container so let's uh put this right over here and now here put this right over here and now here put this right over here and now here with in protainer I'm going to go back with in protainer I'm going to go back with in protainer I'm going to go back to my stacks go to my VPN stack and go to my stacks go to my VPN stack and go to my stacks go to my VPN stack and go to my editor so this is the port 300 to to my editor so this is the port 300 to to my editor so this is the port 300 to 3000 and then we want 3000 and then we want 3000 and then we want 3001 to 3001 to 3001 to 3001 and this is Firefox

  11. 3001 and this is Firefox 3001 and this is Firefox https so let's go ahead and update our https so let's go ahead and update our https so let's go ahead and update our stack update and we can see that we have stack update and we can see that we have stack update and we can see that we have a success so I'm going to go back over a success so I'm going to go back over a success so I'm going to go back over here and just run this command so let's here and just run this command so let's here and just run this command so let's copy that and drop it into our terminal copy that and drop it into our terminal copy that and drop it into our terminal hit enter and now it should be running hit enter and now it should be running hit enter and now it should be running check by going to our dashboard going check by going to our dashboard going check by going to our dashboard going over to containers and then we could see over to containers and then we could see over to containers and then we could see the Firefox one right here not part of the Firefox one right here not part of the Firefox one right here not part of any specific stack so now if I just any specific stack so now if I just any specific stack so now if I just simply navigate to it we'll use the simply navigate to it we'll use the simply navigate to it we'll use the https one so let's hit enter Advanced https one so let's hit enter Advanced https one so let's hit enter Advanced accept and continue this is Firefox so accept and continue this is Firefox so accept and continue this is Firefox so now we could check our IP just by going now we could check our IP just by going now we could check our IP just by going what my IP I think.com is a website that what my IP I think.com is a website that what my IP I think.com is a website that works there we go here's our public IP works there we go here's our public IP works there we go here's our public IP address at Vancouver British Columbia so address at Vancouver British Columbia so address at Vancouver British Columbia so now we have a VPN set up that we can use now we have a VPN set up that we can use now we have a VPN set up that we can use in numerous containers and both a in numerous containers and both a in numerous containers and both a torrent client in the same compose torrent client in the same compose torrent client in the same compose linked up to and a Firefox client linked up to and a Firefox client linked up to and a Firefox client outside of the stack that is also outside of the stack that is also outside of the stack that is also utilizing it so that that that's really utilizing it so that that that's really utilizing it so that that that's really about it again you can go to my about it again you can go to my about it again you can go to my documentation if you want to see my documentation if you want to see my documentation if you want to see my exact setup and some other tips and exact setup and some other tips and exact setup and some other tips and tricks that I find most important or if tricks that I find most important or if tricks that I find most important or if you want the whole Spiel I do recommend you want the whole Spiel I do recommend you want the whole Spiel I do recommend the uh gluten Wiki right here which goes the uh gluten Wiki right here which goes the uh gluten Wiki right here which goes over everything that you're going to over everything that you're going to over everything that you're going to need to know for example options here uh need to know for example options here uh need to know for example options here uh we have health check which I added port we have health check which I added port we have health check which I added port forwarding open VP just a ton of forwarding open VP just a ton of forwarding open VP just a ton of information all this will be linked down information all this will be linked down information all this will be linked down below and with all that I do hope you below and with all that I do hope you below and with all that I do hope you have an absolutely beautiful day and have an absolutely beautiful day and have an absolutely beautiful day and goodbye

Summary

This guide focuses on setting up an R stack on a Raspberry Pi 5 for enhanced privacy when torrenting Linux ISOs. It details installing Ubuntu Server, Docker, Portainer, and crucially, configuring the Gluetun VPN container to route traffic and protect your public IP. The practical takeaway is to ensure secure and private operations for your self-hosted services.

View original episode ↗