Skip to main content Gluetun (VPN for a few containers) Alternative? : r/selfhosted
r/selfhosted icon
Go to selfhosted
•

Gluetun (VPN for a few containers) Alternative?

Gluetun sets out to be exactly what I need, a simple method to route a few docker containers (for which there is not a version of the container that includes a VPN) through a wireguard VPN and still allow local hosts to access. However, I find that with my config (which certainly could be improved), Gluetun bounces at least weekly. When it does, the containers that use it have to be restarted.

So what other relatively easy solutions are there to try that may work more reliably?

You Can Just Do Things with Unraid. Run what you want, how you want. Mix and match drives, use any hardware—no sysadmin skills needed. Try Unraid free for 60 days!
Thumbnail image: You Can Just Do Things with Unraid. Run what you want, how you want. Mix and match drives, use any hardware—no sysadmin skills needed. Try Unraid free for 60 days!
Sort by:
Best
Open comment sort options

I just use a Cron job to restart gluetun and other linked containers everyday at midnight. Never had any problems...

Do you mind sharing this cron job?

More replies
More replies

u/JMOhare, any idea how to route a container through that? I tried adding to the compose for the privoxyvpn container:

environment:

- VPN_INPUT_PORTS=3100,3101

ports:

- 3100:3000

- 3101:3001

And modified a test webtop (linuxserver/webtop) to add a new network_mode and remove its ports.

network_mode: 'container:arch-privoxyvpn'

# ports:

# - 3100:3000

# - 3101:3001

But no access to that container.

More replies
More replies

I found gluetun (setup with protonvpn via Docker Compose) took quite a lot of memory around 300 MB RAM, and that's why I wish to find a more lightweight solution.

The only reason I used this VPN is to bypass geographic restrictions for one of my docker containers to use the Google Palm API service: https://developers.generativeai.google/available_regions

(Info: My hosting has only 1.5 GB RAM)

So, I hope for more suggestions for my case. e.g., change the docker proxy. Many thanks.

Same thing around here, using Gluetun took ~360MB of RAM, I migrated to arch-privoxyvpn and it took only ~30 MB.

More replies
More replies