Hi All! please help with subj.
tinc is enabled

/etc/init.d/tinc enable

When I try to start it with

/etc/init.d/tinc start

something happens like

Fri Oct 27 14:26:38 2017 daemon.notice tinc.Shops[7340]: tincd 1.0.26 (Jan 31 2016 13:32:24) starting, debug level 0
Fri Oct 27 14:26:38 2017 daemon.info tinc.Shops[7340]: /dev/net/tun is a Linux tun/tap device (tun mode)
Fri Oct 27 14:26:38 2017 daemon.notice netifd: Interface 'Shops' is enabled
Fri Oct 27 14:26:38 2017 daemon.notice netifd: Network device 'Shops' link is up
Fri Oct 27 14:26:38 2017 daemon.notice netifd: Interface 'Shops' has link connectivity 
Fri Oct 27 14:26:38 2017 daemon.notice netifd: Interface 'Shops' is setting up now
Fri Oct 27 14:26:38 2017 daemon.notice netifd: Interface 'Shops' is now up
Fri Oct 27 14:26:38 2017 daemon.notice tinc.Shops[7340]: Ready
Fri Oct 27 14:27:18 2017 daemon.notice tinc.Shops[7340]: Got TERM signal
Fri Oct 27 14:27:19 2017 daemon.notice netifd: Network device 'Shops' link is down
Fri Oct 27 14:27:19 2017 daemon.notice netifd: Interface 'Shops' has link connectivity loss
Fri Oct 27 14:27:19 2017 daemon.notice netifd: Interface 'Shops' is now down
Fri Oct 27 14:27:19 2017 daemon.notice tinc.Shops[7340]: Terminating
Fri Oct 27 14:27:19 2017 daemon.notice netifd: Interface 'Shops' is disabled

However starting it by typing

tincd -nShops 

in ssh session works like charm.

root@OPENWRT68:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         99.88.77.66.sta 0.0.0.0         UG    0      0        0 eth1
99.88.77.0       *               255.255.255.0   U     0      0        0 eth1
192.168.1.0     *               255.255.255.0   U     0      0        0 Shops
192.168.3.0     *               255.255.255.0   U     0      0        0 Shops
192.168.4.0     *               255.255.255.0   U     0      0        0 Shops
192.168.5.0     *               255.255.255.0   U     0      0        0 Shops
192.168.7.0     *               255.255.255.0   U     0      0        0 Shops
192.168.8.0     *               255.255.255.0   U     0      0        0 Shops
192.168.9.0     *               255.255.255.0   U     0      0        0 Shops
192.168.10.0    *               255.255.255.0   U     0      0        0 Shops
192.168.11.0    *               255.255.255.0   U     0      0        0 Shops
192.168.13.0    *               255.255.255.0   U     0      0        0 Shops
192.168.14.0    *               255.255.255.0   U     0      0        0 Shops
192.168.15.0    *               255.255.255.0   U     0      0        0 Shops
192.168.16.0    *               255.255.255.0   U     0      0        0 Shops
192.168.20.0    *               255.255.255.0   U     0      0        0 Shops
192.168.22.0    *               255.255.255.0   U     0      0        0 Shops
192.168.28.0    *               255.255.255.0   U     0      0        0 Shops
192.168.66.0    *               255.255.255.0   U     0      0        0 Shops
192.168.68.0    *               255.255.255.0   U     0      0        0 br-lan
root@OPENWRT68:~# ifconfig 
Shops     Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet addr:192.168.68.1  P-t-P:192.168.68.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX bytes:1764 (1.7 KiB)  TX bytes:2640 (2.5 KiB)

br-lan    Link encap:Ethernet  HWaddr 84:16:F9:44:B3:A2  
          inet addr:192.168.68.1  Bcast:192.168.68.255  Mask:255.255.255.0
          RX bytes:28133876 (26.8 MiB)  TX bytes:9719598 (9.2 MiB)
root@OPENWRT68:~# ping 192.168.1.22
PING 192.168.1.22 (192.168.1.22): 56 data bytes
64 bytes from 192.168.1.22: seq=0 ttl=127 time=36.557 ms
64 bytes from 192.168.1.22: seq=7 ttl=127 time=14.501 ms
64 bytes from 192.168.1.22: seq=8 ttl=127 time=22.475 ms
64 bytes from 192.168.1.22: seq=9 ttl=127 time=15.200 ms
^C
--- 192.168.1.22 ping statistics ---
10 packets transmitted, 4 packets received, 60% packet loss
round-trip min/avg/max = 14.501/22.183/36.557 ms

configs for example

root@OPENWRT:~# ls /etc/tinc/Shops
hosts
rsa_key.priv
rsa_key.pub
subnet-down
subnet-up
tinc-down
tinc-up
tinc.conf
root@OPENWRT:~# cat /etc/tinc/
Shops/
nets.boot
rsa_key.priv
tinc.conf
root@OPENWRT:~# cat /etc/tinc/nets.boot 
Shops

I used /howto/vpn.tinc as Main book from OpenWrt's WIKI when configuring routers.

Machine: TP-Link TL-WR842N/ND v3  

# uname -a
Linux OPENWRT68 3.18.45 #8 Fri Jun 2 19:01:40 CEST 2017 mips GNU/Linux

How to solve autostart Tinc at boot as daemon/servce?

(Last edited by TDA on 27 Oct 2017, 10:38)