In this test two hosts establish a transport mode connection from behind moon. sun uses the connmark plugin to distinguish the flows. This is an example that shows how one can terminate L2TP/IPsec connections from two hosts behind the same NAT. For simplification of the test, we use an SSH connection instead, but this works for any connection initiated flow that conntrack can track.
22 lines
456 B
Bash
22 lines
456 B
Bash
#!/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"
|
|
|
|
# Corresponding block diagram
|
|
#
|
|
DIAGRAM="a-m-w-s-b.png"
|
|
|
|
# Guest instances on which tcpdump is to be started
|
|
#
|
|
TCPDUMPHOSTS="sun alice venus moon"
|
|
|
|
# Guest instances on which IPsec is started
|
|
# Used for IPsec logging purposes
|
|
#
|
|
IPSECHOSTS="alice venus sun"
|