Test two tinc daemons using network namespaces.
authorGuus Sliepen <guus@tinc-vpn.org>
Fri, 24 Jan 2014 15:09:32 +0000 (16:09 +0100)
committerGuus Sliepen <guus@tinc-vpn.org>
Fri, 24 Jan 2014 15:17:09 +0000 (16:17 +0100)
Testing multiple daemons connecting to each other on the same computer is
usually difficult, because connections to local IP addresses will bypass most
of the network stack. However, recent versions of Linux support network
namespaces, which can isolate network interfaces. We use this to isolate the
virtual interface of the daemons from each other, so we get the behaviour as if
the daemons were each running on their own machine. This can also be used for
more complicated tests (including those with firewall rules) without disturbing
the real network setup of the host computer.


No differences found