aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/ikev2/lookip/description.txt
blob: 0568e4824e1f1cb17ebdc6d98ce16926b0f50f86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
The roadwarriors <b>carol</b> and <b>dave</b> set up a connection each to gateway <b>moon</b>.
Both <b>carol</b> and <b>dave</b> request a <b>virtual IP</b> via the IKEv2 configuration payload
by using the <b>leftsourceip=%config</b> parameter. The gateway <b>moon</b> assigns virtual
IP addresses from a simple pool defined by <b>rightsourceip=10.3.0.0/28</b> in a monotonously
increasing order.
<p>
Using the <b>ipsec lookup</b> tool which communicates with the <b>lookip</b> plugin via a unix
socket, information about the assigned virtual IP is retrieved. 
<p>
<b>leftfirewall=yes</b> automatically inserts iptables-based firewall rules that let pass
the tunneled traffic. In order to test the tunnels, <b>carol</b> and <b>dave</b> then ping
the client <b>alice</b> behind the gateway <b>moon</b>. The source IP addresses of the two
pings will be the virtual IPs <b>carol1</b> and <b>dave1</b>, respectively.