10 lines
571 B
Plaintext
Executable File
10 lines
571 B
Plaintext
Executable File
A tunnel that will connect the subnets behind the gateways <b>moon</b>
|
|
and <b>sun</b>, respectively, is preconfigured by installing a %trap eroute
|
|
on gateway <b>moon</b> by means of the setting <b>start_action = trap</b> in swanctl.conf.
|
|
A subsequent ping issued by client <b>alice</b> behind gateway <b>moon</b> to
|
|
<b>bob</b> located behind gateway <b>sun</b> triggers the %trap eroute and
|
|
leads to the automatic establishment of the subnet-to-subnet tunnel.
|
|
<p/>
|
|
The updown script automatically inserts iptables-based firewall rules
|
|
that let pass the tunneled traffic.
|