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

Got bad ID from <unknown> #434

Open
wellloaded opened this issue Jun 6, 2023 · 2 comments
Open

Got bad ID from <unknown> #434

wellloaded opened this issue Jun 6, 2023 · 2 comments
Labels
question Question from the users

Comments

@wellloaded
Copy link

wellloaded commented Jun 6, 2023

tinc[5423] | Got bad ID from <unknown> (192.168.1.2 port 42887): invalid name
tinc[5423] | Error while processing ID from <unknown> (192.168.1.2 port 42887)

I get dozens of these messages per hour. In my full mesh tinc VPN this is the only device experiencing this. This device is behind the ISP router and gets a private IP, I have tried port forwarding and DMZ towards the tinc machine (just in case this was an attack) but this makes no different.

192.168.1.1 = ISP router
192.168.1.2 = tinc device (FreshTomato Router)

I have a second machine in the tinc vpn mesh that operates from behind the ISP router and this just works fine I have no logs of sort recorded, so it has to be something with this specific installation.

To me the most confusing part is: 192.168.1.2 port 42887
192.168.1.2 as stated is the tinc device LAN IP address... why port 42887 is handled by the tinc process considering I use the default 655?

Can anyone shed some light on what's going on, and especially why only this device considering the config is aligned to the others?

Thanks

@gsliepen
Copy link
Owner

Sorry for the very late reply. Port 42887 appears because it is the port the other side is sending from. It still connects to tinc's port 655. Outgoing TCP connections normally get assigned a random source port number by the operating system, so that is normal.

The question is of course, what tries to connect to your tinc daemon? It certainly isn't another tinc daemon, as they would never send an ID message with an invalid name.

@gsliepen gsliepen added the question Question from the users label Mar 23, 2024
@Chaots
Copy link

Chaots commented Jun 5, 2024

I just encountered the same message, In my case using Openwrt.

The default config seems to hint at setting the wrong Name for the remote endpoint to connect to. for me it was resulting in a local connection to the local instance, After correcting the Name and tinc-host "name" variables the error disappeared.

I am not entirely sure what the actual mistake was, though double checking those and setting them right, things started working and the errors disappeared. It seems to be related to the way openwrt / the likes initialize tinc as a deamon.

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

No branches or pull requests

3 participants