I currently am using tinc 1.0.33 on a 4 node Ubuntu 14.04 server network at Digital Ocean connecting on the Eth1 private network interfaces. This works great. Recently I added two more Ubuntu 18.04 servers at the same location and attempted to link them to the Tinc mesh already established. The 18.04 servers do not allow me to use the net-tools ipconfig command and so I have adapted my tinc-up commands to use iproute2 commands. #!/bin/sh # tinc-up ip tuntap add dev $INTERFACE mode tun ip addr add 10.0.0.3/24 dev $INTERFACE ip link set dev $INTERFACE up However, when I run this command I get the error Error: either "name" is duplicate, or "tun" is a garbage. Command line is not complete. Try option "help" Cannot find device "up" I have tried variations of the commands in the tinc-up file, but cannot get a result without errors. my /etc/tinc/vpn/tinc.conf file: Name = web3 AddressFamily = ipv4 BindToAddress = 10.132.115.166 (changed) Interface = tun0 ConnectTo = db1 systemctl status tinc: tinc.service - Tinc VPN Loaded: loaded (/lib/systemd/system/tinc.service; enabled; vendor preset: enabled Question, when using iproute2 on ubuntu 18.04 should I use a different configuration for tinc-up? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20180611/2c61f41c/attachment.html>
On Mon, Jun 11, 2018 at 10:43 AM, Robert Horgan <robert at nsasia.co.th> wrote:> I currently am using tinc 1.0.33 on a 4 node Ubuntu 14.04 server network at > Digital Ocean connecting on the Eth1 private network interfaces. This works > great. > > Recently I added two more Ubuntu 18.04 servers at the same location and > attempted to link them to the Tinc mesh already established. The 18.04 > servers do not allow me to use the net-tools ipconfig command and so I have > adapted my tinc-up commands to use iproute2 commands. > > #!/bin/sh > # tinc-up > ip tuntap add dev $INTERFACE mode tunI don't think you need to create the tuntap device. Tinc creates it. Cheers, Wicher
On Mon, Jun 11, 2018 at 08:43:26AM +0700, Robert Horgan wrote:> Recently I added two more Ubuntu 18.04 servers at the same location and attempted to link them to the Tinc mesh already established. The 18.04 servers do not allow me to use the net-tools ipconfig command and so I have adapted my tinc-up commands to use iproute2 commands. > > #!/bin/sh > # tinc-up > ip tuntap add dev $INTERFACE mode tun > ip addr add 10.0.0.3/24 dev $INTERFACE > ip link set dev $INTERFACE up > > However, when I run this command I get the error > Error: either "name" is duplicate, or "tun" is a garbage. > Command line is not complete. Try option "help" > Cannot find device "up"You don't need to create a tuntap interface yourself, tinc will do this for you. So you can just omit the whole "ip tuntap add ..." line. However, the error messages suggest that $INTERFACE is empty, which is weird... Did you call tinc-up manually or does this also happen when you start tinc using "tincd -n vpn -d -D"? -- Met vriendelijke groet / with kind regards, Guus Sliepen <guus at tinc-vpn.org> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20180611/7accc606/attachment.sig>