this post was submitted on 04 Feb 2024
10 points (75.0% liked)

Selfhosted

40394 readers
395 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

@selfhosted Have a commerical @wireguard vpn on my server. The problem i have is that if i use a docker, it does use the vpn interface with iptables, but if that goes down, the docker still goes through without the vpn interface. I have looked at iptables, but docker makes it own, and bit of a minefield. Any ideas? Thanks

you are viewing a single comment's thread
view the rest of the comments
[–] unkn0wn@midwest.social 6 points 9 months ago (6 children)

Check out gluetun, I use this on my server to ensure that all traffic for certain Docker containers goes through a Wireguard VPN.

[–] Jayjo@mastodon.social 2 points 9 months ago (1 children)

@unkn0wn can you use this for a gateway for other devices to connect to the servers vpn in my lan?

[–] unkn0wn@midwest.social 1 points 9 months ago

Kind of?

I'm not sure if this satisfies your use case, and I haven't personally used this functionality.

load more comments (4 replies)