Hi, I have macosx 10.5.8 and Tunnelblick (openvpn) installed before. I have installed tinc using port and got version 1.0.11 (Jun 29 2010 15:10:51) now I have 2 problems: 1) the interface variable from the tinc.conf is not used, instead I have a tun0 interface (or tap0). 2) the tinc-up script seems to be fired too early as I get an error: ifconfig: interface /dev/tap0 does not exist when I run ifconfig on console after start everything works fine is this already known? is there a workaround for this? btw: it would be helpful, if someone could add to the docs here: http://tinc-vpn.org/examples/osx-install/ how to configure tinc for autostart on macosx regards Henrik -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20100630/e199445d/attachment.html>
On Wed, Jun 30, 2010 at 09:29:30AM +0200, Hinnack wrote:> I have macosx 10.5.8 and Tunnelblick (openvpn) installed before. > I have installed tinc using port and got version 1.0.11 (Jun 29 2010 > 15:10:51) > > now I have 2 problems: > 1) the interface variable from the tinc.conf is not used, instead I have a > tun0 interface (or tap0). > 2) the tinc-up script seems to be fired too early as I get an > error: ifconfig: interface /dev/tap0 does not exist > when I run ifconfig on console after start everything works fineCan you show us the contents of your tinc.conf? The error message suggests you have put "Interface = /dev/tap0" in your tinc.conf. If so, change this to "Device = /dev/tap0". -- Met vriendelijke groet / with kind regards, Guus Sliepen <guus at tinc-vpn.org> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20100701/2ef4fc49/attachment.pgp>
Hi, sorry - typo in my mail :-( my tinc.conf: Device=/dev/tap0 Interface=miadi IndirectData=yes AddressFamily=ipv4 Mode=router Name=henriklaptop ConnectTo=n_proxy ConnectTo=hh_proxy PrivateKeyFile=/mypathtomytinc/rsa_key.priv the output on start: tincd 1.0.11 (Jun 29 2010 15:10:51) starting, debug level 1 /dev/tap0 is a Generic BSD tap device ifconfig: interface /dev/tap0 does not exist Listening on 0.0.0.0 port 655 Ready ... ifconfig show an interface: tap0: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 ether da:ae:c8:37:94:28 open (pid 12355) regards Henrik 2010/7/1 Guus Sliepen <guus at tinc-vpn.org>> On Wed, Jun 30, 2010 at 09:29:30AM +0200, Hinnack wrote: > > > I have macosx 10.5.8 and Tunnelblick (openvpn) installed before. > > I have installed tinc using port and got version 1.0.11 (Jun 29 2010 > > 15:10:51) > > > > now I have 2 problems: > > 1) the interface variable from the tinc.conf is not used, instead I have > a > > tun0 interface (or tap0). > > 2) the tinc-up script seems to be fired too early as I get an > > error: ifconfig: interface /dev/tap0 does not exist > > when I run ifconfig on console after start everything works fine > > Can you show us the contents of your tinc.conf? The error message suggests > you > have put "Interface = /dev/tap0" in your tinc.conf. If so, change this to > "Device = /dev/tap0". > > -- > Met vriendelijke groet / with kind regards, > Guus Sliepen <guus at tinc-vpn.org> > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > > iEYEARECAAYFAkws8sYACgkQAxLow12M2nuFDwCgqb0VYDNZIMKf0fwcMxamVGJZ > 1moAoKkA/Nr+a3ESc0xR0mshVcOshCxv > =qy31 > -----END PGP SIGNATURE----- > > _______________________________________________ > tinc mailing list > tinc at tinc-vpn.org > http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20100701/0240b71e/attachment.htm>
On Thu, Jul 01, 2010 at 10:29:35PM +0200, Hinnack wrote:> my tinc.conf: > > Device=/dev/tap0 > Interface=miadiHm. I just checked, and on BSD it is not possible to change the name of the tun or tap interface by using the Interface option. However, it should have passed "miadi" in the $INTERFACE environment variable. But I think you have used $DEVICE in tinc-up, not $INTERFACE. Try omitting "Interface=miadi" from tinc.conf, and replace $DEVICE with $INTERFACE in tinc-up. -- Met vriendelijke groet / with kind regards, Guus Sliepen <guus at tinc-vpn.org> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20100701/4d54e96e/attachment.pgp>
hi, yes, Ihat works, thanks. omitting Interface in tinc.conf does it for me. regards Henrik 2010/7/1 Guus Sliepen <guus at tinc-vpn.org>> On Thu, Jul 01, 2010 at 10:29:35PM +0200, Hinnack wrote: > > > my tinc.conf: > > > > Device=/dev/tap0 > > Interface=miadi > > Hm. I just checked, and on BSD it is not possible to change the name of the > tun > or tap interface by using the Interface option. However, it should have > passed > "miadi" in the $INTERFACE environment variable. > > But I think you have used $DEVICE in tinc-up, not $INTERFACE. Try omitting > "Interface=miadi" from tinc.conf, and replace $DEVICE with $INTERFACE in > tinc-up. > > -- > Met vriendelijke groet / with kind regards, > Guus Sliepen <guus at tinc-vpn.org> > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > > iEYEARECAAYFAkws/q0ACgkQAxLow12M2nsodACbBEmInC9WxnI/zzHudKqPOzmy > IeMAn18jddkNrHTii31xwZqvWMj7wWEB > =tamn > -----END PGP SIGNATURE----- > > _______________________________________________ > tinc mailing list > tinc at tinc-vpn.org > http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20100702/8dd3d906/attachment.htm>
hi again, my mac searches for tinc.conf at: /usr/etc/tinc/networkname not as stated here: http://tinc-vpn.org/examples/osx-install/ in /opt/local/etc/tinc when starting tinc in deamon mode: sudo /usr/sbin/tincd -n neworkname I get: Cannot open config file /usr/etc/tinc/networkname/tinc.conf: No such file or directory regards Henrik 2010/7/2 Hinnack <henrik.genssen at googlemail.com>> hi, > > yes, Ihat works, thanks. > omitting Interface in tinc.conf does it for me. > > regards > Henrik > > > 2010/7/1 Guus Sliepen <guus at tinc-vpn.org> > >> On Thu, Jul 01, 2010 at 10:29:35PM +0200, Hinnack wrote: >> >> > my tinc.conf: >> > >> > Device=/dev/tap0 >> > Interface=miadi >> >> Hm. I just checked, and on BSD it is not possible to change the name of >> the tun >> or tap interface by using the Interface option. However, it should have >> passed >> "miadi" in the $INTERFACE environment variable. >> >> But I think you have used $DEVICE in tinc-up, not $INTERFACE. Try omitting >> "Interface=miadi" from tinc.conf, and replace $DEVICE with $INTERFACE in >> tinc-up. >> >> -- >> Met vriendelijke groet / with kind regards, >> Guus Sliepen <guus at tinc-vpn.org> >> >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1.4.10 (GNU/Linux) >> >> iEYEARECAAYFAkws/q0ACgkQAxLow12M2nsodACbBEmInC9WxnI/zzHudKqPOzmy >> IeMAn18jddkNrHTii31xwZqvWMj7wWEB >> =tamn >> >> -----END PGP SIGNATURE----- >> >> _______________________________________________ >> tinc mailing list >> tinc at tinc-vpn.org >> http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc >> >> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20100702/a410f51f/attachment.htm>