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)
commitfa1e9b046128db81c207c9ed920d068a144cd687
tree7bf36bfa39d47474abf73d86813fab96fe1b0ce2
parent38adc8bf548c2c465d5f4147866c3d3f9112d3a8
Test two tinc daemons using network namespaces.

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.
test/Makefile.am
test/ns-ping.test [new file with mode: 0755]