pacien / tincapp

Android binding and user interface for the tinc mesh VPN daemon.
https://tincapp.euxane.net
GNU General Public License v3.0
165 stars 31 forks source link

Can you provide a complete tinc configuration for Android? #121

Open piiiiiiiiiiiiiii opened 11 months ago

piiiiiiiiiiiiiii commented 11 months ago

I've been using it all between linux and windows for a while now and it's stable, but Android phones have never worked.

I have configured it between the two, but the phone status shows connected, but cannot ping through and trace through between the two.

Reference document: https://tincapp.pacien.org/doc.html

pacien commented 11 months ago

Quoting piiiiiiiiiiiiiiiiiiiiii (2023-12-18 11:08:29)

Can you provide a complete tinc configuration for Android?

Full examples of tinc.conf and network.conf are provided at the end of those sections:

I have configured it between the two, but the phone status shows connected, but cannot ping through and trace through between the two.

You might want to try to follow the troubleshooting guide, step-by-step, to identify the issue precisely:

piiiiiiiiiiiiiii commented 11 months ago

I've compared multiple times and am sure there's no misconfiguration, but just like the screenshot, it shows connected, but it just doesn't go through

pacien commented 11 months ago

Quoting piiiiiiiiiiiiiiiiiiiiii (2023-12-19 07:25:30)

Can I locate the problem based on my screenshot?

I've compared multiple times and am sure there's no misconfiguration, but just like the screenshot, it shows connected, but it just doesn't go through

The mobile and "server" tinc nodes seem to be able to see and reach other.

However it is unclear whether your network packets are going to and from tinc. Your pings should generate more network activity in the tinc log.

I'd advise checking the local routes (section 1.1 of the troubleshooting guide) in particular.

piiiiiiiiiiiiiii commented 11 months ago

If I use the older version, 0.35 0.36 0.37, the catalog does not automatically generate the configuration file.

[USB storage]/Android/data/org.pacien.tincapp/ is empty in there.

pacien commented 11 months ago

Quoting piiiiiiiiiiiiiiiiiiiiii (2023-12-19 14:02:23)

If I use the older version, 0.35 0.36 0.37, the catalog does not automatically generate the configuration file.

[USB storage]/Android/data/org.pacien.tincapp/ is empty in there.

The location of the configuration file changed in 0.38, as mentionned in the changelog: https://cgit.pacien.net/tincapp/tree/changelog.md. This is normal and should not be related to the current issue.

Again, please check the routes. Posting the configuration files (without the private keys), as well as text logs and outputs of the commands of the troubleshooting guide would help.

piiiiiiiiiiiiiii commented 11 months ago

Maybe the problem is caused by the fact that I'm using a HarmonyOS phone and the file directory is different