Skip to content

Loop during connections to tailscale #39

@MinerPL

Description

@MinerPL

When setting up Tailscale in Docker on Mikrotik, I encountered loops when trying to access the device on the Tailscale network.

10.21.37.0/24 is my local network
172.17.0.1 is container network interface

My environment variable configuration:

[admin@P202] /container/envs> print
Columns: LIST, KEY, VALUE
#  LIST       KEY                VALUE                                                         
0  tailscale  ADVERTISE_ROUTES   10.21.37.0/24                                                 
1  tailscale  AUTH_KEY           tskey-auth-AUTH-KEY
2  tailscale  CONTAINER_GATEWAY  172.17.0.1                                                    
3  tailscale  PASSWORD           PASSWORD
4  tailscale  TAILSCALE_ARGS     --accept-routes --advertise-exit-node                         
5  tailscale  UPDATE_TAILSCALE   1                                        

The exact problem:

mikrotik:/# traceroute 100.122.223.122
traceroute to 100.122.223.122 (100.122.223.122), 30 hops max, 46 byte packets
 1  172.17.0.1 (172.17.0.1)  0.036 ms  0.027 ms  0.021 ms
 2  mikrotik (172.17.0.2)  0.023 ms  0.029 ms  0.025 ms
 3  172.17.0.1 (172.17.0.1)  0.024 ms  0.028 ms  0.023 ms
 4  mikrotik (172.17.0.2)  0.023 ms  0.029 ms  0.024 ms
 5  *

Unfortunately, I am unable to find a solution to this problem on my own.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions