So I was planing to travel for a bit and use a portable router to be able to use the hotspot for multiple devices, and also be able to connect to my home devices through a Tailscale tunnel. Will that be possible to do with a GL-A1300 (Slate Plus)?
Hi @bring.fringe18 - Thatās fine with me, Iām cool with making any changes. I just donāt have a context for how to first authenticate with tailscale and then run the gl.inet router as the exit node. Does it have to be through GUI first? Is there a documentation page available for all that?
IDK; I donāt use TS. I only know that method is reported to work per the results of others. I assume youāre already set up your tailnet & are just looking to get the GL device to act as a exit node.
Then if that method I posted still works it should just be a matter of tweaking a script. Donāt forget to add that modified .sh to be including in your backups:
Ensure the router is the exit node and also disable the expiry of the authentication key.
<Canāt insert more than 1 image>
Edit the file /usr/bin/gl_tailscale.sh and add the highlighted parameter to the line 159 after the --reset parameter. The line should look like: /usr/sbin/tailscale up --reset --advertise-exit-node --accept-routes $param --timeout 3s > /dev/null
<Canāt insert more than 1 image>
Restart the router and test if it works once itās back up and running.
Heh; @tragicshadow 's method is just a reimplementation of mine updated for the Flint v2 (GL-MT6000) differences in firmware filenames. Itās not quite as clean but hey! As long as it works.
I like the sed approach BUT tailscale.settings.exit_node_ip is not set on my server (as it should only be set on the client..). There doesn't seem to be a tailscale.settings that could be used for this purpose so just added a line just before the tailscale up command. This is the combination of the above two solutions:
This worked perfectly vin321. Thanks.
I went into the apps panel and installed the nano text editor (I used nano_full since my MT6000 has plenty of space). Then ssh'd into the router (you have to enable it first).
nano /usr/bin/gl_tailscale
that'll open the file in nano, then the line vin321 mentioned is nearly at the end of the file for me.
add the option, save (write out), reboot, profit.