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

centos7.3 install and configure tinc-1.0.35 with yum, why can't tun interface be generated after tinc service is started #245

Open
ybbmfk opened this issue Jun 9, 2020 · 2 comments
Labels
1.0 Issue related to Tinc 1.0 needs_investigation Unexpected behaviours with uncertain causes - needs more investigation

Comments

@ybbmfk
Copy link

ybbmfk commented Jun 9, 2020

[rootebranch tincl# tree
-liTinet
--hosts
----branch
----head
--rsa_key.priv
--tinc.conf
--tinc-down
--tinc-up
-nets.boot

[ rootebranch liTinet# grep-Ev '^$|^#' tinc. conf
Name=branch
AddressFamily =ipv4
Interface=tun0
ConnectTo=head

[ rootebranch liTinetl# grep-Ev '^$|^#' tinc-up
ifconf ig $INTERFACE 100.0.0.11 netmask 255.255.255.0
ip route add 22.0.0.0/8 dev $INTERFACE

[rootebranch liTinet]# grep-Ev '^$|^#' hosts/branch
subnet=11.0.0.0/8
-BEGIN RSA PUBLIC KEY-----
1I IBCgKCAQEAWIbFWtoM+uDBBbBk IUgBC1pu+ZQu57XbgQ1D06903+k4FPEBVgMG t7H7kXtapL75EPBc i IFzUY8FBRlyk4DevE2iOEccy6+j2FcWTZT18yf7gb/zaeU
1iRtdsrUk6DQhA1F+EGX(PZYf I41pJU3XUKaUZ 1KaLRuvsYQIS80Dh0 I09XTq7FX mCL+Xg7tu8BtAX0u+D/7ESrJ6xtG,. jmonnF. jCTgt47rHvekTf 72PBFL(OTG3Z/6cu LJWX5RNL8N3SaCREgr53ezKqC. jfckSBN98S7YbvYUh5ad50LoBpJz9LI8Xhx2sS nF+J0. jakGuAAogGg+/dsdSrJtEHbkb4BWIDAQA
—-END RSA PUBLIC KEY-----

[ rootebranch liTinet]# systemctl status tinc
tinc. service-Tinc UPN Loaded: loaded(/usr/lib/systemd/system/tinc. service; disabled; vendor pres Active: active (exited) since Wed 2020-06-18 03:36:39 CST;6s ago

[rootebranch 1iTinet]#lsmod |grep tun
tun 27226 0

tincd -n liTinet -d5 -D
Sending 515 bytes of metadata to head (32.0.0.2 port 655)
Flushing 1842 bytes to head (32.0.0.2 port 655)
Bogus data received from head (32.0.0.2 port 655)
Closing connection with head (32.0.0.2 port 655)
Could not set up a meta connection to head Trying to re-establish outgoing conmection in 115 seconds Purging unreachable nodes Trying to connect to head (32.0.0.2 port 655)
Connected to head(32.0.0.2 port 655)
Sending ID to head (32.0.0.2 port 655):8 branch 17
Sending 12 bytes of metadata to head (32.0.0.2 port 655)
Flushing 12 bytes to head (32.0.0.2 port 655)
Got ID from head (32.0.0.2 port 655):0 head 17

[ rootebranch 1iTinet]# ip add
1:1o:<LOOPBACK, UP, LOWER_UP>mtu 65536 qdisc nocueue state UNKNOWN (len 1
link/loopback 80:08:00:08:00:08 brd 80:08:00:08:00:08
inet 127.0.0.1/8 scope host 1o valid_lft forever preferred_Ift forever inet6::1/128 scope host valid_lft forever preferred_lft forever
2: eth0:<BROADCAST, MULTICAST, UP, LOWER_UP> mtu 1500 qdisc pfifo fast state UP qlen link/ether 50:00:08:04:08:800 brd ff: ff: ff: ff: ff: ff inet 11.0.0.11/8 brd 11.255.255.255 scope global eth0
alid_lft forever preferred_Ift forever inet6 fe80::6b6:f8ad:4a1f:e786/64 scope link alid_lft forever preferred_Ift forever

@honzous
Copy link

honzous commented Jul 8, 2020

Same issue here, even on CentOS 8.2.

# ethtool cust0
Settings for cust0:
	Supported ports: [ ]
	Supported link modes:   Not reported
	Supported pause frame use: No
	Supports auto-negotiation: No
	Supported FEC modes: Not reported
	Advertised link modes:  Not reported
	Advertised pause frame use: No
	Advertised auto-negotiation: No
	Advertised FEC modes: Not reported
	Speed: 10Mb/s
	Duplex: Full
	Port: Twisted Pair
	PHYAD: 0
	Transceiver: internal
	Auto-negotiation: off
	MDI-X: Unknown
	Current message level: 0xffffffa1 (-95)
			       drv ifup tx_err tx_queued intr tx_done rx_status pktdata hw wol 0xffff8000
	Link detected: yes

@fangfufu
Copy link
Collaborator

Not sure if this is a CentOS specific issue, probably needs more investigation.

@fangfufu fangfufu added needs_investigation Unexpected behaviours with uncertain causes - needs more investigation 1.0 Issue related to Tinc 1.0 labels Jun 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.0 Issue related to Tinc 1.0 needs_investigation Unexpected behaviours with uncertain causes - needs more investigation
Projects
None yet
Development

No branches or pull requests

3 participants