Pi Hosted: Route Docker Traffic Through VPN Container

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ส.ค. 2024

ความคิดเห็น • 46

  • @Benkaboi
    @Benkaboi 2 ปีที่แล้ว +21

    Just stop all the containers that depends on gluetun before editing gluetun. When you have started gluetun, then start the containers again. You dont have to rebuild your containers everytime then.
    Best way is to install gluetun with all the ports you could want going through this(or if you already know), make a stack with all the containers, use networkmode container:gluetun and then make all the containers depend on gluetun. If a reboot is needed, the containers wont start until gluetun starts. I bet you already know this but could be nice for someone doing this. Just a heads up! :)

    • @stevenbell7634
      @stevenbell7634 2 ปีที่แล้ว +3

      I've got a stack I can post. Also, am converting to kubernetes. So should have that up and running this week.

    • @NovaspiritTech
      @NovaspiritTech  2 ปีที่แล้ว +1

      Thanks

    • @matwater91
      @matwater91 2 ปีที่แล้ว

      @@stevenbell7634 i'd like to see this

    • @stevenbell7634
      @stevenbell7634 2 ปีที่แล้ว +2

      Forgot to mention,posted this also in discord group. Under pi-hosted support

    • @themightyapefish
      @themightyapefish ปีที่แล้ว

      does networkmode container:gluetun automatically make other container dependent on gluetun or is that another command each container should use?

  • @deruberswasserwongelt6825
    @deruberswasserwongelt6825 2 ปีที่แล้ว +3

    200.000 subscribers. Congratulations! Well deserved, my man!

  • @MrFaaaaaaaaaaaaaaaaa
    @MrFaaaaaaaaaaaaaaaaa 2 ปีที่แล้ว +1

    portainer looks amazing

  • @bret44
    @bret44 2 ปีที่แล้ว +3

    nice video but it's not necessary to do the socks5 part. If you just add for example:
    ports:
    - 8888:8888/tcp # HTTP proxy
    to your stack/compose then you can use the proxy with http. Since it is on lan it doesn't need to be socks5.

    • @rodrimora
      @rodrimora 2 ปีที่แล้ว +1

      Thanks! Good to know. One less step

  • @MagickzRex
    @MagickzRex 2 ปีที่แล้ว

    Love this series so much! Thanks.

  • @gl5638
    @gl5638 2 ปีที่แล้ว +1

    Very useful video! OK so here's a stupid question: What if you already have wireguard running on the same raspberry pi/portainer as a separate application?? What do u do then?? Or it doesn't really matter??

  • @marvicho
    @marvicho 2 ปีที่แล้ว

    Great stuff as always!

  • @streambarhoum4464
    @streambarhoum4464 ปีที่แล้ว +1

    Hey Man thanks for all your great efforts in this wonderful channel , yet i would ask you if is it worth to use traeffik or nginix only with port forwarding, or using cloudflare zeroTrust without port forwarding, or use them both.. In order to get optimum security for local network ?
    Which is the best solution ?
    Also, im confused if we could trust cloudflare for securing our network?

  • @alexfrance3646
    @alexfrance3646 2 ปีที่แล้ว

    how would this work if you have a domain and run nginx proxy manager? - would you enable gluetun to use ports 443 and 81(for nginx UI)?
    good video as always mate

  • @carlosmarquez4313
    @carlosmarquez4313 10 หลายเดือนก่อน

    So how many containers can use the same gluetun container, or would you suggest deploying multiple gluetun containers for each container. If for example i had qbittorrent and deluge both running in portainer could i use one instance of gluetun, or would i need to deploy a second one? hope my question makes sense. Also just wanted to thank you for the work youve put into making these videos, they have taught me immensely. Thank you.

    • @NovaspiritTech
      @NovaspiritTech  10 หลายเดือนก่อน

      I have about 5 connected to my pia gluetun

    • @carlosmarquez4313
      @carlosmarquez4313 10 หลายเดือนก่อน

      @@NovaspiritTech Okay so basically just adding the ports of the containers within gluetun and doing what you have shown here. Ive actually just deployed
      a second gluetun, one for deluge and one for qbittorrent. Both are running fine but may just run both torrent containers under one gluetun instance. Ive been having fun experimenting with CasaOs lately which also runs my portainer. Anyway thank you so much.

  • @Tofflus
    @Tofflus 2 ปีที่แล้ว

    this was very helpful!

  • @YouTubeGlobalAdminstrator
    @YouTubeGlobalAdminstrator 2 ปีที่แล้ว +5

    Prerequisites: Raspberry Pi
    Sold out in the whole universe.

    • @praannetwork
      @praannetwork 2 ปีที่แล้ว

      Used ones might be available.

    • @bradenmitchell3265
      @bradenmitchell3265 2 ปีที่แล้ว

      I managed to score a 4gb model. Arriving Tuesday 🙌🏼

    • @andreas.grundler
      @andreas.grundler 2 ปีที่แล้ว +1

      The software does not necessarily require a Raspberry Pi. An old x86 computer will do as well.

  • @MR_GPU
    @MR_GPU 2 ปีที่แล้ว

    Well I had a lot of containers running, but for some reason we've had like three 2 second power cuts which have made my old install unusable. The SD Card boots but everything, even ssh, takes forever to do. None of the applications seem to run either. Until I get a new SD Card reader to test if it's the SD Card that's the issue, I'm using a USB Stick for the OS.

  • @cogiecabuto
    @cogiecabuto ปีที่แล้ว

    How do you do it if you have 2 same containers that you want to pass through glutun? E.g. 2 instances of sabnzbd that uses 8080?

  • @jeremiahrios4010
    @jeremiahrios4010 2 ปีที่แล้ว +1

    Sounds odd but can you create a raspberry pi image inside a docker container.

    • @NovaspiritTech
      @NovaspiritTech  2 ปีที่แล้ว +1

      not the exact raspberry pi image but you can run a debian docker image

  • @beefyjoe2084
    @beefyjoe2084 ปีที่แล้ว

    how do you do this without portainer? What parameters do I have to put into my docker compose yml to do the container connection that you are doing through gui?

  • @Mr.Leeroy
    @Mr.Leeroy 2 ปีที่แล้ว

    I'd rather have my hassle free 2nd pfSense VM for a VPN gateway.
    It even serves guest WiFi SSID.

  • @james62370
    @james62370 2 ปีที่แล้ว

    Great info, any way to port forward through the vpn as well?

    • @NovaspiritTech
      @NovaspiritTech  2 ปีที่แล้ว

      for premium ones yes. the VPN i use allows for port forwarding

  • @PureHarmonyHub
    @PureHarmonyHub ปีที่แล้ว

    thenks 🏅🏆🏅🏆🏅🏅🏆

  • @RoyKoh
    @RoyKoh ปีที่แล้ว

    http proxy and shadowsocks are built into gluetun....

  • @robertoguerra5375
    @robertoguerra5375 2 ปีที่แล้ว

    Great video :D I am looking for a way to use a small free cloud server (or cloud container) that will proxy or mirror into a home server with lots of storage and ram, but i have no public IP (therefore can’t use my domain). Does anyone have this?

    • @NovaspiritTech
      @NovaspiritTech  2 ปีที่แล้ว

      use a dynamic dns service like dyndns.org or noip.com

  • @esra_erimez
    @esra_erimez 2 ปีที่แล้ว

    This comment is your community engagement. Please enjoy.

  • @alexanderprosser3204
    @alexanderprosser3204 2 ปีที่แล้ว

    Whats the difference between this and just connecting to your vpn directly via application?

    • @NovaspiritTech
      @NovaspiritTech  2 ปีที่แล้ว +4

      sometimes the vpn provider will only allow for 1 or maybe 5 connections at a time. this will allow 1 account used with mulitple connections

    • @bradenmitchell3265
      @bradenmitchell3265 2 ปีที่แล้ว +2

      Also the pi is running headless so there isn’t an “application” per se

    • @alexanderprosser3204
      @alexanderprosser3204 2 ปีที่แล้ว

      Ah, thanks for the clarification!

  • @visitagain......1669
    @visitagain......1669 2 ปีที่แล้ว

    Help me bro
    I watch your Vedio
    How to install Photoshop in kali linux
    How to install Ai in kali linux
    But i cannot install both software
    When i going to install both software
    Kali linux says md5 is not match
    In both software..

  • @praannetwork
    @praannetwork 2 ปีที่แล้ว +1

    First.

  • @jimdoss191
    @jimdoss191 2 ปีที่แล้ว

    Don,
    Thanks for the tutorial on gluetun.
    Seems like this would have been easier to implement as a Portainer stack:
    version: "3"
    services:
    gluetun:
    image: qmcgaw/gluetun
    container_name: gluetun
    cap_add:
    - NET_ADMIN
    ports:
    - 3000:3000
    environment:
    - VPN_SERVICE_PROVIDER=expressvpn
    - OPENVPN_USER=xxx
    - OPENVPN_PASSWORD=xxx
    - SERVER_COUNTRIES=Poland,Spain,Costa Rica,Switzerland,Venezuela,USA,Netherlands
    restart: unless-stopped
    librewolf:
    image: montanaghostrider/librewolf:latest
    container_name: librewolf
    network_mode: "service:gluetun"
    environment:
    - PUID=1000
    - PGID=1000
    - TZ=America/New_York
    volumes:
    - /docker/librewolf/config:/config
    shm_size: "1gb"
    depends_on:
    - gluetun
    restart: unless-stopped
    Some of the containers I use on the raspberry pi are: airsonic, bitwarden, bookstack, calibre-web, gitea, grafana, grocy, jellyfin, plex, kanboard, mealie, nextcloud, collabora, nginx-proxy-manager, photoprism, pihole, searxng, snippetbox, syncthing, tiny tiny rss, trilium, tvheadend and duplicati.