tinc-boot icon indicating copy to clipboard operation
tinc-boot copied to clipboard

Seems has some bug after use customized network name

Open dzxx36gyy opened this issue 4 years ago • 5 comments

When use customized network name like "snet" rather than the default "dnet", it can create successfully with the standalone mode, but when try to add other node to it via command tinc-boot gen --network="snet" --token xxxxxx, it will failed with error "http://example.com:8665 can't open /etc/tinc/dnet/hosts/xxxx: no such file or directory". Seems the variable "network" didn't work properly.

dzxx36gyy avatar Jul 28 '21 11:07 dzxx36gyy

Also it seems the variable "name" with command tinc-boot gen --name="eu-fr-ovh-51" will remove the characters like dash and underline, so i will got the name "eufrovh51" in the end. However, i think it's means to make the hostname more readable, so i recommend to keep them.

dzxx36gyy avatar Jul 28 '21 11:07 dzxx36gyy

"name" restriction came from tinc. Only [a-zA-Z0-9]+ symbols are allowed.

reddec avatar Jul 29 '21 01:07 reddec

"name" restriction came from tinc. Only [a-zA-Z0-9]+ symbols are allowed.

Okay, i know, but the first problem about "network" do existed.

dzxx36gyy avatar Jul 29 '21 07:07 dzxx36gyy

Yes, I believe. Will check it soon.

reddec avatar Jul 29 '21 09:07 reddec

Also, i found another problem, seems when you setup an bootnode using tinc-boot bootnode --service --token xxxx, it will use the hostname by default, and it won't using the name in the first step tinc-boot gen --name abcde --standable -a 1.2.3.4. So that will cause a problem, when another node try to join the bootnode, the different name and hostname will cause the bootnode try to find /etc/tinc/dnet/hosts/hostname rather than the expected /etc/tinc/dnet/hosts/name. Then it will cause the new node can't decrypted the information and finally got the error "all boot nodes failed".

dzxx36gyy avatar Jul 30 '21 09:07 dzxx36gyy