Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

NodeBB

  1. Home
  2. Selfhosted
  3. Classification need with Tailscale, remote access, and local access.

Classification need with Tailscale, remote access, and local access.

Scheduled Pinned Locked Moved Selfhosted
selfhosted
13 Posts 6 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G This user is from outside of this forum
    G This user is from outside of this forum
    [email protected]
    wrote last edited by [email protected]
    #1

    I encountered something I don't quite understand, and I was hoping someone could enlighten me.

    I set up Tailscale on my router with subnets, so I could remotely access my home network. This worked great.
    Then, at home, I was happily browsing the internet on my main PC, and decided to dial into another machine on my network. It couldn't access it at all. Disconnecting Tailscale on my main PC restored lconnectivity.

    I don't understand what is happening here- the only thing I can think of is that my internet traffic was being routed through Tailscale, but I don't have an exit node.

    TL,DR: home PC sees Internet but not LAN when connected to Tailscale, why and how fix?

    R J irmadlad@lemmy.worldI dietasse@feddit.orgD 4 Replies Last reply
    41
    • G [email protected]

      I encountered something I don't quite understand, and I was hoping someone could enlighten me.

      I set up Tailscale on my router with subnets, so I could remotely access my home network. This worked great.
      Then, at home, I was happily browsing the internet on my main PC, and decided to dial into another machine on my network. It couldn't access it at all. Disconnecting Tailscale on my main PC restored lconnectivity.

      I don't understand what is happening here- the only thing I can think of is that my internet traffic was being routed through Tailscale, but I don't have an exit node.

      TL,DR: home PC sees Internet but not LAN when connected to Tailscale, why and how fix?

      R This user is from outside of this forum
      R This user is from outside of this forum
      [email protected]
      wrote last edited by
      #2

      How did you set up subnet advertisements on the router, and which subnets? Did you touch the ACL in the tailnet's admin console?

      On the home PC, did you accept advertised routes with the Tailscale client?

      What happens when you ping a host on the LAN using tailscale ping ADDR? What happens when you try to tracert or tracepath to it?

      G 1 Reply Last reply
      7
      • G [email protected]

        I encountered something I don't quite understand, and I was hoping someone could enlighten me.

        I set up Tailscale on my router with subnets, so I could remotely access my home network. This worked great.
        Then, at home, I was happily browsing the internet on my main PC, and decided to dial into another machine on my network. It couldn't access it at all. Disconnecting Tailscale on my main PC restored lconnectivity.

        I don't understand what is happening here- the only thing I can think of is that my internet traffic was being routed through Tailscale, but I don't have an exit node.

        TL,DR: home PC sees Internet but not LAN when connected to Tailscale, why and how fix?

        J This user is from outside of this forum
        J This user is from outside of this forum
        [email protected]
        wrote last edited by
        #3

        Your default routes are being set incorrectly. If you're using it as an exit node, then you need to make sure it's only being used as such for other clients on the Tailnet. You also need to make sure you're splitting your routes correctly so that the default route on your router isn't set for something on the Tailnet.

        Generally speaking, if you're not familiar with networking and routing, you don't need to change the subnet settings if using a Tailscale client on your router. You also shouldn't be advertising routes from it for your own network, or else you could end up getting issues like you're seeing because your routing tables will be broken while Tailscale is active.

        One more thing: Tailscale on your router doesn't make it a server, it's still a Tailscale client. You still need to setup your routing in the Tailscale server to make sure it's not duplicating routes like this.

        G 1 Reply Last reply
        1
        • G [email protected]

          I encountered something I don't quite understand, and I was hoping someone could enlighten me.

          I set up Tailscale on my router with subnets, so I could remotely access my home network. This worked great.
          Then, at home, I was happily browsing the internet on my main PC, and decided to dial into another machine on my network. It couldn't access it at all. Disconnecting Tailscale on my main PC restored lconnectivity.

          I don't understand what is happening here- the only thing I can think of is that my internet traffic was being routed through Tailscale, but I don't have an exit node.

          TL,DR: home PC sees Internet but not LAN when connected to Tailscale, why and how fix?

          irmadlad@lemmy.worldI This user is from outside of this forum
          irmadlad@lemmy.worldI This user is from outside of this forum
          [email protected]
          wrote last edited by
          #4

          Just throwing this out there: Are you using a separate VPN for your PC? For instance, my PC has a commercial VPN and Tailscale. Talescale connects me to the remote server for ssh/sftp etc, while my VPN connects to everything else. I had to do some tinkering to get them to both work simultaneously. Without the tinkering, Tailscale would not connect to the server.

          If you are just using Tailscale with no other VPN then disregard this, and take the advice form others here.

          G 1 Reply Last reply
          3
          • R [email protected]

            How did you set up subnet advertisements on the router, and which subnets? Did you touch the ACL in the tailnet's admin console?

            On the home PC, did you accept advertised routes with the Tailscale client?

            What happens when you ping a host on the LAN using tailscale ping ADDR? What happens when you try to tracert or tracepath to it?

            G This user is from outside of this forum
            G This user is from outside of this forum
            [email protected]
            wrote last edited by
            #5

            I set up subnet advertisements by doing tailscale set --advertise-routes=192.168.1.0/24. I did not touch ACL.

            The home PC is Windows, the context menu for the tray app give the option to 'use tailscale subnets' which is enabled- I assume this is the equivalent of accepting advertised routes.

            From the home PC, tailscale ping 192.168.1.2 returns a pong, from the tailscale IP. tracert fails.

            R 1 Reply Last reply
            1
            • irmadlad@lemmy.worldI [email protected]

              Just throwing this out there: Are you using a separate VPN for your PC? For instance, my PC has a commercial VPN and Tailscale. Talescale connects me to the remote server for ssh/sftp etc, while my VPN connects to everything else. I had to do some tinkering to get them to both work simultaneously. Without the tinkering, Tailscale would not connect to the server.

              If you are just using Tailscale with no other VPN then disregard this, and take the advice form others here.

              G This user is from outside of this forum
              G This user is from outside of this forum
              [email protected]
              wrote last edited by
              #6

              I have a commercial VPN, but I am not connected. What tinkering did you have to do?

              1 Reply Last reply
              3
              • J [email protected]

                Your default routes are being set incorrectly. If you're using it as an exit node, then you need to make sure it's only being used as such for other clients on the Tailnet. You also need to make sure you're splitting your routes correctly so that the default route on your router isn't set for something on the Tailnet.

                Generally speaking, if you're not familiar with networking and routing, you don't need to change the subnet settings if using a Tailscale client on your router. You also shouldn't be advertising routes from it for your own network, or else you could end up getting issues like you're seeing because your routing tables will be broken while Tailscale is active.

                One more thing: Tailscale on your router doesn't make it a server, it's still a Tailscale client. You still need to setup your routing in the Tailscale server to make sure it's not duplicating routes like this.

                G This user is from outside of this forum
                G This user is from outside of this forum
                [email protected]
                wrote last edited by
                #7

                I kind of follow what you're putting down.

                I am not using an exit node. How do I go about splitting my routes?

                What I want to achieve is 'normal' access for within the lan, as well as remote access over tailscale for things I cannot run tailscale on.

                J 1 Reply Last reply
                0
                • G [email protected]

                  I kind of follow what you're putting down.

                  I am not using an exit node. How do I go about splitting my routes?

                  What I want to achieve is 'normal' access for within the lan, as well as remote access over tailscale for things I cannot run tailscale on.

                  J This user is from outside of this forum
                  J This user is from outside of this forum
                  [email protected]
                  wrote last edited by
                  #8

                  Tailscale is a group of clients on a Tailnet which are all equal, unless you tell it otherwise. That means you need to set the client you installed on your router as a subnet router.

                  Even then, if you're not familiar with networking, you'll probably have duplicate routes if you're not paying attention. The other option is to just install Tailscale on each server you want access to.

                  G 1 Reply Last reply
                  1
                  • J [email protected]

                    Tailscale is a group of clients on a Tailnet which are all equal, unless you tell it otherwise. That means you need to set the client you installed on your router as a subnet router.

                    Even then, if you're not familiar with networking, you'll probably have duplicate routes if you're not paying attention. The other option is to just install Tailscale on each server you want access to.

                    G This user is from outside of this forum
                    G This user is from outside of this forum
                    [email protected]
                    wrote last edited by
                    #9

                    The router is set as a subnet router, that is how I am able to access other machines on my lan remotely.

                    I don't want to, and sometimes can't, install tailscale on every device I want remote access to.

                    So I may have duplicate routes- Does that explain the behaviour in my original post? And how would I go about avoiding that?

                    I could turn off subnet routing, and only turn it on when needed, but I'll be putting up a bunch of other services that will want to talk to each other- I'm assuming this will break whenever I turn subnet routing on.

                    J O 2 Replies Last reply
                    0
                    • G [email protected]

                      The router is set as a subnet router, that is how I am able to access other machines on my lan remotely.

                      I don't want to, and sometimes can't, install tailscale on every device I want remote access to.

                      So I may have duplicate routes- Does that explain the behaviour in my original post? And how would I go about avoiding that?

                      I could turn off subnet routing, and only turn it on when needed, but I'll be putting up a bunch of other services that will want to talk to each other- I'm assuming this will break whenever I turn subnet routing on.

                      J This user is from outside of this forum
                      J This user is from outside of this forum
                      [email protected]
                      wrote last edited by
                      #10

                      Yes, if Tailscale on your router is advertising routes, and your other devices while connected to Tailscale are picking up those advertised routes, they won't be able to figure out how to get to your local network devices if both things are advertising the same routes.

                      1 Reply Last reply
                      0
                      • G [email protected]

                        I set up subnet advertisements by doing tailscale set --advertise-routes=192.168.1.0/24. I did not touch ACL.

                        The home PC is Windows, the context menu for the tray app give the option to 'use tailscale subnets' which is enabled- I assume this is the equivalent of accepting advertised routes.

                        From the home PC, tailscale ping 192.168.1.2 returns a pong, from the tailscale IP. tracert fails.

                        R This user is from outside of this forum
                        R This user is from outside of this forum
                        [email protected]
                        wrote last edited by
                        #11

                        That's unfortunate, I have no idea how Tailscale does routing on Windows. Try running the client without accepting any subnet advertisements.

                        I've also found this: https://tailscale.com/kb/1023/troubleshooting#lan-traffic-prioritization-with-overlapping-subnet-routes The solution might be to advertise a larger subnet (e.g. 192.168.1.0/23) to make the route advertisements on the tailnet less specific than on the LAN. Advertising a larger subnet won't cause any additional issues because it's in a private IP range.

                        1 Reply Last reply
                        0
                        • G [email protected]

                          I encountered something I don't quite understand, and I was hoping someone could enlighten me.

                          I set up Tailscale on my router with subnets, so I could remotely access my home network. This worked great.
                          Then, at home, I was happily browsing the internet on my main PC, and decided to dial into another machine on my network. It couldn't access it at all. Disconnecting Tailscale on my main PC restored lconnectivity.

                          I don't understand what is happening here- the only thing I can think of is that my internet traffic was being routed through Tailscale, but I don't have an exit node.

                          TL,DR: home PC sees Internet but not LAN when connected to Tailscale, why and how fix?

                          dietasse@feddit.orgD This user is from outside of this forum
                          dietasse@feddit.orgD This user is from outside of this forum
                          [email protected]
                          wrote last edited by
                          #12

                          I think you might also make your tailscale on router an exit node. I remember when I was setting things up for me I had issue like yours, but on the phone. Everything was working when I used data, but when I connected to my local wifi it didn't see the stuff on subnet ip's. Setting it as exit node helped. Also make sure everything is approved in your tailscale admin.

                          1 Reply Last reply
                          0
                          • G [email protected]

                            The router is set as a subnet router, that is how I am able to access other machines on my lan remotely.

                            I don't want to, and sometimes can't, install tailscale on every device I want remote access to.

                            So I may have duplicate routes- Does that explain the behaviour in my original post? And how would I go about avoiding that?

                            I could turn off subnet routing, and only turn it on when needed, but I'll be putting up a bunch of other services that will want to talk to each other- I'm assuming this will break whenever I turn subnet routing on.

                            O This user is from outside of this forum
                            O This user is from outside of this forum
                            [email protected]
                            wrote last edited by
                            #13

                            Just verifying, after enabling subnet routing, did you create the routes (it's in the docs for subnet router).

                            I have the same problem you do - for some reason TS will "steal" the route, even when correctly configured.

                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Login or register to search.
                            Powered by NodeBB Contributors
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • World
                            • Users
                            • Groups