Skip to content
Discussion options

You must be logged in to vote

Solution found: systemd socket activation + extra_hosts

After a lot of research, I finally got everything working. Here is the complete solution for anyone with a similar setup (rootless Podman + Quadlets + Traefik + PocketID as OIDC provider).

The two problems to solve

  1. Real client IP lost — rootless Podman NAT destroys the real IP before it reaches Traefik
  2. Hairpin NAT — containers trying to reach PocketID via its public domain fail when socket activation is in place

Solution

1. Socket activation for Traefik

Create two socket unit files:

~/.config/systemd/user/traefik-web.socket

[Socket]
ListenStream=80
FileDescriptorName=web
Service=traefik.service

[Install]
WantedBy=sockets.target

~/…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@g4lb
Comment options

Comment options

You must be logged in to vote
1 reply
@eriksjolund
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Vctrsnts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants