what am I doing wrong?

Guus Sliepen guus at sliepen.eu.org
Wed Dec 15 18:45:24 CET 2004


On Wed, Dec 15, 2004 at 06:27:43PM +0100, Pedro Ruiz wrote:

> what am I doing wrong?
[...]
> Mode=switch

If you are using 1.0.3, try 1.0.2 or the latest version from our
Subversion repository, because there was a bug regarding broadcast
packets in switch mode.

> #!/bin/sh
> ifconfig $INTERFACE 192.170.1.1 netmask
> 255.255.255.255
> 
> route add -host 192.170.1.2 dev $INTERFACE
> route add -net 192.170.1.2 netmask 255.255.255.255 dev
> $INTERFACE

Can't you just simplify that to the following?

ifconfig $INTERFACE 192.170.1.1 netmask 255.255.255.252

> Subnet=192.170.1.1/32

Subnet statements don't have any effect in switch mode.

> ifconfig -a
> 
> vpn       Link encap:UNSPEC  HWaddr
> 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
>           inet addr:192.170.1.1  P-t-P:192.170.1.1 
> Mask:255.255.255.255
>           UP POINTOPOINT RUNNING NOARP MULTICAST 
> MTU:1500  Metric:1


That's not good... it should not be a pointopoint device. Which version
of tinc are you using, and did you perhaps create a persistent tun
device before starting tinc?

-- 
Met vriendelijke groet / with kind regards,
    Guus Sliepen <guus at 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/20041215/1026d68c/attachment.pgp


More information about the tinc mailing list