I am novice using tinc. I followed step by step the sample reported in http://tinc.nl.linux.org/examples/windows-install I have the following in my home (Win XP with tinc-1.0.1-install.exe): ------------------------------------------------------------------------ C:\Program Files\tinc\vpn>type tinc.conf AddressFamily = ipv4 Name = home ConnectTo = office Interface = VPN C:\Program Files\tinc\vpn>type rsa_key.priv -----BEGIN RSA PRIVATE KEY----- MIICXgIBAAKBgQDSedLmhH6lK3wJv6Q6QUEFNg6xAvBQY9ISRq3ivGdbqrX8o0iu (ommited) gvT9fxMDhfu94PoSG08s+fEzAEKLmSoYzYBusUNuEh1dqg=-----END RSA PRIVATE KEY----- C:\Program Files\tinc\vpn>cd hosts C:\Program Files\tinc\vpn\hosts>type office Address = 143.106.50.70 Port = 8500 Subnet = 10.20.40.0 -----BEGIN RSA PUBLIC KEY----- MIGJAoGBAMbiInaYkS+4z9D7X3GOtuNwmIdqEx8D69dY0kreGfkhrAYKU1fED4S/ (I ommited this line) wfpKinePjpd03zv1xBFJEf29/VwLanXpmkFRjrqdlFzcxCM+Nl0lAgMA//8-----END RSA PUBLIC KEY----- C:\Program Files\tinc\vpn\hosts>type home Subnet = 10.20.40.1/32 -----BEGIN RSA PUBLIC KEY----- MIGJAoGBANJ50uaEfqUrfAm/pDpBQQU2DrEC8FBj0hJGreK8Z1uqtfyjSK6xXpRd (I ommited this line) Lu4pIc2F0Y7ftUB7S4stkcp2d/bFRgCdMQpQ4tpXa+NyEW8jQH/PAgMA//8-----END RSA PUBLIC KEY----- I also configured my VPN interface (a TAP-Win32 Adapter type) with static IP address 10.20.40.1, net mask 255.255.0.0 ------------------------------------------------------------------------ In my office, a Mandrake Linux, I have the follow file: [ricardol@sheratan vpn]$ pwd /usr/local/etc/tinc/vpn [ricardol@sheratan vpn]$ cat tinc.conf AddressFamily = ipv4 Name = office Device = /dev/tap0 [ricardol@sheratan vpn]$ cat tinc-up #!/bin/sh /sbin/ifconfig $INTERFACE 10.20.40.1 netmask 255.255.255.0 [ricardol@sheratan vpn]$ cat tinc-down #!/bin/sh /sbin/ifconfig $INTERFACE down [root@sheratan vpn]# cat rsa_key.priv -----BEGIN RSA PRIVATE KEY----- MIICXQIBAAKBgQDG4iJ2mJEvuM/Q+19xjrbjcJiHahMfA+vXWNJK3hn5IawGClNX (ommited...) 3/z1oB6S/WrdwiQJRUNqKPcepyhYLkilPViHvY1sfpNk -----END RSA PRIVATE KEY----- [root@sheratan vpn]# ls /usr/local/etc/tinc/vpn/hosts/ home office [root@sheratan vpn]# cat /etc/networks vpn 10.20.40.0 ------------------------------------------------------------------------ At office, I started the tinc using: /usr/local/sbin/tincd -d -n vpn and I get the following in /var/log/messages: Oct 19 17:39:33 sheratan tinc.vpn[6093]: tincd 1.0.1 (Oct 15 2003 23:35:52) starting, debug level 1 Oct 19 17:39:33 sheratan tinc.vpn[6093]: /dev/tap0 is a Linux ethertap device Oct 19 17:39:33 sheratan tinc.vpn[6093]: Script tinc-up exited with non-zero status 126 Oct 19 17:39:33 sheratan tinc.vpn[6093]: Listening on 0.0.0.0 port 8500 Oct 19 17:39:33 sheratan tinc.vpn[6093]: Ready and at home, I run C:\Program Files\tinc>tincd -n vpn The tincd install the service, and says that it was started. But the VPN doesn't work. Someone can help me. Thanks, Ricardo L. Kulzer. Tinc: Discussion list about the tinc VPN daemon Archive: http://mail.nl.linux.org/lists/ Tinc site: http://tinc.nl.linux.org/
On Sun, Oct 19, 2003 at 05:09:09PM -0300, Ricardo Luis Kulzer wrote:> C:\Program Files\tinc\vpn>type rsa_key.priv > -----BEGIN RSA PRIVATE KEY----- > MIICXgIBAAKBgQDSedLmhH6lK3wJv6Q6QUEFNg6xAvBQY9ISRq3ivGdbqrX8o0iu > (ommited) > gvT9fxMDhfu94PoSG08s+fEzAEKLmSoYzYBusUNuEh1dqg=> -----END RSA PRIVATE KEY-----You should never post private keys, regenerate them before starting tinc again!> C:\Program Files\tinc\vpn\hosts>type office > Address = 143.106.50.70 > Port = 8500 > Subnet = 10.20.40.0Shouldn't that be Subnet = 10.20.40.0/24?> I also configured my VPN interface (a TAP-Win32 Adapter type) with > static IP address 10.20.40.1, net mask 255.255.0.0[...]> [ricardol@sheratan vpn]$ cat tinc-up > #!/bin/sh > /sbin/ifconfig $INTERFACE 10.20.40.1 netmask 255.255.255.0Both your home machine and the office machine have 10.20.40.1 as IP address? That surely won't work.> C:\Program Files\tinc>tincd -n vpn > > The tincd install the service, and says that it was started. But the VPN > doesn't work.You can get more output from tinc by starting it this way: tincd -n vpn -d5 -D -- Met vriendelijke groet / with kind regards, Guus Sliepen <guus@sliepen.eu.org> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://brouwer.uvt.nl/pipermail/tinc/attachments/20031019/77f00239/attachment.pgp
Hi Ricardo, First don't send your private key on web!. For your problem tinc is a VPN that work at TCP/IP level, this means that you can connect different subnet, not the same. ciao dario -----Messaggio originale----- Da: tinc-bounce@nl.linux.org [mailto:tinc-bounce@nl.linux.org]Per conto di Ricardo Luis Kulzer Inviato: domenica 19 ottobre 2003 22.09 A: tinc@nl.linux.org Oggetto: Tinc doesn't respond in Windows XP. I am novice using tinc. I followed step by step the sample reported in http://tinc.nl.linux.org/examples/windows-install I have the following in my home (Win XP with tinc-1.0.1-install.exe): ------------------------------------------------------------------------ C:\Program Files\tinc\vpn>type tinc.conf AddressFamily = ipv4 Name = home ConnectTo = office Interface = VPN C:\Program Files\tinc\vpn>type rsa_key.priv -----BEGIN RSA PRIVATE KEY----- MIICXgIBAAKBgQDSedLmhH6lK3wJv6Q6QUEFNg6xAvBQY9ISRq3ivGdbqrX8o0iu (ommited) gvT9fxMDhfu94PoSG08s+fEzAEKLmSoYzYBusUNuEh1dqg=-----END RSA PRIVATE KEY----- C:\Program Files\tinc\vpn>cd hosts C:\Program Files\tinc\vpn\hosts>type office Address = 143.106.50.70 Port = 8500 Subnet = 10.20.40.0 -----BEGIN RSA PUBLIC KEY----- MIGJAoGBAMbiInaYkS+4z9D7X3GOtuNwmIdqEx8D69dY0kreGfkhrAYKU1fED4S/ (I ommited this line) wfpKinePjpd03zv1xBFJEf29/VwLanXpmkFRjrqdlFzcxCM+Nl0lAgMA//8-----END RSA PUBLIC KEY----- C:\Program Files\tinc\vpn\hosts>type home Subnet = 10.20.40.1/32 -----BEGIN RSA PUBLIC KEY----- MIGJAoGBANJ50uaEfqUrfAm/pDpBQQU2DrEC8FBj0hJGreK8Z1uqtfyjSK6xXpRd (I ommited this line) Lu4pIc2F0Y7ftUB7S4stkcp2d/bFRgCdMQpQ4tpXa+NyEW8jQH/PAgMA//8-----END RSA PUBLIC KEY----- I also configured my VPN interface (a TAP-Win32 Adapter type) with static IP address 10.20.40.1, net mask 255.255.0.0 ------------------------------------------------------------------------ In my office, a Mandrake Linux, I have the follow file: [ricardol@sheratan vpn]$ pwd /usr/local/etc/tinc/vpn [ricardol@sheratan vpn]$ cat tinc.conf AddressFamily = ipv4 Name = office Device = /dev/tap0 [ricardol@sheratan vpn]$ cat tinc-up #!/bin/sh /sbin/ifconfig $INTERFACE 10.20.40.1 netmask 255.255.255.0 [ricardol@sheratan vpn]$ cat tinc-down #!/bin/sh /sbin/ifconfig $INTERFACE down [root@sheratan vpn]# cat rsa_key.priv -----BEGIN RSA PRIVATE KEY----- MIICXQIBAAKBgQDG4iJ2mJEvuM/Q+19xjrbjcJiHahMfA+vXWNJK3hn5IawGClNX (ommited...) 3/z1oB6S/WrdwiQJRUNqKPcepyhYLkilPViHvY1sfpNk -----END RSA PRIVATE KEY----- [root@sheratan vpn]# ls /usr/local/etc/tinc/vpn/hosts/ home office [root@sheratan vpn]# cat /etc/networks vpn 10.20.40.0 ------------------------------------------------------------------------ At office, I started the tinc using: /usr/local/sbin/tincd -d -n vpn and I get the following in /var/log/messages: Oct 19 17:39:33 sheratan tinc.vpn[6093]: tincd 1.0.1 (Oct 15 2003 23:35:52) starting, debug level 1 Oct 19 17:39:33 sheratan tinc.vpn[6093]: /dev/tap0 is a Linux ethertap device Oct 19 17:39:33 sheratan tinc.vpn[6093]: Script tinc-up exited with non-zero status 126 Oct 19 17:39:33 sheratan tinc.vpn[6093]: Listening on 0.0.0.0 port 8500 Oct 19 17:39:33 sheratan tinc.vpn[6093]: Ready and at home, I run C:\Program Files\tinc>tincd -n vpn The tincd install the service, and says that it was started. But the VPN doesn't work. Someone can help me. Thanks, Ricardo L. Kulzer. Tinc: Discussion list about the tinc VPN daemon Archive: http://mail.nl.linux.org/lists/ Tinc site: http://tinc.nl.linux.org/ Tinc: Discussion list about the tinc VPN daemon Archive: http://mail.nl.linux.org/lists/ Tinc site: http://tinc.nl.linux.org/