You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This command uses a userspace network stack instead of the kernel's network stack, which can be useful on devices where the kernel's network stack is not compatible with Tailscale. The state file for tailscaled is stored at `/data/adb/tailscale/tmp/tailscaled.state`, and the log output is written to `/data/adb/tailscale/run/tailscaled.log`.
54
+
The state file for tailscaled is stored at `/data/adb/tailscale/tmp/tailscaled.state`, and the log output is written to `/data/adb/tailscale/run/tailscaled.log`.
52
55
56
+
## Available command
53
57
58
+
-`tailscale`: This command is execute tailscale operation.
59
+
-`tailscaled`: This command is execute tailscaled daemon operation.
60
+
-`tailscaled.service`: This command for manage tailscaled service, you can start,stop,restart daemon and view live logs the tailscaled operation.
61
+
-`tailscaled.tun`: This command is for manage hev-socks5-tunnel.
62
+
54
63
## Example of Using Tailscale
55
64
56
65
### SSH to Termux
@@ -79,13 +88,13 @@ Enter your password when prompted, for example, `123`.
79
88
3. Open the terminal & SSH to your Android IP:
80
89
81
90
```bash
82
-
ssh <random_user>@<tailscale_ip> -p 8022
91
+
ssh <root>@<tailscale_ip> -p 8022
83
92
```
84
93
85
94
For example:
86
95
87
96
```bash
88
-
ssh user@100.95.95.95 -p 8022
97
+
ssh root@100.95.95.95 -p 8022
89
98
```
90
99
91
100
### SSH access to your Android device
@@ -159,19 +168,69 @@ FLAGS
159
168
160
169
For more details about CLI commands, check out the [Tailscale CLI documentation](https://tailscale.com/kb/1080/cli#using-the-cli).
161
170
162
-
## Troubleshooting
171
+
## FAQ & Troubleshooting
163
172
164
-
Tailscale has some known issues. You can check them out [here](https://github.com/tailscale/tailscale/issues?q=no+safe+place+found+to+store+log+state).
173
+
Tailscale has manny issues. You can check them out [here](https://github.com/tailscale/tailscale/issues).
165
174
166
-
In order to execute any Tailscale command on the terminal, you must navigate to the directory `/data/adb/tailscale/tmp/` and then execute the Tailscale command. For example, `cd /data/adb/tailscale/tmp/` then `tailscale login`, or `tailscale status`.
175
+
#### Cannot access other tailnet devices
167
176
168
-
To address this issue, I have created mock versions of `tailscale` and `tailscaled`. Now, you can run `tailscale login` directly without needing to navigate to the `/data/adb/tailscale/tmp/` directory.
177
+
This module runs the `tailscaled` binary in userspace-networking mode. To access other devices in the tailnet, you must use a local proxy on port 1099. I've implemented a workaround using `hev-socks5-tunnel` to tunnel local socks5 on port 1099 and bind it to the interface named `tailscale0`.
169
178
170
-
If you encounter any problems, take a look at the `service.sh` file. You can modify the commands that are not necessary. If you make some modifications to the commands and they work, please open an issue and make a report.
179
+
Please note, this `tailscale0` interface is different from the original `tailscale0` interface on Linux. In Linux, `tailscale0` is managed by the `tailscaled` daemon, whereas in this module, `tailscale0` is managed by `hev-socks5-tunnel`. The default gateway is `100.100.100.100`, as defined in the `tailscaled.tun.config.yaml` file.
171
180
172
-
This module is confirmed to be supported for KernelSU, as [confirmed by the author of KernelSU](https://github.com/anasfanani/Magisk-Tailscaled/issues/2#issue-2055047162). If you encounter any problems, please let me know.
181
+
This solution should work on most common devices. However, if you encounter problems accessing other tailnet devices, follow these troubleshooting steps:
182
+
183
+
1. Verify that `tailscaled.service` is running. If not, restart it with `tailscaled.service restart`.
184
+
2. Verify that `tailscaled.tun` is running. If not, restart it with `tailscaled.tun restart`.
185
+
3. Check if your device is connected to tailscaled and try a ping connection with `tailscale ping <your_tailnet_ip>`.
186
+
4. Verify the port you want to access is accessible. You can do this by accessing it with another tailscale device or using the Tailscale Android App.
187
+
5. Check if the local socks5 server is working with curl. Execute the following command:
188
+
```
189
+
curl 1.1.1.1 -vI -x localhost:1099
190
+
```
191
+
If it connects, then the local socks5 server is running and working.
192
+
6. Check if the local socks5 server can connect to the tailnet network.
If it connects, then the local socks5 server is functioning correctly.
197
+
7. Finally, check the connection directly with `curl <your_tailnet_ip>:<port> -vI`.
198
+
199
+
If the last step fails, the problem likely lies with `socks5-tun`. Verify there is an interface named `tailscale0`. If it exists, the problem may be with the iptables route, either due to a conflict with another rule or some other issue. Feel free to explore your own solutions. If you're unable to resolve the issue, contact me on Telegram and I'll see if I can assist you.
200
+
201
+
#### My subnet-routes is'nt working
202
+
203
+
Yes because we need define the routes with `iptables` in file `tailscaled.tun.up` and `tailscaled.tun.down`, you can check this [issue reference](https://github.com/anasfanani/Magisk-Tailscaled/issues/17).
204
+
I suppose you're already know the iptables works, if dont, there are chatAI to ask.
205
+
You can copy whole `tailscaled.tun.up` script to chatAI and send instruction with please add 192.168.1.1/24 to this route, also dont forget `tailscaled.tun.down`
206
+
207
+
If you still can't do it by yourself, I'm verry welcome to people who needs help.
208
+
209
+
#### Exit nodes
210
+
211
+
You can check this [issue reference](https://github.com/anasfanani/Magisk-Tailscaled/issues/17).
212
+
213
+
#### ipv6
173
214
174
-
If you encounter any issues, you can check the logs at `/data/adb/tailscale/tmp/tailscaled.log`.
Also explore on the issue first, then you can ask trough telegram.
221
+
222
+
223
+
#### Other Error & Bugs
224
+
225
+
You can explore to the issue tab, if there not exists, you can open issue, for help me resolve the problem, you can include fresh log.
226
+
227
+
1. Restart tailscaled with `tailscaled.service restart`
228
+
2. Reproduce what are you doing which has problem.
229
+
3. Get log at `/data/adb/tailscale/run/tailscaled.log`
230
+
231
+
## Notes
232
+
233
+
This module is confirmed to be supported for KernelSU, as [confirmed by the author of KernelSU](https://github.com/anasfanani/Magisk-Tailscaled/issues/2#issue-2055047162). If you encounter any problems, please let me know.
175
234
176
235
For more information, check out the links below:
177
236
@@ -186,10 +245,13 @@ For more information, check out the links below:
186
245
187
246
-[Tailscale Inc & AUTHORS](https://github.com/tailscale/tailscale). for the static binaries of tailscale & tailscaled
188
247
-[John Wu & Authors](https://github.com/topjohnwu/Magisk). for The Magic Mask for Android
248
+
-[heiher & Authors](https://github.com/heiher/hev-socks5-tunnel). for the hev-socks5-tunnel
189
249
190
250
## Disclaimer
191
251
252
+
This module is provided as-is, I'm not employee at official tailscale, not a verry genius people which can resolve all your problem.
192
253
This module is not affiliated with the official Tailscale. It is a third-party implementation and the author is not responsible for any damage to your device that may occur from its use. Use at your own risk.
254
+
Any improvements is required, any PR is verry required, not just welcome.
0 commit comments