testing: Added ikev2/net2net-multicast scenario
This commit is contained in:
parent
8486b3b438
commit
d7e0ce2878
|
@ -0,0 +1,7 @@
|
|||
A connection between the subnets behind the gateways <b>moon</b> and <b>sun</b> is set up.
|
||||
Using the <b>forecast</b> plugin additionally all 224.0.0.251 mDNS multicasts are going
|
||||
to be tunneled.
|
||||
The authentication is based on <b>X.509 certificates</b>. Upon the successful
|
||||
establishment of the IPsec tunnel, mDNS multicasts sent by <b>alice</b> are
|
||||
received by <b>bob</b> and vice versa whereas unfortunately multicasts originating
|
||||
from the gateways <b>moon</b> and <b>sun</b> themselves are not tunneled.
|
|
@ -0,0 +1,16 @@
|
|||
moon:: ipsec status 2> /dev/null::net-net.*ESTABLISHED.*moon.strongswan.org.*sun.strongswan.org::YES
|
||||
sun:: ipsec status 2> /dev/null::net-net.*ESTABLISHED.*sun.strongswan.org.*moon.strongswan.org::YES
|
||||
moon:: ipsec status 2> /dev/null::net-net.*INSTALLED, TUNNEL::YES
|
||||
sun:: ipsec status 2> /dev/null::net-net.*INSTALLED, TUNNEL::YES
|
||||
alice::traceroute -p 5353 -w 1 -q 1 -m 1 224.0.0.251::traceroute::YES
|
||||
bob:: traceroute -p 5353 -w 1 -q 1 -m 1 224.0.0.251::traceroute::YES
|
||||
moon:: traceroute -p 5353 -w 1 -q 1 -m 1 224.0.0.251::traceroute::YES
|
||||
sun:: traceroute -p 5353 -w 1 -q 1 -m 1 224.0.0.251::traceroute::YES
|
||||
sun::tcpdump::IP moon.strongswan.org > sun.strongswan.org: ESP::YES
|
||||
sun::tcpdump::IP sun.strongswan.org > moon.strongswan.org: ESP::YES
|
||||
alice::tcpdump::IP bob.strongswan.org.*224.0.0.251::YES
|
||||
alice::tcpdump::IP moon1.strongswan.org.*224.0.0.251::YES
|
||||
alice::tcpdump::IP sun1.strongswan.org.*224.0.0.251::NO
|
||||
bob::tcpdump::IP alice.strongswan.org.*224.0.0.251::YES
|
||||
bob::tcpdump::IP sun1.strongswan.org.*224.0.0.251::YES
|
||||
bob::tcpdump::IP moon1.strongswan.org.*224.0.0.251::NO
|
|
@ -0,0 +1,23 @@
|
|||
# /etc/ipsec.conf - strongSwan IPsec configuration file
|
||||
|
||||
config setup
|
||||
|
||||
conn %default
|
||||
ikelifetime=60m
|
||||
keylife=20m
|
||||
rekeymargin=3m
|
||||
keyingtries=1
|
||||
keyexchange=ikev2
|
||||
mobike=no
|
||||
|
||||
conn net-net
|
||||
left=PH_IP_MOON
|
||||
leftcert=moonCert.pem
|
||||
leftid=@moon.strongswan.org
|
||||
leftsubnet=10.1.0.0/16,224.0.0.251/32
|
||||
leftfirewall=yes
|
||||
right=PH_IP_SUN
|
||||
rightid=@sun.strongswan.org
|
||||
rightsubnet=10.2.0.0/16,224.0.0.251/32
|
||||
mark=%unique
|
||||
auto=add
|
|
@ -0,0 +1,13 @@
|
|||
# /etc/strongswan.conf - strongSwan configuration file
|
||||
|
||||
charon {
|
||||
load = aes des sha1 sha2 pem pkcs1 gmp random nonce x509 curl revocation hmac stroke kernel-netlink socket-default forecast
|
||||
|
||||
multiple_authentication = no
|
||||
plugins {
|
||||
forecast {
|
||||
groups = 224.0.0.251
|
||||
interface = eth1
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
# /etc/ipsec.conf - strongSwan IPsec configuration file
|
||||
|
||||
config setup
|
||||
|
||||
conn %default
|
||||
ikelifetime=60m
|
||||
keylife=20m
|
||||
rekeymargin=3m
|
||||
keyingtries=1
|
||||
keyexchange=ikev2
|
||||
mobike=no
|
||||
|
||||
conn net-net
|
||||
left=PH_IP_SUN
|
||||
leftcert=sunCert.pem
|
||||
leftid=@sun.strongswan.org
|
||||
leftsubnet=10.2.0.0/16,224.0.0.251/32
|
||||
leftfirewall=yes
|
||||
right=PH_IP_MOON
|
||||
rightid=@moon.strongswan.org
|
||||
rightsubnet=10.1.0.0/16,224.0.0.251/32
|
||||
mark=%unique
|
||||
auto=add
|
|
@ -0,0 +1,13 @@
|
|||
# /etc/strongswan.conf - strongSwan configuration file
|
||||
|
||||
charon {
|
||||
load = aes des sha1 sha2 pem pkcs1 gmp random nonce x509 curl revocation hmac stroke kernel-netlink socket-default forecast
|
||||
|
||||
multiple_authentication = no
|
||||
plugins {
|
||||
forecast {
|
||||
groups = 224.0.0.251
|
||||
interface = eth1
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,2 @@
|
|||
moon::ipsec stop
|
||||
sun::ipsec stop
|
|
@ -0,0 +1,7 @@
|
|||
moon::echo 1 > /proc/sys/net/ipv4/igmp_max_memberships
|
||||
sun::echo 1 > /proc/sys/net/ipv4/igmp_max_memberships
|
||||
sun::ipsec start
|
||||
moon::ipsec start
|
||||
sun::expect-connection net-net
|
||||
moon::expect-connection net-net
|
||||
moon::ipsec up net-net
|
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# This configuration file provides information on the
|
||||
# guest instances used for this test
|
||||
|
||||
# All guest instances that are required for this test
|
||||
#
|
||||
VIRTHOSTS="alice moon winnetou sun bob"
|
||||
|
||||
# Corresponding block diagram
|
||||
#
|
||||
DIAGRAM="a-m-w-s-b.png"
|
||||
|
||||
# Guest instances on which tcpdump is to be started
|
||||
#
|
||||
TCPDUMPHOSTS="alice sun bob"
|
||||
|
||||
# Guest instances on which IPsec is started
|
||||
# Used for IPsec logging purposes
|
||||
#
|
||||
IPSECHOSTS="moon sun"
|
Loading…
Reference in New Issue