Examples request - tinc witn tun/utun mode=router

Erich Eckner tinc at eckner.net
Thu Nov 12 18:47:36 CET 2020


-----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 up

My 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 1

On first glance, your ifconfig command looks ok, so maybe it's a 
difference between utun and tun.

>
>
> GT

regards,
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-----


More information about the tinc mailing list