Tinc-up and Windows...

Joop Susan jgsusan at xs4all.nl
Mon Nov 27 23:36:13 CET 2006


Hello,

I've used tinc successfully for a long time, all with Linux hosts. No
problem there.

Unfortunately I now have to add a Windows host to the VPN. What a fight
Winblows is! Probably just my ignorance.

The VPN works and tinc says that tinc-up is run (and a debugging
statement proves it) but I can't get an extra route added.

tinc-up.bat contains:
-------------------
netsh interface ip set address name=vpn1 source=static addr=192.168.1.12 mask=255.255.255.0
netsh routing ip add persistentroute dest=192.168.0.0 mask=255.255.255.0 name=vpn1 nhop=192.168.1.12
-------------------

I can ping/telnet the host on 192.168.1.5, but not 192.168.0.9.

'netsh routing ip show persistentroutes' shows
  192.168.0.0/24 Non-DOD 0 1 192.168.1.12 UM VPN1

If I type 'route print' there is no route to 192.168.0.0/24.

If I type 'route add 192.168.0.0 mask 255.255.255.0 192.168.1.12' it
starts to work. Now I can browse http://192.168.0.9...

Any hint on what might be wrong with my tinc-up.bat?

What is the correct way to add the extra route to the VPN device on Windows?

Thanks,

Joop



More information about the tinc mailing list