Questions about multiple Tinc daemons

Guus Sliepen guus at sliepen.eu.org
Fri Dec 27 12:41:39 CET 2002


On Thu, Dec 26, 2002 at 08:10:15PM -0600, Denny Fox wrote:

> Is it proper to use the same network number for tap0 and tap1 in the
> /etc/tinc/{network}/tinc-up scripts?

No.

> for vpn1 in tinc-up:
> #!/bin/sh
> ifconfig tap0 hw ether fe:fd:0:0:0:0
> ifconfig tap0 192.168.1.250 netmask 255.255.0.0
> ifconfig tap0 mtu 1400
> ifconfig tap0 -arp
> 
> for vpn2 in tinc-up
> #!/bin/sh
> ifconfig tap1 hw ether fe:fd:0:0:0:0
> ifconfig tap1 192.168.1.250 netmask 255.255.0.0
> ifconfig tap1 mtu 1400
> ifconfig tap1 -arp
> 
> The tap0 connection works, but the tap1 connection won't ping, even
> though it says its connected. No firewall blocking errors.

Using the same MAC address is fine, however, you are using exactly the
same IPv4 subnet for both VPNs. How do you expect your computer to know
which VPN to use for a given IP address? Use different subnets for
different VPNs.

-- 
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: not available
Url : http://brouwer.uvt.nl/pipermail/tinc/attachments/20021227/298044ef/attachment.pgp


More information about the Tinc mailing list