Jump to content

Passing correct IP from Tailscale plugin to SWAG container?


Recommended Posts

Hi everyone, I'm trying to set up some subdomains on my server so that they're only accessible via machines connected with Tailscale. I got the configuration working on SWAG's side with the following lines added to the respective server blocks I want to limit access to:

 

 

# Allow only Tailscale IP blocks
allow 100.64.0.0/10;
deny all;

 

Unfortunately, when I check the logs, all connection attempts from Tailscale are logged as 172.19.0.1, or the internal Docker network gateway. Therefore, the rule ends up blocking connections.

 

I'm guessing this is because the connection goes something like my computer -> Tailscale servers -> Tailscale plugin -> Docker network -> SWAG container. Is there a way to properly pass the Tailscale internal address to the SWAG container?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...