Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use Subnet routers #23

Open
jiege6-66 opened this issue May 15, 2024 · 7 comments
Open

Can't use Subnet routers #23

jiege6-66 opened this issue May 15, 2024 · 7 comments

Comments

@jiege6-66
Copy link

No description provided.

@jiege6-66 jiege6-66 changed the title Can't use Can't use Subnet routers May 15, 2024
@jiege6-66
Copy link
Author

I successfully operate the tailsclae on kernelsu however,when I want to Access 192.168.2.1, its unable to access, can connect when I enter the virtual ip in tailsclae. How can I fix this?

Also, when I want to share hotspots with other machines,Connected devices can use the Subnet routers?If cant,how to access it ?

@anasfanani
Copy link
Owner

New build should fix subnet routes issue.

Connected devices can use the Subnet routers?

I'm not sure about this, not yet test

@anasfanani
Copy link
Owner

Yes client can use subnet routes.
Execute this to make tailnet/subnet routes accessible to Wi-Fi client.

iptables -t nat -A POSTROUTING -o tailscale0 -j MASQUERADE

Let me know if your problem is already solved.

@ppllpig
Copy link

ppllpig commented Jun 16, 2024

Yes client can use subnet routes. Execute this to make tailnet/subnet routes accessible to Wi-Fi client.

iptables -t nat -A POSTROUTING -o tailscale0 -j MASQUERADE

Let me know if your problem is already solved.

reply: no command ipatable found,...

@ppllpig
Copy link

ppllpig commented Jun 18, 2024

Yes client can use subnet routes. Execute this to make tailnet/subnet routes accessible to Wi-Fi client.

iptables -t nat -A POSTROUTING -o tailscale0 -j MASQUERADE

Let me know if your problem is already solved.

reply: no command ipatable found,...

i tried commade su,it worked.but still cannot connect through sub route using local ip like 192.168..,how can i be sure if iptable works?

@fankes
Copy link

fankes commented Jul 13, 2024

tailscale up --accept-routes=true

Try this? I fixed this issue with this command.

@fankes
Copy link

fankes commented Jul 15, 2024

According to my own attempts, I can use the following two commands.
First, allow the subnet routers.

tailscale up --accept-routes=true

or

tailscale up --accept-routes

Then set the iptables rules like @ppllpig (need to be reset every time the device is rebooted).

iptables -t nat -A POSTROUTING -o tailscale0 -j MASQUERADE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants