Hi Folks, Does anyone have a set of config files handy, using tinc in routed/tun mode (preferably DeviceType=utun) I'm particularly interested to see what the tinc-up and tinc-down files should look like when the vpn is not using tap mode. I have this, from my tap (switch mode tinc) , but it doesn't work for tun devices. ifconfig $INTERFACE inet 10.10.101.2/24 up If I run my tincd in osx in debug mode, the vpn startup fails: /dev/tun0 is a OS X utun device ifconfig: ioctl (SIOCAIFADDR): Destination address required Script tinc-up exited with non-zero status 1 GT
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On Thu, 12 Nov 2020, Graeme Tattersall wrote:> > Hi Folks,Hi Graeme,> Does anyone have a set of config files handy, using tinc in routed/tun > mode (preferably DeviceType=utun)I have 'DeviceType = tun', does that qualify? (running on linux)> > > I'm particularly interested to see what the tinc-up and tinc-down files > should look like when the vpn is not using tap mode.tinc-up: #!/bin/sh ip link set $INTERFACE up ip addr add 10.0.1.1/24 dev $INTERFACE tinc-down: #!/bin/sh ip addr del 10.0.1.1/24 dev $INTERFACE ip link set $INTERFACE down> > > I have this, from my tap (switch mode tinc) , but it doesn't work for > tun devices. > > ifconfig $INTERFACE inet 10.10.101.2/24 upMy linux comes without ifconfig, so I cannot really try, what ifconfig does differently.> > > If I run my tincd in osx in debug mode, the vpn startup fails: > > /dev/tun0 is a OS X utun device > ifconfig: ioctl (SIOCAIFADDR): Destination address required > Script tinc-up exited with non-zero status 1On first glance, your ifconfig command looks ok, so maybe it's a difference between utun and tun.> > > GTregards, Erich -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE3p92iMrPBP64GmxZCu7JB1Xae1oFAl+tdTkACgkQCu7JB1Xa e1pa/Q//Z0bFqYKeelNlAjql4K3TBGzYIge/11KTu6Gd1ul+apHOOum0ubUwHNIN BSTIZj3/iV/ukKDhnSqGIfmcfyTPI1zUhZrO9WUXWkambqUKenWuFnLepNZF9CSn gUBWR7G3kAidQHmMW2qgOgyz0KwUnkrBnUOIg64EnzNoOKdTLsjM4goWiu7u547k EVH38m4ZX2vutIV1ehZAC/JhpqRG6NeQf+2r0sRJScoWnTTw/Bdyvm8DEkwasjTG avzOJRYxFiidcz6HBFAmqgcliI/cdAs7Kzns8NV1PfHwvpkQK3NBeY+xZJ0n33Uw Y6PuF0tRroRr1Ot6sWKM3OR0VQphhRivxMW/TOqNhVTyen4InkAjJ3yLJ9HmVPWW ADpWCw46NxbEb01Xe14TVho5Ux8eyetHjFleBC8yQR/lD1k+pUL+4TXxS+fSSjgM IFWMuF8fbRFcsTydtSktdb6bJTfwfg19xBpk6QVn511ZjFb+oB7Y0IdE/v4zkH/4 jY/ymYeEiD9mJpttkPGAdJb85AgFPX6bHpJrtKOy7GSQtmjiXHtvnbBUpqJz2+OV aHzsJmzaJkysv+ntn4pEoUFHm6t2+Vm1ReK/7Nz2td45U5PMpURWr0evcNMqeHwl cMOkokJWTTIDSkTEKjqBrOrSuL3V3IosES9JcehFpAsZolizlh8=2hCL -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Yeah, All I can see is the tinc commit where tinc gained support for the built-in utun device; but there doesn't seem to be any end-to-end documentation on how to use it. This whole thing is necessary because apple are removing support for loadable extensions and particularly tap devices in the next OSX, Bug Sur 10.11. But it looks like ifconfig tun interfaces on OSX/BSD need a local and remote IP address? I'm confused. Surely we don't know the remote address, because it could be any node on the tinc network depending on which node I need to talk to -- and what if i need to exchange with more than one node at the same time? All very confusing - would the tun interface need to be constantly reconfigured over and over again endlessly? https://git.habd.as/comfusion/tinc/commit/d7f6737 GT On 12/11/2020 17:47, Erich Eckner wrote:> On Thu, 12 Nov 2020, Graeme Tattersall wrote: > > > Does anyone have a set of config files handy, using tinc in routed/tun > > mode (preferably DeviceType=utun) > > I have 'DeviceType = tun', does that qualify? (running on linux) > > > I'm particularly interested to see what the tinc-up and tinc-down files > > should look like when the vpn is not using tap mode. > > tinc-up: > #!/bin/sh > ip link set $INTERFACE up > ip addr add 10.0.1.1/24 dev $INTERFACE > > tinc-down: > #!/bin/sh > ip addr del 10.0.1.1/24 dev $INTERFACE > ip link set $INTERFACE down > > > > I have this, from my tap (switch mode tinc) , but it doesn't work for > > tun devices. > > > ifconfig $INTERFACE inet 10.10.101.2/24 up > > > If I run my tincd in osx in debug mode, the vpn startup fails: > > > /dev/tun0 is a OS X utun device > > ifconfig: ioctl (SIOCAIFADDR): Destination address required > > Script tinc-up exited with non-zero status 1 > > On first glance, your ifconfig command looks ok, so maybe it's adifference between utun and tun.> > > > > GT > > regards, > Erich > > > _______________________________________________ > tinc mailing list > tinc at tinc-vpn.org > https://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc-----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEE5/ojk0/H13Dre7lpKoGJJSwxlJ0FAl+te6EACgkQKoGJJSwx lJ0+uQgAw2BQPstbzVvLIxvrrPRS3aL2LJcJ2BqRmqHpMLtReyfPNqHvYQkoeHMJ 1DJinTLAMT4tMzy94n85ij021JY3A04uwSEfywqxMUMFqENo/yLc2EC1Ae38bbIV xhMLW3FxDPYiOs199cHKuqq33ujFDPgu8REQvpIGX6SYL9/LZk6dqFZYy+veH9x4 0cTuqFI37X39JE3aVr4XmWhU5hRPbzfREIMlV+Uwn/wwZFZwuQuZj1Bxz8sogcAW MxMGnCxl+tkugo84chbjM7Jw7H/O/iERaTcRzWpGPPKfvdQJxFntmREFMDg1wd3i jrPVBHxy2lVxj1DR77ozuD/3e5l2Fg==7I1z -----END PGP SIGNATURE-----